Fix deprecate warning "extern crate ... as ..."

Its arguments were inverted.
This commit is contained in:
Sebastien Martini 2014-09-05 11:42:16 +02:00
parent 1242772cce
commit 8baff54128

View file

@ -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};