Skip to content
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

librustc: Obsolete the old external crate renaming syntax. #17048

Merged
merged 1 commit into from
Sep 10, 2014

Conversation

pcwalton
Copy link
Contributor

@pcwalton pcwalton commented Sep 6, 2014

Instead of extern crate foo = bar, write extern crate bar as foo.
Instead of extern crate baz = "quux", write extern crate "quux" as baz.

Closes #16461.

[breaking-change]

r? @brson

@@ -87,6 +88,10 @@ impl<'a> ParserObsoleteMethods for parser::Parser<'a> {
ObsoleteImportRenaming => (
"`use foo = bar` syntax",
"write `use bar as foo` instead"
),
ObsoleteExternCrateRenaming => (
"`extern crate foo = bar` syntax",
Copy link
Member

Choose a reason for hiding this comment

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

I think the RHS here (and LHS) should be strings.

@pcwalton pcwalton force-pushed the remove-old-import-renaming-syntax branch 2 times, most recently from 7c5cd77 to ec1ce6a Compare September 10, 2014 02:23
Instead of `extern crate foo = bar`, write `extern crate bar as foo`.
Instead of `extern crate baz = "quux"`, write `extern crate "quux" as
baz`.

Closes rust-lang#16461.

[breaking-change]
@pcwalton pcwalton force-pushed the remove-old-import-renaming-syntax branch from ec1ce6a to 1bce869 Compare September 10, 2014 02:24
bors added a commit that referenced this pull request Sep 10, 2014
…x, r=brson

Instead of `extern crate foo = bar`, write `extern crate bar as foo`.
Instead of `extern crate baz = "quux"`, write `extern crate "quux" as
baz`.

Closes #16461.

[breaking-change]

r? @brson
@bors bors closed this Sep 10, 2014
@bors bors merged commit 1bce869 into rust-lang:master Sep 10, 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.

Replace use id = path; with use path as id;
3 participants