From 1bce8698cdeb274f33ecbfbcbb014367eb1ddfd0 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Sat, 6 Sep 2014 11:54:11 -0700 Subject: 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] --- src/librustc/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/librustc/lib.rs') 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 { -- cgit 1.4.1-3-g733a5