diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-02-05 15:48:02 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-30 13:51:49 +0200 |
| commit | 05b29f9a9295caf71fedfc24e6d7062bba434171 (patch) | |
| tree | 8c94ee91cac59af0af3d8fd0027c8a70f7c1d6c2 /compiler/rustc_privacy/src | |
| parent | 71b4e2d852be70174579e7e5a96644418348a7da (diff) | |
| download | rust-05b29f9a9295caf71fedfc24e6d7062bba434171.tar.gz rust-05b29f9a9295caf71fedfc24e6d7062bba434171.zip | |
Inline WhereClause into Generics.
Diffstat (limited to 'compiler/rustc_privacy/src')
| -rw-r--r-- | compiler/rustc_privacy/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs index 5f9a0357557..5c396c2b7ea 100644 --- a/compiler/rustc_privacy/src/lib.rs +++ b/compiler/rustc_privacy/src/lib.rs @@ -1590,7 +1590,7 @@ impl<'a, 'tcx> Visitor<'tcx> for ObsoleteVisiblePrivateTypesVisitor<'a, 'tcx> { self.check_generic_bound(bound); } } - for predicate in generics.where_clause.predicates { + for predicate in generics.predicates { match predicate { hir::WherePredicate::BoundPredicate(bound_pred) => { for bound in bound_pred.bounds.iter() { |
