Replace LifetimeRes::Anonymous by LifetimeRes::Infer.
This commit is contained in:
parent
ab63591f00
commit
10be0dd8df
9 changed files with 51 additions and 105 deletions
|
@ -589,7 +589,7 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> {
|
|||
|
||||
hir::LifetimeName::Param(_, hir::ParamName::Fresh)
|
||||
| hir::LifetimeName::ImplicitObjectLifetimeDefault
|
||||
| hir::LifetimeName::Underscore => {
|
||||
| hir::LifetimeName::Infer => {
|
||||
// In this case, the user left off the lifetime; so
|
||||
// they wrote something like:
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue