diff options
| author | Sebastien Martini <seb@dbzteam.org> | 2014-09-05 11:42:16 +0200 |
|---|---|---|
| committer | Sebastien Martini <seb@dbzteam.org> | 2014-09-07 17:58:33 +0200 |
| commit | 8baff5412861e2013c245ccffcbba84be3186c06 (patch) | |
| tree | 5385dfd9d6ddbbb13ad47db93c241319fb6d9dfa /src/libsyntax/parse | |
| parent | 1242772ccee524b9af4f7d7df06afef9be07d3d5 (diff) | |
| download | rust-8baff5412861e2013c245ccffcbba84be3186c06.tar.gz rust-8baff5412861e2013c245ccffcbba84be3186c06.zip | |
Fix deprecate warning "extern crate ... as ..."
Its arguments were inverted.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 507c9b73557..936cabc54d1 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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}; |
