Fix deprecate warning "extern crate ... as ..."
Its arguments were inverted.
This commit is contained in:
parent
1242772cce
commit
8baff54128
1 changed files with 1 additions and 1 deletions
|
@ -4780,7 +4780,7 @@ impl<'a> Parser<'a> {
|
||||||
self.span_warn(span,
|
self.span_warn(span,
|
||||||
format!("this extern crate syntax is deprecated. \
|
format!("this extern crate syntax is deprecated. \
|
||||||
Use: extern crate \"{}\" as {};",
|
Use: extern crate \"{}\" as {};",
|
||||||
the_ident.as_str(), path.ref0().get() ).as_slice()
|
path.ref0().get(), the_ident.as_str() ).as_slice()
|
||||||
);
|
);
|
||||||
Some(path)
|
Some(path)
|
||||||
} else {None};
|
} else {None};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue