]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/late.rs
Rollup merge of #72061 - lcnr:const-inference-test, r=eddyb
[rust.git] / src / librustc_lint / late.rs
index c4ac875fec537158044082c8fa8034edf90e9d5a..c8f827b1f5cedf23681e876a2e8bff4a4551c4d2 100644 (file)
@@ -25,6 +25,7 @@
 use rustc_middle::hir::map::Map;
 use rustc_middle::ty::{self, TyCtxt};
 use rustc_session::lint::LintPass;
+use rustc_span::symbol::Symbol;
 use rustc_span::Span;
 
 use log::debug;
@@ -192,7 +193,7 @@ fn visit_fn(
     fn visit_variant_data(
         &mut self,
         s: &'tcx hir::VariantData<'tcx>,
-        _: ast::Name,
+        _: Symbol,
         _: &'tcx hir::Generics<'tcx>,
         _: hir::HirId,
         _: Span,
@@ -227,7 +228,7 @@ fn visit_ty(&mut self, t: &'tcx hir::Ty<'tcx>) {
         hir_visit::walk_ty(self, t);
     }
 
-    fn visit_name(&mut self, sp: Span, name: ast::Name) {
+    fn visit_name(&mut self, sp: Span, name: Symbol) {
         lint_callback!(self, check_name, sp, name);
     }