about summary refs log tree commit diff
path: root/compiler/rustc_privacy/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-02-05 15:48:02 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2022-04-30 13:51:49 +0200
commit05b29f9a9295caf71fedfc24e6d7062bba434171 (patch)
tree8c94ee91cac59af0af3d8fd0027c8a70f7c1d6c2 /compiler/rustc_privacy/src
parent71b4e2d852be70174579e7e5a96644418348a7da (diff)
downloadrust-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.rs2
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() {