Enable #[diagnostic::on_unknown] during late res - #159413
Conversation
|
r? compiler |
| fn stuff(x: u32) { | ||
| match x { | ||
| empty::blah => {} | ||
| //~^ERROR cannot find unit struct, unit variant or constant `blah` in module `empty` [E0531] |
There was a problem hiding this comment.
Normally there's a space between the ~^ and ERROR. Likewise below.
There was a problem hiding this comment.
I've added the space.
The commit separation (not necessarily the ordering) is deliberate. I generally try to make things easy to review so I'll split up a PR into commits that refactor/reorder but otherwise don't change meaning, and commits that add/change meaning. And if I add/change diagnostic output I'll add a test in a first commit (with current output) and make changes in the second so that a commit-by-commit reviewer can see the output change. In this case ideally there would be three commits, one with the test, another with the refactor and the third with the change, but I've diverged slightly. I hope that makes sense. |
|
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. |
|
@bors r+ |
Rollup of 11 pull requests Successful merges: - #158168 (Added implementation on `set_permissions_nofollow` for all primary platforms) - #160055 (Simplify `MaybeRequiresStorage`) - #157226 (Partially stabilize `box_vec_non_null`) - #158879 (simplify `slice::Iter[Mut]::next_chunk` implementation) - #159413 (Enable `#[diagnostic::on_unknown]` during late res) - #160091 (Fix rustdoc toolbar height when title is taller than one line) - #158615 (fix: don't fire `explicit_outlives_requirements` on `?Sized` type params) - #159666 (fix(ld64.lld): route version mismatch warnings to linker_info on macOS) - #160032 (rustdoc-json: Make `Stability` compatible with non-self-describing serde formats) - #160039 (Add regression test for enum unconstrained parameter ) - #160049 (Use assert_eq! in splat codegen tests)
Rollup of 11 pull requests Successful merges: - #158168 (Added implementation on `set_permissions_nofollow` for all primary platforms) - #160055 (Simplify `MaybeRequiresStorage`) - #157226 (Partially stabilize `box_vec_non_null`) - #158879 (simplify `slice::Iter[Mut]::next_chunk` implementation) - #159413 (Enable `#[diagnostic::on_unknown]` during late res) - #160091 (Fix rustdoc toolbar height when title is taller than one line) - #158615 (fix: don't fire `explicit_outlives_requirements` on `?Sized` type params) - #159666 (fix(ld64.lld): route version mismatch warnings to linker_info on macOS) - #160032 (rustdoc-json: Make `Stability` compatible with non-self-describing serde formats) - #160039 (Add regression test for enum unconstrained parameter ) - #160049 (Use assert_eq! in splat codegen tests)
The pr prior to this is #157926. That PR enabled it for early res, this PR does so for late res.
r? @estebank