]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_passes/diagnostic_items.rs
Rollup merge of #68166 - ollie27:rustdoc_help_escape, r=GuillaumeGomez
[rust.git] / src / librustc_passes / diagnostic_items.rs
index 6b2c42602ff0ba6bc043771c962f0ebdcdd80b69..c083830b730cc0a91f3579c6c7d02389b4667426 100644 (file)
@@ -9,12 +9,12 @@
 //!
 //! * Compiler internal types like `Ty` and `TyCtxt`
 
-use rustc::hir;
-use rustc::hir::def_id::{DefId, LOCAL_CRATE};
-use rustc::hir::itemlikevisit::ItemLikeVisitor;
 use rustc::ty::query::Providers;
 use rustc::ty::TyCtxt;
 use rustc_data_structures::fx::FxHashMap;
+use rustc_hir as hir;
+use rustc_hir::def_id::{DefId, LOCAL_CRATE};
+use rustc_hir::itemlikevisit::ItemLikeVisitor;
 use rustc_span::symbol::{sym, Symbol};
 use syntax::ast;
 
@@ -73,7 +73,7 @@ fn collect_item(
                 )),
             };
             if let Some(span) = tcx.hir().span_if_local(original_def_id) {
-                span_note!(&mut err, span, "first defined here.");
+                err.span_note(span, "first defined here.");
             } else {
                 err.note(&format!(
                     "first defined in crate `{}`.",