auto merge of #16923 : wickerwaka/rust/crate-as-fixup, r=alexcrichton

Changed occurances of:
extern crate foo = "bar";
to:
extern crate "bar" as foo;

Added warning for old deprecated syntax
This commit is contained in:
bors 2014-09-04 16:40:59 +00:00
commit bef51ba234
13 changed files with 25 additions and 20 deletions

View file

@ -10,7 +10,7 @@
// aux-build:issue-16725.rs
extern crate foo = "issue-16725";
extern crate "issue-16725" as foo;
fn main() {
unsafe { foo::bar(); }

View file

@ -12,7 +12,7 @@
// Check explicit region bounds on methods in the cross crate case.
extern crate lib = "regions-bounded-method-type-parameters-cross-crate-lib";
extern crate "regions-bounded-method-type-parameters-cross-crate-lib" as lib;
use lib::Inv;
use lib::MaybeOwned;

View file

@ -10,7 +10,7 @@
// aux-build:issue-15562.rs
extern crate i = "issue-15562";
extern crate "issue-15562" as i;
pub fn main() {
extern {

View file

@ -10,7 +10,7 @@
// aux-build:issue-16643.rs
extern crate i = "issue-16643";
extern crate "issue-16643" as i;
pub fn main() {
i::TreeBuilder::<uint>.process_token();