Skip to content

Conversation

Centri3
Copy link
Member

@Centri3 Centri3 commented Jul 24, 2023

Adds a note when a macro is used where it really shouldn't be.

Closes #113766

@rustbot
Copy link
Collaborator

rustbot commented Jul 24, 2023

r? @wesleywiser

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 24, 2023
@wesleywiser
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 3, 2023

📌 Commit bbd69e4 has been approved by wesleywiser

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 3, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 4, 2023
…iaskrgr

Rollup of 8 pull requests

Successful merges:

 - rust-lang#113534 (Forbid old-style `simd_shuffleN` intrinsics)
 - rust-lang#113999 (Specify macro is invalid in certain contexts)
 - rust-lang#114348 (Migrate GUI colors test to original CSS color format)
 - rust-lang#114373 (unix/kernel_copy.rs: copy_file_range_candidate allows empty output files)
 - rust-lang#114404 (Migrate GUI colors test to original CSS color format)
 - rust-lang#114409 (builtin impl confirmation wuhu)
 - rust-lang#114429 (compiletest: Handle non-utf8 paths (fix FIXME))
 - rust-lang#114431 (Enable tests on rustc_codegen_ssa)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 1f076fe into rust-lang:master Aug 4, 2023
@rustbot rustbot added this to the 1.73.0 milestone Aug 4, 2023
@Centri3 Centri3 deleted the macro-arm-expand branch August 8, 2023 19:59
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Aug 30, 2023
parser: not insert dummy field in struct

Fixes rust-lang#114636

This PR eliminates the dummy field, initially introduced in rust-lang#113999, thereby enabling unrestricted use of `ident.unwrap()`. A side effect of this action is that we can only report the error of the first macro invocation field within the struct node.

An alternative solution might be giving a virtual name to the macro, but it appears more complex.(rust-lang#114636 (comment)). Furthermore, if you think rust-lang#114636 (comment) is a better solution, feel free to close this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot use => inside the body of a macro_rules for defining match arms
4 participants