]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/passes.rs
Auto merge of #68943 - ecstatic-morse:no-useless-drop-on-enum-variants, r=matthewjasper
[rust.git] / src / librustc_lint / passes.rs
index 7e5d670767ad80de22d057a4efa63ba194456a2d..813be2a032f8b29ecd9f3258a9e1bcbb53983ddc 100644 (file)
@@ -1,11 +1,11 @@
 use crate::context::{EarlyContext, LateContext};
 
+use rustc_ast::ast;
 use rustc_data_structures::sync;
 use rustc_hir as hir;
 use rustc_session::lint::builtin::HardwiredLints;
 use rustc_session::lint::LintPass;
 use rustc_span::Span;
-use syntax::ast;
 
 #[macro_export]
 macro_rules! late_lint_methods {
@@ -179,10 +179,9 @@ macro_rules! early_lint_methods {
             fn check_where_predicate(a: &ast::WherePredicate);
             fn check_poly_trait_ref(a: &ast::PolyTraitRef,
                                     b: &ast::TraitBoundModifier);
-            fn check_fn(a: syntax::visit::FnKind<'_>, b: &ast::FnDecl, c: Span, d_: ast::NodeId);
+            fn check_fn(a: rustc_ast::visit::FnKind<'_>, c: Span, d_: ast::NodeId);
             fn check_fn_post(
-                a: syntax::visit::FnKind<'_>,
-                b: &ast::FnDecl,
+                a: rustc_ast::visit::FnKind<'_>,
                 c: Span,
                 d: ast::NodeId
             );