diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-07-11 15:04:57 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-11-30 22:55:07 +0100 |
| commit | 5ea7ea8a5786729d3e8d0d513819f52b4d9047dd (patch) | |
| tree | f7c72c730650d096e7fdce85d7322eba1dd7a6ab /compiler/rustc_borrowck/src | |
| parent | ac03470c3ba4959d74ca1b61a57e0bcfb6d2d2f3 (diff) | |
| download | rust-5ea7ea8a5786729d3e8d0d513819f52b4d9047dd.tar.gz rust-5ea7ea8a5786729d3e8d0d513819f52b4d9047dd.zip | |
Lint elided lifetimes in path during lifetime resolution.
Diffstat (limited to 'compiler/rustc_borrowck/src')
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/region_name.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/region_name.rs b/compiler/rustc_borrowck/src/diagnostics/region_name.rs index 5edb52b0b65..64df452c739 100644 --- a/compiler/rustc_borrowck/src/diagnostics/region_name.rs +++ b/compiler/rustc_borrowck/src/diagnostics/region_name.rs @@ -584,7 +584,9 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> { Some(RegionNameHighlight::MatchedAdtAndSegment(lifetime_span)) } - hir::LifetimeName::ImplicitObjectLifetimeDefault | hir::LifetimeName::Implicit => { + hir::LifetimeName::ImplicitObjectLifetimeDefault + | hir::LifetimeName::Implicit + | hir::LifetimeName::ImplicitMissing => { // In this case, the user left off the lifetime; so // they wrote something like: // |
