]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_metadata/creader.rs
Move builtin attribute logic to new rustc_attr crate.
[rust.git] / src / librustc_metadata / creader.rs
index 181f872154c5107e55776b767d5c7a358bf23713..4c4383aa603cb075444c4e14a3888c7b652c91a5 100644 (file)
@@ -12,7 +12,6 @@
 use rustc::ty::TyCtxt;
 use rustc_data_structures::svh::Svh;
 use rustc_data_structures::sync::Lrc;
-use rustc_error_codes::*;
 use rustc_errors::struct_span_err;
 use rustc_expand::base::SyntaxExtension;
 use rustc_hir::def_id::{CrateNum, LOCAL_CRATE};
@@ -695,7 +694,7 @@ fn inject_allocator_crate(&mut self, krate: &ast::Crate) {
                 self.sess
                     .struct_span_err(*span2, "cannot define multiple global allocators")
                     .span_label(*span2, "cannot define a new global allocator")
-                    .span_label(*span1, "previous global allocator is defined here")
+                    .span_label(*span1, "previous global allocator defined here")
                     .emit();
                 true
             }