about summary refs log tree commit diff
path: root/src/librustc
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-09-06 11:54:11 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-09-09 19:24:06 -0700
commit1bce8698cdeb274f33ecbfbcbb014367eb1ddfd0 (patch)
tree22270ebc8f88991655f5fa00bca3daaac16e6fc7 /src/librustc
parenta1f49730906ca27947cd99547f7295a1bcf83920 (diff)
downloadrust-1bce8698cdeb274f33ecbfbcbb014367eb1ddfd0.tar.gz
rust-1bce8698cdeb274f33ecbfbcbb014367eb1ddfd0.zip
librustc: Obsolete the old external crate renaming syntax.
Instead of `extern crate foo = bar`, write `extern crate bar as foo`.
Instead of `extern crate baz = "quux"`, write `extern crate "quux" as
baz`.

Closes #16461.

[breaking-change]
Diffstat (limited to 'src/librustc')
-rw-r--r--src/librustc/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs
index 75a48fdd596..ce262bf449a 100644
--- a/src/librustc/lib.rs
+++ b/src/librustc/lib.rs
@@ -42,8 +42,8 @@ extern crate flate;
 extern crate getopts;
 extern crate graphviz;
 extern crate libc;
-extern crate "rustc_llvm" as llvm;
-extern crate "rustc_back" as rustc_back;
+extern crate rustc_llvm;
+extern crate rustc_back;
 extern crate serialize;
 extern crate rbml;
 extern crate time;
@@ -53,6 +53,8 @@ extern crate time;
 #[cfg(test)]
 extern crate test;
 
+pub use rustc_llvm as llvm;
+
 mod diagnostics;
 
 pub mod back {