Skip to content

Commit 14ea178

Browse files
committed
Fail if LifetimeRes is Infer when creating def ids for lifetimes copies
1 parent c390bda commit 14ea178

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
14951495
}
14961496
}
14971497

1498-
LifetimeRes::Infer | LifetimeRes::Static | LifetimeRes::Error => {}
1498+
LifetimeRes::Static | LifetimeRes::Error => {}
14991499

15001500
res => panic!(
15011501
"Unexpected lifetime resolution {:?} for {:?} at {:?}",

0 commit comments

Comments
 (0)