Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 7, 2014

Conversation

seb-m
Copy link
Contributor

@seb-m seb-m commented Sep 5, 2014

Its arguments were inverted.

For instance it displayed this message:

warning: this extern crate syntax is deprecated. Use: extern create "foobar" as foo;

Instead of:

warning: this extern crate syntax is deprecated. Use: extern create "foo" as foobar;

@@ -4780,7 +4780,7 @@ impl<'a> Parser<'a> {
self.span_warn(span,
format!("this extern crate syntax is deprecated. \
Use: extern create \"{}\" as {};",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're at it, might want to fix the misspelling of "crate" as "create" here.

@huonw
Copy link
Member

huonw commented Sep 7, 2014

The typo fix was noticed independently #17032, could you remove that commit? E.g. git reset --hard HEAD^ while on the branch associated with this PR.

(BTW, github doesn't provide notifications if a PR is updated, so please comment when you do.)

@seb-m seb-m force-pushed the fix-extern-crate-as branch from 379e39b to d40fb4c Compare September 7, 2014 12:55
@seb-m
Copy link
Contributor Author

seb-m commented Sep 7, 2014

Ah sorry Huon! I didn't know that. I've reverted the typo fix.

@sfackler
Copy link
Member

sfackler commented Sep 7, 2014

Looks like you there's a merge conflict - could you rebase this on top of master and force push again?

@seb-m seb-m force-pushed the fix-extern-crate-as branch from d40fb4c to 8baff54 Compare September 7, 2014 16:00
@seb-m
Copy link
Contributor Author

seb-m commented Sep 7, 2014

I think I did what you told me (modulo I didn't mess up something with git) and resolved the merge conflict, so it might be fine now.

bors added a commit that referenced this pull request Sep 7, 2014
Its arguments were inverted.

For instance it displayed this message:

```
warning: this extern crate syntax is deprecated. Use: extern create "foobar" as foo;
```

Instead of:

```
warning: this extern crate syntax is deprecated. Use: extern create "foo" as foobar;
```
@bors bors closed this Sep 7, 2014
@bors bors merged commit 8baff54 into rust-lang:master Sep 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants