Skip to content

Commit 7b74d72

Browse files
committed
Fix failing tests
1 parent baddce5 commit 7b74d72

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/librustc/ty/query/on_disk_cache.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,9 @@ impl<'a, 'tcx> SpecializedDecoder<Span> for CacheDecoder<'a, 'tcx> {
610610
}
611611
TAG_EXPANSION_INFO_SHORTHAND => {
612612
let pos = AbsoluteBytePos::decode(self)?;
613-
if let Some(cached_ctxt) = self.synthetic_expansion_infos.borrow().get(&pos) {
614-
Span::new(lo, hi, *cached_ctxt)
613+
let cached_ctxt = self.synthetic_expansion_infos.borrow().get(&pos).cloned();
614+
if let Some(ctxt) = cached_ctxt {
615+
Span::new(lo, hi, ctxt)
615616
} else {
616617
let expn_info =
617618
self.with_position(pos.to_usize(), |this| ExpnInfo::decode(this))?;

src/test/ui/feature-gates/feature-gate-custom_test_frameworks.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error[E0658]: use of unstable library feature 'custom_test_frameworks': custom test frameworks are an unstable feature
2-
--> $DIR/feature-gate-custom_test_frameworks.rs:3:1
2+
--> $DIR/feature-gate-custom_test_frameworks.rs:3:3
33
|
44
LL | #[test_case]
5-
| ^^^^^^^^^^^^
5+
| ^^^^^^^^^
66
|
77
= note: for more information, see https://github.com/rust-lang/rust/issues/50297
88
= help: add `#![feature(custom_test_frameworks)]` to the crate attributes to enable

0 commit comments

Comments
 (0)