Skip to content

Move part of the target checking for #[may_dangle] to the parser - #158261

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
JonathanBrouwer:may_dangle_target
Jun 26, 2026
Merged

Move part of the target checking for #[may_dangle] to the parser#158261
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
JonathanBrouwer:may_dangle_target

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Work towards removing the ALL_TARGETS list.
Only one remaining after this!

r? @mejrs

@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in compiler/rustc_passes/src/check_attr.rs

cc @jdonszelmann

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

@rustbotrustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) 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 Jun 22, 2026

@mejrsmejrs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

r=me after rebase on the lang attribute pr

View changes since this review

@mejrsmejrs added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 24, 2026
@rust-bors

This comment has been minimized.

@rustbot

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@JonathanBrouwer

Copy link
Copy Markdown
MemberAuthor

@bors r=mejrs rollup

@rust-bors

rust-borsBot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 42e3291 has been approved by mejrs

It is now in the queue for this repository.

🌲 The tree is currently closed for pull requests below priority 5. This pull request will be tested once the tree is reopened.

@rust-borsrust-borsBot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 25, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 25, 2026
… r=mejrs
Move part of the target checking for `#[may_dangle]` to the parser
Work towards removing the ALL_TARGETS list.
Only one remaining after this!
r? @mejrs
@jhprattjhpratt mentioned this pull request Jun 25, 2026
rust-borsBot pushed a commit that referenced this pull request Jun 25, 2026
Rollup of 10 pull requests
Successful merges:
- #158410 (Update LLVM for Mach-O __LINKEDIT alignment fix.)
- #157397 (cmse: clear padding when crossing the secure boundary)
- #158036 (Add -Zinstrument-mcount=fentry to -Zinstrument-mcount)
- #158330 (llvm: use intrinsics for f16, f32 minimum/maximum)
- #158359 (fix(tests): allow either branch direction in ilog_known_base)
- #158067 (LLVM 23: Adapt codegen test to moved assume)
- #158261 (Move part of the target checking for `#[may_dangle]` to the parser)
- #158358 (Fix invalid E0609 raw pointer deref suggestion inside macros)
- #158392 (delegation: add tests for defaults and infers in generics)
- #158394 (Generate synthetic generic args only for delegation's child segment)
@rust-bors
rust-borsBot merged commit 0ed70b1 into rust-lang:mainJun 26, 2026
13 checks passed
@rustbotrustbot added this to the 1.98.0 milestone Jun 26, 2026
rust-timer added a commit that referenced this pull request Jun 26, 2026
Rollup merge of #158261 - JonathanBrouwer:may_dangle_target, r=mejrs
Move part of the target checking for `#[may_dangle]` to the parser
Work towards removing the ALL_TARGETS list.
Only one remaining after this!
r? @mejrs
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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.

3 participants

@JonathanBrouwer@rustbot@mejrs