diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-05-10 14:50:31 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-05-10 14:50:31 +0000 |
| commit | d63f82e1efbfbe2344ffa3a47602faaee6429d04 (patch) | |
| tree | 8a128f30dfb42800561666fe5bdb9c9f364f72f3 /compiler/rustc_middle/src | |
| parent | c51871c469f7ed3b35ae25d7e6e77bc73fbdd0e3 (diff) | |
| download | rust-d63f82e1efbfbe2344ffa3a47602faaee6429d04.tar.gz rust-d63f82e1efbfbe2344ffa3a47602faaee6429d04.zip | |
Use lifetimes on type-alias-impl-trait used in function signatures to infer output type lifetimes
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/fold.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/fold.rs b/compiler/rustc_middle/src/ty/fold.rs index 896a8280551..a2a450d76f1 100644 --- a/compiler/rustc_middle/src/ty/fold.rs +++ b/compiler/rustc_middle/src/ty/fold.rs @@ -1349,7 +1349,7 @@ impl<'tcx> TypeVisitor<'tcx> for LateBoundRegionsCollector { // ignore the inputs to a projection, as they may not appear // in the normalized form if self.just_constrained { - if let ty::Projection(..) | ty::Opaque(..) = t.kind() { + if let ty::Projection(..) = t.kind() { return ControlFlow::CONTINUE; } } |
