Repository navigation
libsyntax: Accept use foo as bar; in lieu of use bar = foo; - #16468
Merged
Merged
Conversation
Member
There was a problem hiding this comment.
Could we retain the parsing but emit a warning for awhile instead of removing this entirely after a snapshot lands? I'd just think the comment should be rephrased to say something like "make this a warning after a snapshot".
Also, could you make sure that the string "stage0" shows up here? (useful for grepping)
Member
|
🌴 Thanks @pcwalton! |
Member
|
Ah, and one other thing, could this update the EBNF in the manual as well? |
use foo as bar; in lieu of use bar as foo;use foo as bar; in lieu of use bar = foo;
The old syntax will be removed after a snapshot. RFC rust-lang#47. Issue rust-lang#16461.
matthiaskrgr
pushed a commit
to matthiaskrgr/rust
that referenced
this pull request
Feb 5, 2024
…=lnicola minor: Recommend maintained Neovim plugin in documentation
flip1995
pushed a commit
to flip1995/rust
that referenced
this pull request
Feb 12, 2026
…#16468) Closes rust-lang/rust-clippy#16458 changelog: [`cmp_owned`] fix FP when `to_string` comes from macro input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The old syntax will be removed after a snapshot.
RFC #47.
Issue #16461.
r? @brson