Skip to content

Commit 97de8fb

Browse files
Lower spans for opaque duplicated lifetimes, const infer vars
1 parent 3818fc0 commit 97de8fb

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+3
-3
lines changed

compiler/rustc_ast_lowering/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
16781678
duplicated_lifetime_node_id,
16791679
lifetime.ident.name,
16801680
DefKind::LifetimeParam,
1681-
lifetime.ident.span,
1681+
self.lower_span(lifetime.ident.span),
16821682
);
16831683
captured_to_synthesized_mapping.insert(old_def_id, duplicated_lifetime_def_id);
16841684
// FIXME: Instead of doing this, we could move this whole loop
@@ -1687,7 +1687,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
16871687
synthesized_lifetime_definitions.push((
16881688
duplicated_lifetime_node_id,
16891689
duplicated_lifetime_def_id,
1690-
lifetime.ident,
1690+
self.lower_ident(lifetime.ident),
16911691
));
16921692

16931693
// Now make an arg that we can use for the generic params of the opaque tykind.
@@ -2252,7 +2252,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
22522252
match c.value.kind {
22532253
ExprKind::Underscore => {
22542254
if self.tcx.features().generic_arg_infer {
2255-
hir::ArrayLen::Infer(self.lower_node_id(c.id), c.value.span)
2255+
hir::ArrayLen::Infer(self.lower_node_id(c.id), self.lower_span(c.value.span))
22562256
} else {
22572257
feature_err(
22582258
&self.tcx.sess.parse_sess,

0 commit comments

Comments
 (0)