Skip to content

Commit 1a71355

Browse files
committed
lower hir spans for ..
1 parent 82c472a commit 1a71355

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_ast_lowering/src/expr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,9 +1434,9 @@ impl<'hir> LoweringContext<'_, 'hir> {
14341434
self.dcx().emit_err(FunctionalRecordUpdateDestructuringAssignment {
14351435
span: e.span,
14361436
});
1437-
Some(e.span)
1437+
Some(self.lower_span(e.span))
14381438
}
1439-
StructRest::Rest(span) => Some(*span),
1439+
StructRest::Rest(span) => Some(self.lower_span(*span)),
14401440
StructRest::None => None,
14411441
};
14421442
let struct_pat = hir::PatKind::Struct(qpath, field_pats, fields_omitted);

compiler/rustc_ast_lowering/src/pat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
107107
qpath,
108108
fs,
109109
match etc {
110-
ast::PatFieldsRest::Rest(sp) => Some(*sp),
110+
ast::PatFieldsRest::Rest(sp) => Some(self.lower_span(*sp)),
111111
ast::PatFieldsRest::Recovered(_) => Some(Span::default()),
112112
_ => None,
113113
},

0 commit comments

Comments
 (0)