Skip to content

Call check_def_id when meeting assoc consts - #166565

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
mu001999-contrib:fix/dead-code
Nov 28, 2026
Merged

rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
mu001999-contrib:fix/dead-code

Conversation

@mu001999

Copy link
Copy Markdown
Member

I noticed this when reviewing #166264, but this is not related to that PR :).

WorkItem shouldn't be constructed manually, excluding create_and_seed_worklist and check_def_id. check_def_id will handle the allow/expect propagation correctly.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 25, 2026
@mu001999
mu001999 marked this pull request as ready for review November 26, 2026 00:04
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 26, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 26, 2026
@rustbot

rustbot commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

r? @ShoyuVanilla

rustbot has assigned @ShoyuVanilla.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 79 candidates
  • Random selection from 21 candidates

@ShoyuVanilla ShoyuVanilla 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.

It took me some time to read and understand this module since I wasn't familiar with it 😅
@bors r+ rollup

View changes since this review

@rust-bors

rust-bors Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 47fb861 has been approved by ShoyuVanilla

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Nov 28, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
…uwer

Rollup of 3 pull requests

Successful merges:

 - #166565 (Call `check_def_id` when meeting assoc consts)
 - #166639 (Add `DropGuard` and `conjure_zst` to `core::mem` summary documentation.)
 - #166677 (Add diagnostic items for `{debug_,}assert_matches!` macros)
@rust-bors
rust-bors Bot merged commit f05a4a4 into rust-lang:main Nov 28, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 28, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
Rollup merge of #166565 - mu001999-contrib:fix/dead-code, r=ShoyuVanilla

Call `check_def_id` when meeting assoc consts

I noticed this when reviewing #166264, but this is not related to that PR :).

`WorkItem` shouldn't be constructed manually, excluding `create_and_seed_worklist` and `check_def_id`. `check_def_id` will handle the `allow/expect` propagation correctly.
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.

3 participants