We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d246f commit bd175cbCopy full SHA for bd175cb
compiler/rustc_ast_lowering/src/expr.rs
@@ -68,7 +68,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
68
let mut ex = self.lower_expr_mut(ex);
69
// Include parens in span, but only if it is a super-span.
70
if e.span.contains(ex.span) {
71
- ex.span = self.lower_span(e.span);
+ ex.span = self.lower_span(e.span.with_ctxt(ex.span.ctxt()));
72
}
73
// Merge attributes into the inner expression.
74
if !e.attrs.is_empty() {
0 commit comments