Fix deprecate warning "extern crate ... as ..."
Its arguments were inverted.
This commit is contained in:
parent
1242772cce
commit
8baff54128
@ -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};
|
||||
|
Loading…
x
Reference in New Issue
Block a user