Rollup of 7 pull requests#156305
Open
JonathanBrouwer wants to merge 19 commits intorust-lang:mainfrom
Open
Conversation
The code is simpler with it gone.
By removing "random number", which is no longer true. And also wrapping the overly long lines.
To make clear some things I wasn't sure about.
All the necessary data can be taken from `SyntaxExtension` instead.
Clone only on interface boundaries with `rustc_expand`
This is consistent with our use of `widening` elsewhere. Suggested-by: Gabriel Bjørnager Jensen <gabriel@achernar.io>
* Lint doc comments in cfg_select branches * test with multi-line doc comment Co-authored-by: Copilot <copilot@github.com> * Reject outer attributes on `cfg_select` branches * address nits and gotchas Co-authored-by: Copilot <copilot@github.com> * one more test Co-authored-by: Copilot <copilot@github.com> * avoid snapshotting and classify recovered doc comments directly
resolve: Remove `MacroData` All the necessary data can be taken from `SyntaxExtension` instead.
Rename the unstable integer `extend` function to `widen` This is consistent with our use of `widening` elsewhere. Suggested-by: Gabriel Bjørnager Jensen <gabriel@achernar.io>
…ease turn some long-deprecated -C options into errors - `-Car` has been documented to do nothing for more than 8 years (rust-lang@691ab6c) and causes a warning for more than a year (rust-lang#135126). - `-Cno-stack-check` has been made a NOP and deprecated with a warning more than 9 years ago (rust-lang@c670293) - `-Cinline-threshold` has been made a NOP and deprecated with a warning almost 2 years ago (rust-lang#124712). With them being ignored there's always a risk someone thinks they'll do something and they don't notice the warning. I think these have been deprecated for long enough that we can turn them into hard errors. Also change the type of these fields to `()` so there's no information here that the rest of the compiler could use. This supersedes the `rustc_lint_opt_deny_field_access` trick. MCP: rust-lang/compiler-team#978
…=JonathanBrouwer Reject outer attributes on `cfg_select` branches Fixes rust-lang#155701.
…Brouwer Simplify the creation of synthetic HIR.
…adwinwhite Dep graph cleanups Minor cleanups I found while looking at dep graph code. Details in individual commits. r? @adwinwhite
…to-run-incr, r=nnethercote Do not cache `lints_that_dont_need_to_run` across sessions The `lints_that_dont_need_to_run` query depends on the lint store (which includes internal lints under `-Zunstable-options`). Because that flag is deliberately not part of the incremental command-line hash, incremental builds could load stale results from sessions with a different lint configuration, leading to an ICE. This PR marks the query `eval_always` so it is recomputed for the current session instead of being loaded from cache. Fixes rust-lang#156182.
Contributor
Author
|
@bors r+ rollup=never p=5 |
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
May 8, 2026
…uwer Rollup of 7 pull requests Successful merges: - #156236 (resolve: Remove `MacroData`) - #156298 (Rename the unstable integer `extend` function to `widen`) - #154498 (turn some long-deprecated -C options into errors) - #155734 (Reject outer attributes on `cfg_select` branches) - #156123 (Simplify the creation of synthetic HIR.) - #156175 (Dep graph cleanups) - #156214 (Do not cache `lints_that_dont_need_to_run` across sessions)
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
💔 Test for 3014362 failed: CI. Failed job:
|
Contributor
Author
|
Ffs |
Contributor
|
⌛ Testing commit 565ee37 with merge f2b291d... Workflow: https://github.com/rust-lang/rust/actions/runs/25552227572 |
rust-bors Bot
pushed a commit
that referenced
this pull request
May 8, 2026
…uwer Rollup of 7 pull requests Successful merges: - #156236 (resolve: Remove `MacroData`) - #156298 (Rename the unstable integer `extend` function to `widen`) - #154498 (turn some long-deprecated -C options into errors) - #155734 (Reject outer attributes on `cfg_select` branches) - #156123 (Simplify the creation of synthetic HIR.) - #156175 (Dep graph cleanups) - #156214 (Do not cache `lints_that_dont_need_to_run` across sessions)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
MacroData#156236 (resolve: RemoveMacroData)extendfunction towiden#156298 (Rename the unstable integerextendfunction towiden)cfg_selectbranches #155734 (Reject outer attributes oncfg_selectbranches)lints_that_dont_need_to_runacross sessions #156214 (Do not cachelints_that_dont_need_to_runacross sessions)r? @ghost
Create a similar rollup