auto merge of #17015 : seb-m/rust/fix-extern-crate-as, r=sfackler

Its arguments were inverted.

For instance it displayed this message:

```
warning: this extern crate syntax is deprecated. Use: extern create "foobar" as foo;
```

Instead of:

```
warning: this extern crate syntax is deprecated. Use: extern create "foo" as foobar;
```
This commit is contained in:
bors 2014-09-07 16:21:29 +00:00
commit d7502ac2d6

View file

@ -4780,7 +4780,7 @@ impl<'a> Parser<'a> {
self.span_warn(span,
format!("this extern crate syntax is deprecated. \
Use: extern crate \"{}\" as {};",
the_ident.as_str(), path.ref0().get() ).as_slice()
path.ref0().get(), the_ident.as_str() ).as_slice()
);
Some(path)
} else {None};