X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_lint%2Fsrc%2Fearly.rs;h=337a19dd024d2fec195601c77de253036df847bf;hb=c3b1f5428b7ed8b5e75e5ac8e4e26a46093a7965;hp=f9b2df49592244fa701928bfbe71eeac0357df41;hpb=27db39b1b30fe808ba725d36f4293a3b61a4b029;p=rust.git diff --git a/compiler/rustc_lint/src/early.rs b/compiler/rustc_lint/src/early.rs index f9b2df49592..337a19dd024 100644 --- a/compiler/rustc_lint/src/early.rs +++ b/compiler/rustc_lint/src/early.rs @@ -248,7 +248,9 @@ fn visit_generics(&mut self, g: &'a ast::Generics) { } fn visit_where_predicate(&mut self, p: &'a ast::WherePredicate) { + lint_callback!(self, enter_where_predicate, p); ast_visit::walk_where_predicate(self, p); + lint_callback!(self, exit_where_predicate, p); } fn visit_poly_trait_ref(&mut self, t: &'a ast::PolyTraitRef) {