about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-07 16:21:29 +0000
committerbors <bors@rust-lang.org>2014-09-07 16:21:29 +0000
commitd7502ac2d6c64958be672991c33a1404ea5f040e (patch)
treec778c8858de612d960c436b6e69baf8e03ddb9f4 /src/libsyntax/parse/parser.rs
parent4067252def4251d7c2f4afc79ae1716093fe27ac (diff)
parent8baff5412861e2013c245ccffcbba84be3186c06 (diff)
downloadrust-d7502ac2d6c64958be672991c33a1404ea5f040e.tar.gz
rust-d7502ac2d6c64958be672991c33a1404ea5f040e.zip
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;
```
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 507c9b73557..936cabc54d1 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -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};