Skip to content

libsyntax: Disallow keywords followed by ::. #17379

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 20, 2014

Conversation

pcwalton
Copy link
Contributor

This breaks code that looked like:

mymacro!(static::foo);

... where mymacro! expects a path or expression. Change such macros to
not accept keywords followed by ::.

Closes #17298.

[breaking-change]

This breaks code that looked like:

    mymacro!(static::foo);

... where `mymacro!` expects a path or expression. Change such macros to
not accept keywords followed by `::`.

Closes rust-lang#17298.

[breaking-change]
@pcwalton
Copy link
Contributor Author

r? @brson

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Sep 19, 2014
@bors bors merged commit 5aa264a into rust-lang:master Sep 20, 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.

Keywords are not handled as keywords when immediately followed by ::
4 participants