Reject outer attributes on cfg_select branches#155734
Reject outer attributes on cfg_select branches#155734rust-bors[bot] merged 1 commit intorust-lang:mainfrom
cfg_select branches#155734Conversation
fb8cf2e to
9c49112
Compare
|
Some changes occurred in compiler/rustc_attr_parsing |
|
rustbot has assigned @JonathanBrouwer. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Reminder, once the PR becomes ready for a review, use |
|
@bors r+ rollup |
…=JonathanBrouwer Lint doc comments in cfg_select branches Fixes rust-lang#155701.
…uwer Rollup of 6 pull requests Successful merges: - #154803 (Fix ICE from cfg_attr_trace ) - #155485 (Add an edge-case test for `--remap-path-prefix` for `rustc` & `rustdoc`) - #155659 (cleanup, restructure and merge `tests/ui/deriving` into `tests/ui/derives`) - #155696 (Add a higher-level API for parsing attributes) - #155734 (Lint doc comments in cfg_select branches) - #155769 (triagebot.toml: Ping Enselic when tests/debuginfo/basic-stepping.rs changes)
|
This PR allows more code to compile, so it's a language change and technically needs a T-lang FCP. cc @rust-lang/lang |
|
I'm sorry @bors r- |
|
This pull request was unapproved. This PR was contained in a rollup (#155773), which was unapproved. |
There was a problem hiding this comment.
The FCP is very technically here, given this was just stabilized and I think not erroring on a doc comment in that position is very much in the spirit of the feature stabilization.
Nevertheless, let's at least let T-lang decide what they want to do here.
|
@bors squash |
This comment has been minimized.
This comment has been minimized.
* 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
|
🔨 6 commits were squashed into d42a92b. |
c04993f to
d42a92b
Compare
|
@bors r+ rollup |
…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)
…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)
View all comments
Fixes #155701.