Fix failing tests
This commit is contained in:
parent
baddce5155
commit
7b74d72d9a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user