}
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))?;
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