Skip to content

Commit d7502ac

Browse files
committed
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; ```
2 parents 4067252 + 8baff54 commit d7502ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4780,7 +4780,7 @@ impl<'a> Parser<'a> {
47804780
self.span_warn(span,
47814781
format!("this extern crate syntax is deprecated. \
47824782
Use: extern crate \"{}\" as {};",
4783-
the_ident.as_str(), path.ref0().get() ).as_slice()
4783+
path.ref0().get(), the_ident.as_str() ).as_slice()
47844784
);
47854785
Some(path)
47864786
} else {None};

0 commit comments

Comments
 (0)