about summary refs log tree commit diff
path: root/src/librustc_metadata
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-09-24 03:09:14 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-09-27 06:43:51 +0000
commitdfa69be38a3d232ebb0a548afff5e3560dd905ce (patch)
treeb1fbeedb8b480fad83fb41aee7979bf65239e68b /src/librustc_metadata
parentd854c362feb29125deebac562ec49da0eb3866bc (diff)
downloadrust-dfa69be38a3d232ebb0a548afff5e3560dd905ce.tar.gz
rust-dfa69be38a3d232ebb0a548afff5e3560dd905ce.zip
Fix fallout in tests.
Diffstat (limited to 'src/librustc_metadata')
-rw-r--r--src/librustc_metadata/diagnostics.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/librustc_metadata/diagnostics.rs b/src/librustc_metadata/diagnostics.rs
index f52e1437acc..c03375bf825 100644
--- a/src/librustc_metadata/diagnostics.rs
+++ b/src/librustc_metadata/diagnostics.rs
@@ -98,10 +98,10 @@ Erroneous code examples:
 
 ```compile_fail,E0466
 #[macro_use(a_macro(another_macro))] // error: invalid import declaration
-extern crate some_crate;
+extern crate core as some_crate;
 
 #[macro_use(i_want = "some_macros")] // error: invalid import declaration
-extern crate another_crate;
+extern crate core as another_crate;
 ```
 
 This is a syntax error at the level of attribute declarations. The proper
@@ -135,10 +135,10 @@ Erroneous code examples:
 
 ```compile_fail,E0467
 #[macro_reexport]                    // error: no macros listed for export
-extern crate macros_for_good;
+extern crate core as macros_for_good;
 
 #[macro_reexport(fun_macro = "foo")] // error: not a macro identifier
-extern crate other_macros_for_good;
+extern crate core as other_macros_for_good;
 ```
 
 This is a syntax error at the level of attribute declarations.
@@ -165,8 +165,8 @@ Example of erroneous code:
 ```compile_fail,E0468
 mod foo {
     #[macro_use(helpful_macro)] // error: must be at crate root to import
-    extern crate some_crate;    //        macros from another crate
-    helpful_macro!(...)
+    extern crate core;          //        macros from another crate
+    helpful_macro!(...);
 }
 ```