Closed
Conversation
Contributor
|
why cant we just say |
Member
|
Thank you for the PR! Allowing macros in more positions is an extension to the language which requires an RFC, however. To get approved, this will require a formal RFC to be submitted to the |
Contributor
|
@sinistersnare that only covers a small subset of the possible use-cases for this (e.g. one can use a procedural macro to expand to very intricate types). |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Nov 16, 2023
Improve check for include macro rust-lang/rust-analyzer#15819 (review)
flip1995
pushed a commit
to flip1995/rust
that referenced
this pull request
Oct 31, 2025
Supercedes rust-lang/rust-clippy#15270 This first PR just moves the existing code and simplifies a few things. The switch to use the new range API isn't really used in this PR , but it's needed by future changes to avoid having to add `.clone()` all over the place. changelog: none
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.
This allows you to use macros to write out your awfully long types.