Skip to content

dogfood #[diagnostic::unknown] in the compiler - #160950

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
mejrs:unknown_symbol
Aug 13, 2026
Merged

dogfood #[diagnostic::unknown] in the compiler#160950
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
mejrs:unknown_symbol

Conversation

@mejrs

@mejrs mejrs commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

This makes the error for not-found symbols a lot nicer :)

error[E0425]: cannot find value `better_rust` in module `sym`                                                                                                                                                                          
   --> compiler\rustc_feature\src\unstable.rs:799:16
    |
157 |                 name: sym::$feature,
    |                            -------- due to this macro variable
...
799 |     (unstable, better_rust, "2.0.0", Some(42)),
    |                ^^^^^^^^^^^ `better_rust` is not a pre-interned symbol
    |
    = note: consider adding `better_rust` to the `symbols!` invocation in compiler/rustc_span/src/symbol.rs

(only works when building stage 2 for now, the necessary changes haven't landed in beta yet)

@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 Aug 11, 2026
@rustbot

rustbot commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

r? @jackh726

rustbot has assigned @jackh726.
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 75 candidates
  • Random selection from 18 candidates

@mejrs mejrs changed the title doogfood #[diagnostic::unknown] in the compiler dogfood #[diagnostic::unknown] in the compiler Aug 11, 2026
@chenyukang

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 77d3d5b has been approved by chenyukang

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 Aug 13, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 13, 2026
Rollup of 5 pull requests

Successful merges:

 - #160998 (rustfmt: restrict `cfg_select!` formatting to the `nightly` release channel)
 - #154150 (core: Improve the documentation for funnel shifts)
 - #161009 (Fix asimd/neon detection on aarch64-darwin)
 - #160950 (dogfood `#[diagnostic::unknown]` in the compiler)
 - #161010 (Add regression test for const fn returning Vec of boxed dyn Any)
@rust-bors
rust-bors Bot merged commit a242485 into rust-lang:main Aug 13, 2026
13 checks passed
@rustbot rustbot added this to the 1.99.0 milestone Aug 13, 2026
rust-timer added a commit that referenced this pull request Aug 13, 2026
Rollup merge of #160950 - mejrs:unknown_symbol, r=chenyukang

dogfood `#[diagnostic::unknown]` in the compiler

This makes the error for not-found symbols a lot nicer :)

```
error[E0425]: cannot find value `better_rust` in module `sym`
   --> compiler\rustc_feature\src\unstable.rs:799:16
    |
157 |                 name: sym::$feature,
    |                            -------- due to this macro variable
...
799 |     (unstable, better_rust, "2.0.0", Some(42)),
    |                ^^^^^^^^^^^ `better_rust` is not a pre-interned symbol
    |
    = note: consider adding `better_rust` to the `symbols!` invocation in compiler/rustc_span/src/symbol.rs
```

(only works when building stage 2 for now, the necessary changes haven't landed in beta yet)
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.

4 participants