Skip to content

Commit 8baff54

Browse files
committed
Fix deprecate warning "extern crate ... as ..."
Its arguments were inverted.
1 parent 1242772 commit 8baff54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
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)