diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs index 78b181aa3300a..3dc178afe9584 100644 --- a/compiler/rustc_span/src/hygiene.rs +++ b/compiler/rustc_span/src/hygiene.rs @@ -644,7 +644,7 @@ impl SyntaxContext { } pub fn edition(self) -> Edition { - self.outer_expn_data().edition + HygieneData::with(|data| data.expn_data(data.outer_expn(self)).edition) } }