Skip to content
Permalink
Browse files

Fix failing tests

  • Loading branch information...
petrochenkov committed Jul 7, 2019
1 parent baddce5 commit 7b74d72d9a4414f088d7f638343d5d8a7c67084a
@@ -610,8 +610,9 @@ impl<'a, 'tcx> SpecializedDecoder<Span> for CacheDecoder<'a, 'tcx> {
}
TAG_EXPANSION_INFO_SHORTHAND => {
let pos = AbsoluteBytePos::decode(self)?;
if let Some(cached_ctxt) = self.synthetic_expansion_infos.borrow().get(&pos) {
Span::new(lo, hi, *cached_ctxt)
let cached_ctxt = self.synthetic_expansion_infos.borrow().get(&pos).cloned();
if let Some(ctxt) = cached_ctxt {
Span::new(lo, hi, ctxt)
} else {
let expn_info =
self.with_position(pos.to_usize(), |this| ExpnInfo::decode(this))?;
@@ -1,8 +1,8 @@
error[E0658]: use of unstable library feature 'custom_test_frameworks': custom test frameworks are an unstable feature
--> $DIR/feature-gate-custom_test_frameworks.rs:3:1
--> $DIR/feature-gate-custom_test_frameworks.rs:3:3
|
LL | #[test_case]
| ^^^^^^^^^^^^
| ^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50297
= help: add `#![feature(custom_test_frameworks)]` to the crate attributes to enable

0 comments on commit 7b74d72

Please sign in to comment.
You can’t perform that action at this time.