mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
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:
@@ -4780,7 +4780,7 @@ fn parse_item_extern_crate(&mut self,
|
||||
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};
|
||||
|
||||
Reference in New Issue
Block a user