diff options
| author | Michael Goulet <michael@errs.io> | 2023-08-11 19:05:03 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-08-12 17:14:13 +0000 |
| commit | d0c826cfc2a1d52061a5c72d2dd78a06b51374ce (patch) | |
| tree | df90e2c0c0c62bd3f294e98ba960297189ec7183 /compiler | |
| parent | f1b854818db00bec14accbc9d1c72e6ebefe64db (diff) | |
Opaques do not constrain generic params
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/constrained_generic_params.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/constrained_generic_params.rs b/compiler/rustc_hir_analysis/src/constrained_generic_params.rs index 35882ad352b..5591fa6f2a5 100644 --- a/compiler/rustc_hir_analysis/src/constrained_generic_params.rs +++ b/compiler/rustc_hir_analysis/src/constrained_generic_params.rs @@ -59,7 +59,7 @@ struct ParameterCollector { impl<'tcx> TypeVisitor<TyCtxt<'tcx>> for ParameterCollector { fn visit_ty(&mut self, t: Ty<'tcx>) -> ControlFlow<Self::BreakTy> { match *t.kind() { - ty::Alias(ty::Projection | ty::Inherent, ..) if !self.include_nonconstraining => { + ty::Alias(..) if !self.include_nonconstraining => { // projections are not injective return ControlFlow::Continue(()); } |
