Skip to content

Buffer pre-ast - #165049

Draft
Bryntet wants to merge 4 commits into
rust-lang:mainfrom
Bryntet:buffer-pre-ast
Draft

Bryntet wants to merge 4 commits into
rust-lang:mainfrom
Bryntet:buffer-pre-ast

Conversation

@Bryntet

@Bryntet Bryntet commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

been working on this for a little bit, talked to mejrs and realised it kinda conflicts/doesn't with jonathan's work on #164898

this PR is not ready for a full review yet, but putting it here for @mejrs as well as maybe having the ability of running perf on it in a bit

fixes #132218

r? mejrs

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 27, 2026
@Bryntet

Bryntet commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

@JonathanBrouwer

@JonathanBrouwer

Copy link
Copy Markdown
Member

@Bryntet Could you add a short description of what this PR does?

@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 27, 2026
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 27, 2026
@Bryntet

Bryntet commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

@JonathanBrouwer it buffers the pre-ast lints, to avoid parsing lint attrs 3x (after this PR it will only be 2x, early & late)

hopefully this has perf improvements. PR is very much not done yet though. mejrs asked to put up the draft already so he could look at the differences between this and your pr

@rust-log-analyzer

This comment has been minimized.

@rust-bors

rust-bors Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 33dce88 (33dce8820724ac84571db03aa30f91f5717d12ae)
Base parent: 16d1ffa (16d1ffac17ad8b739e32483ac2e65fe7e1804977)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (33dce88): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

Next, please: If you can, justify the regressions found in this try perf run in writing along with @rustbot label: +perf-regression-triaged. If not, fix the regressions and do another perf run. Neutral or positive results will clear the label automatically.

@bors rollup=iffy rustc-perf
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
0.3% [0.3%, 0.3%] 1
Regressions ❌
(secondary)
0.1% [0.1%, 0.1%] 1
Improvements ✅
(primary)
-0.4% [-0.5%, -0.2%] 9
Improvements ✅
(secondary)
-0.5% [-0.9%, -0.1%] 20
All ❌✅ (primary) -0.3% [-0.5%, 0.3%] 10

Max RSS (memory usage)

Results (primary -0.7%, secondary 0.7%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
1.2% [0.5%, 2.9%] 6
Regressions ❌
(secondary)
0.7% [0.5%, 0.8%] 2
Improvements ✅
(primary)
-1.7% [-3.7%, -0.4%] 11
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.7% [-3.7%, 2.9%] 17

Cycles

Results (primary 0.0%, secondary 1.7%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.6% [0.4%, 1.1%] 10
Regressions ❌
(secondary)
2.9% [1.7%, 5.0%] 3
Improvements ✅
(primary)
-1.0% [-1.9%, -0.4%] 6
Improvements ✅
(secondary)
-2.1% [-2.1%, -2.1%] 1
All ❌✅ (primary) 0.0% [-1.9%, 1.1%] 16

Binary size

Results (secondary 0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Bootstrap: 488.102s -> 490.26s (0.44%)
Artifact size: 405.92 MiB -> 406.13 MiB (0.05%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Oct 27, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 28, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 28, 2026
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-x86_64-gnu-gcc failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
tests/ui/should_impl_trait/method_list_1.rs (revision `edition2021`) ... ok
tests/ui/crashes/third-party/conf_allowlisted.rs ... ok

FAILED TEST: tests/ui/non_minimal_cfg.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Znext-solver=coherence" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-spantrace/99cbcf307e8ed293/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/73d150d775008946/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/ceb67e2d015b1ad3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minimal-lexical/4566b84562c1c7b9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/basic-toml/0180edf3e1dd46da/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crossbeam-utils/8d3a345503bd9afc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/pulldown-cmark/eb67469d5569dea7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/796685d886098227/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/47bce3bb175301c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/4b604b66d2364bbd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/80c3eceef29e5d27/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/8be3527d4bd9cef4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/38766ceb8f1e6650/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/portable-atomic/fd332bfd52852798/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_normalizer_data/7f53434b4aaf13f6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_properties_data/933af1304cf0a6a4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/glob/cc95fbc80b48af61/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_tools_util/772bf40876288c6d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/0c5597ee182c6ea7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/c37a4f87ade2a12e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc-hash/45d17beed43703c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_apfloat/de40b45a43904c36/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/synstructure/12cf60bce14a0be0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/af7429f650c72745/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/9f67318e35aa7d60/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/22b17a393f29f58d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/c7817c104ce5ba7d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/ddad3bf9904e3414/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/bbb6c26705b08836/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/64918dd1fd9d345a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/53120a174ca9a20d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/045fb7b8540bc4c9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/9feb1467a83de59c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/21f074854ce07680/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/camino/da98b4d9ff168802/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/autocfg/60ce3516925d7de4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/521e90d072bad49c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/af17f01bb39b0f39/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/fe5d92a423b433ca/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/561db933470720a2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerofrom-derive/ce5415be4afd97db/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/2d95cdb83869f243/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/1aeb3636a9e5d2f6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/2b364c070e9d5eef/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/b46ab5f36ba679ac/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/3874d53806052f22/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/3cae7642532b60d1/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/5c1ebb376f46990f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/131fe902e2066dd7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/eyre/0387bee71309a81a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/ee1fb17b32d9ffc3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/855668d163acebed/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/nom/cda50162aa468545/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerovec-derive/ccde61eafb0d1dcb/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-print-proc-macro/9fd4f6f6b1f661ee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/ab0a956fd4fb9ab1/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/6b88cacc7e85bdeb/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/2682bf3f9df78deb/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/6d0bd52136f294cd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/6dd6e2a25b5d804e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/5b07ea7a72a0b71a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/da82d471b1f25163/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/a1d36c7cda94a5e7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/owo-colors/23801ad4832a0cce/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/b2bb4b73aa9bab33/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/15b7bc8746160f34/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/4d9647e7f0d166bc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/yoke-derive/3b419257f3c584b5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/4074e1ac077c8f71/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/8ab3855fb81d37b0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/cb93873164d9630e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/object/09ce47df7d56e3f3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/72d6f5e7054638f4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/77f9f91906d0f47e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/memchr/8948491071e2fba3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clippy/c6311ea0aebb23dc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/winnow/a36ff7951de32312/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/782844add04a4e3a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/displaydoc/a54c983879ede515/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/heck/7b443578eb065f2b/out" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/0/tests/ui" "tests/ui/non_minimal_cfg.rs" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/4e256b88eef94b15/out/libfutures-4e256b88eef94b15.rlib" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/4e256b88eef94b15/out/libfutures-4e256b88eef94b15.rmeta" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/b629ae695be646fc/out/libitertools-b629ae695be646fc.rlib" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/b629ae695be646fc/out/libitertools-b629ae695be646fc.rmeta" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/ced29e386a7a613e/out/liblibc-ced29e386a7a613e.rlib" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/ced29e386a7a613e/out/liblibc-ced29e386a7a613e.rmeta" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/00d757920c05c379/out/libparking_lot-00d757920c05c379.rlib" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/00d757920c05c379/out/libparking_lot-00d757920c05c379.rmeta" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/0ef840f2bf3f4ba9/out/libquote-0ef840f2bf3f4ba9.rlib" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/0ef840f2bf3f4ba9/out/libquote-0ef840f2bf3f4ba9.rmeta" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/c1190a623da3287d/out/libregex-c1190a623da3287d.rlib" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/c1190a623da3287d/out/libregex-c1190a623da3287d.rmeta" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/2c4b20bcca5ba13f/out/libserde-2c4b20bcca5ba13f.rlib" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/2c4b20bcca5ba13f/out/libserde-2c4b20bcca5ba13f.rmeta" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/65d9e16f0daca2c6/out/libsyn-65d9e16f0daca2c6.rlib" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/65d9e16f0daca2c6/out/libsyn-65d9e16f0daca2c6.rmeta" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/4edb6e89adc25e8b/out/libtokio-4edb6e89adc25e8b.rlib" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/4edb6e89adc25e8b/out/libtokio-4edb6e89adc25e8b.rmeta" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-executor/8c34205760bbeb14/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/slab/89b15cf43240481c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/aho-corasick/3b4050f494a2faf7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/futures-macro/7a5adcf5e32504e3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/proc-macro2/76d4cad193058d93/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/4e256b88eef94b15/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/serde_derive/0ff45dd7a6935980/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-sink/2b4c01a80a7f2dae/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-io/73365a3365127b8a/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/bytes/406cb500be0edc2d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/smallvec/d3c4490a947dedf6/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-util/cd0acfba516a8a59/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/2c4b20bcca5ba13f/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot_core/4275e600bb35f37d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/b629ae695be646fc/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/ced29e386a7a613e/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/memchr/e355d4ff45f47b34/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-task/04c2ccc1a0ace568/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/lock_api/8b3a5357c1e1c40f/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/65d9e16f0daca2c6/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/c1190a623da3287d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/unicode-ident/7fe2cc7fc5c9aa76/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-core/2553a8b1f3a4e5d7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-utils/3042ebd3434b9f33/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-automata/6ed0d68a8d57f1ea/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-syntax/38f55cbc2300980c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/4edb6e89adc25e8b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/00d757920c05c379/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-project-lite/f8f7bc19f4536659/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-channel/ec9d8180c755712e/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/either/f0009f57fd023ddc/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/0ef840f2bf3f4ba9/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/scopeguard/8ca549d9a2797022/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/cfg-if/cf9639a6c3b94260/out" "--edition" "2024"

error: actual output differed from expected
Execute `./x test src/tools/clippy --bless` to update `tests/ui/non_minimal_cfg.stderr` to the actual output
--- tests/ui/non_minimal_cfg.stderr
+++ <stderr output>
 error: unneeded sub `cfg` when there is only one condition
-  --> tests/ui/non_minimal_cfg.rs:2:7
+  --> tests/ui/non_minimal_cfg.rs:10:11
    |
-LL | #[cfg(all(windows))]
+LL | #[cfg(all(any(unix), all(not(windows))))]
-   |       ^^^^^^^^^^^^ help: try: `windows`
+   |           ^^^^^^^^^ help: try: `unix`
    |
    = note: `-D clippy::non-minimal-cfg` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::non_minimal_cfg)]`
 
 error: unneeded sub `cfg` when there is only one condition
-  --> tests/ui/non_minimal_cfg.rs:6:7
+  --> tests/ui/non_minimal_cfg.rs:10:22
    |
-LL | #[cfg(any(windows))]
+LL | #[cfg(all(any(unix), all(not(windows))))]
-   |       ^^^^^^^^^^^^ help: try: `windows`
+   |                      ^^^^^^^^^^^^^^^^^ help: try: `not(windows)`
 
 error: unneeded sub `cfg` when there is only one condition
-  --> tests/ui/non_minimal_cfg.rs:10:11
+  --> tests/ui/non_minimal_cfg.rs:2:7
    |
-LL | #[cfg(all(any(unix), all(not(windows))))]
+LL | #[cfg(all(windows))]
-   |           ^^^^^^^^^ help: try: `unix`
+   |       ^^^^^^^^^^^^ help: try: `windows`
 
 error: unneeded sub `cfg` when there is only one condition
-  --> tests/ui/non_minimal_cfg.rs:10:22
+  --> tests/ui/non_minimal_cfg.rs:6:7
    |
-LL | #[cfg(all(any(unix), all(not(windows))))]
+LL | #[cfg(any(windows))]
-   |                      ^^^^^^^^^^^^^^^^^ help: try: `not(windows)`
+   |       ^^^^^^^^^^^^ help: try: `windows`
 
 error: aborting due to 4 previous errors
 

Full unnormalized output:
error: unneeded sub `cfg` when there is only one condition
##[error]  --> tests/ui/non_minimal_cfg.rs:10:11
   |
LL | #[cfg(all(any(unix), all(not(windows))))]
   |           ^^^^^^^^^ help: try: `unix`
   |
   = note: `-D clippy::non-minimal-cfg` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::non_minimal_cfg)]`

error: unneeded sub `cfg` when there is only one condition
##[error]  --> tests/ui/non_minimal_cfg.rs:10:22
   |
LL | #[cfg(all(any(unix), all(not(windows))))]
   |                      ^^^^^^^^^^^^^^^^^ help: try: `not(windows)`

error: unneeded sub `cfg` when there is only one condition
##[error]  --> tests/ui/non_minimal_cfg.rs:2:7
   |
LL | #[cfg(all(windows))]
---
full stderr:
error: unneeded sub `cfg` when there is only one condition
##[error]  --> tests/ui/non_minimal_cfg.rs:10:11
   |
LL | #[cfg(all(any(unix), all(not(windows))))]
   |           ^^^^^^^^^ help: try: `unix`
   |
   = note: `-D clippy::non-minimal-cfg` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::non_minimal_cfg)]`

error: unneeded sub `cfg` when there is only one condition
##[error]  --> tests/ui/non_minimal_cfg.rs:10:22
   |
LL | #[cfg(all(any(unix), all(not(windows))))]
   |                      ^^^^^^^^^^^^^^^^^ help: try: `not(windows)`

error: unneeded sub `cfg` when there is only one condition
##[error]  --> tests/ui/non_minimal_cfg.rs:2:7
   |
LL | #[cfg(all(windows))]
---



FAILED TEST: tests/ui/unnecessary_clippy_cfg.rs
command: CLIPPY_CONF_DIR="tests" RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "--error-format=json" "--emit=metadata" "-Aunused" "-Ainternal_features" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Znext-solver=coherence" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-spantrace/99cbcf307e8ed293/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/73d150d775008946/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/ceb67e2d015b1ad3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minimal-lexical/4566b84562c1c7b9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/basic-toml/0180edf3e1dd46da/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crossbeam-utils/8d3a345503bd9afc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/pulldown-cmark/eb67469d5569dea7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/796685d886098227/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/47bce3bb175301c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/4b604b66d2364bbd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/80c3eceef29e5d27/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/8be3527d4bd9cef4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/38766ceb8f1e6650/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/portable-atomic/fd332bfd52852798/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_normalizer_data/7f53434b4aaf13f6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_properties_data/933af1304cf0a6a4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/glob/cc95fbc80b48af61/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_tools_util/772bf40876288c6d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/0c5597ee182c6ea7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/c37a4f87ade2a12e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc-hash/45d17beed43703c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_apfloat/de40b45a43904c36/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/synstructure/12cf60bce14a0be0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/af7429f650c72745/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/9f67318e35aa7d60/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/22b17a393f29f58d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/c7817c104ce5ba7d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/ddad3bf9904e3414/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/bbb6c26705b08836/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/64918dd1fd9d345a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/53120a174ca9a20d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/045fb7b8540bc4c9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/9feb1467a83de59c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/21f074854ce07680/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/camino/da98b4d9ff168802/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/autocfg/60ce3516925d7de4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/521e90d072bad49c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/af17f01bb39b0f39/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/fe5d92a423b433ca/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/561db933470720a2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerofrom-derive/ce5415be4afd97db/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/2d95cdb83869f243/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/1aeb3636a9e5d2f6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/2b364c070e9d5eef/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/b46ab5f36ba679ac/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/3874d53806052f22/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/3cae7642532b60d1/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/5c1ebb376f46990f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/131fe902e2066dd7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/eyre/0387bee71309a81a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/ee1fb17b32d9ffc3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/855668d163acebed/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/nom/cda50162aa468545/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerovec-derive/ccde61eafb0d1dcb/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-print-proc-macro/9fd4f6f6b1f661ee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/ab0a956fd4fb9ab1/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/6b88cacc7e85bdeb/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/2682bf3f9df78deb/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/6d0bd52136f294cd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/6dd6e2a25b5d804e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/5b07ea7a72a0b71a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/da82d471b1f25163/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/a1d36c7cda94a5e7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/owo-colors/23801ad4832a0cce/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/b2bb4b73aa9bab33/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/15b7bc8746160f34/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/4d9647e7f0d166bc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/yoke-derive/3b419257f3c584b5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/4074e1ac077c8f71/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/8ab3855fb81d37b0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/cb93873164d9630e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/object/09ce47df7d56e3f3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/72d6f5e7054638f4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/77f9f91906d0f47e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/memchr/8948491071e2fba3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clippy/c6311ea0aebb23dc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/winnow/a36ff7951de32312/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/782844add04a4e3a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/displaydoc/a54c983879ede515/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/heck/7b443578eb065f2b/out" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/0/tests/ui" "tests/ui/unnecessary_clippy_cfg.rs" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/4e256b88eef94b15/out/libfutures-4e256b88eef94b15.rlib" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/4e256b88eef94b15/out/libfutures-4e256b88eef94b15.rmeta" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/b629ae695be646fc/out/libitertools-b629ae695be646fc.rlib" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/b629ae695be646fc/out/libitertools-b629ae695be646fc.rmeta" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/ced29e386a7a613e/out/liblibc-ced29e386a7a613e.rlib" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/ced29e386a7a613e/out/liblibc-ced29e386a7a613e.rmeta" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/00d757920c05c379/out/libparking_lot-00d757920c05c379.rlib" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/00d757920c05c379/out/libparking_lot-00d757920c05c379.rmeta" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/0ef840f2bf3f4ba9/out/libquote-0ef840f2bf3f4ba9.rlib" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/0ef840f2bf3f4ba9/out/libquote-0ef840f2bf3f4ba9.rmeta" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/c1190a623da3287d/out/libregex-c1190a623da3287d.rlib" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/c1190a623da3287d/out/libregex-c1190a623da3287d.rmeta" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/2c4b20bcca5ba13f/out/libserde-2c4b20bcca5ba13f.rlib" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/2c4b20bcca5ba13f/out/libserde-2c4b20bcca5ba13f.rmeta" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/65d9e16f0daca2c6/out/libsyn-65d9e16f0daca2c6.rlib" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/65d9e16f0daca2c6/out/libsyn-65d9e16f0daca2c6.rmeta" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/4edb6e89adc25e8b/out/libtokio-4edb6e89adc25e8b.rlib" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/4edb6e89adc25e8b/out/libtokio-4edb6e89adc25e8b.rmeta" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-executor/8c34205760bbeb14/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/slab/89b15cf43240481c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/aho-corasick/3b4050f494a2faf7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/futures-macro/7a5adcf5e32504e3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/proc-macro2/76d4cad193058d93/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/4e256b88eef94b15/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/serde_derive/0ff45dd7a6935980/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-sink/2b4c01a80a7f2dae/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-io/73365a3365127b8a/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/bytes/406cb500be0edc2d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/smallvec/d3c4490a947dedf6/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-util/cd0acfba516a8a59/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/2c4b20bcca5ba13f/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot_core/4275e600bb35f37d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/b629ae695be646fc/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/ced29e386a7a613e/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/memchr/e355d4ff45f47b34/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-task/04c2ccc1a0ace568/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/lock_api/8b3a5357c1e1c40f/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/65d9e16f0daca2c6/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/c1190a623da3287d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/unicode-ident/7fe2cc7fc5c9aa76/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-core/2553a8b1f3a4e5d7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-utils/3042ebd3434b9f33/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-automata/6ed0d68a8d57f1ea/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-syntax/38f55cbc2300980c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/4edb6e89adc25e8b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/00d757920c05c379/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-project-lite/f8f7bc19f4536659/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-channel/ec9d8180c755712e/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/either/f0009f57fd023ddc/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/0ef840f2bf3f4ba9/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/scopeguard/8ca549d9a2797022/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/cfg-if/cf9639a6c3b94260/out" "--edition" "2024"

error: actual output differed from expected
Execute `./x test src/tools/clippy --bless` to update `tests/ui/unnecessary_clippy_cfg.stderr` to the actual output
--- tests/ui/unnecessary_clippy_cfg.stderr
+++ <stderr output>

Important

For more information how to resolve CI failures of this job, visit this link.

@rust-bors

rust-bors Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 508a6aa (508a6aad30ce8b9c463403ebd9fafa2d55465c43)
Base parent: 41089d0 (41089d07a0a2afc16adfe28a760d94d73d7298a4)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (508a6aa): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@bors rollup=iffy rustc-perf
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
0.2% [0.2%, 0.2%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.4% [-0.6%, -0.2%] 11
Improvements ✅
(secondary)
-0.5% [-0.9%, -0.1%] 22
All ❌✅ (primary) -0.3% [-0.6%, 0.2%] 12

Max RSS (memory usage)

Results (primary -0.9%, secondary 2.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
1.4% [0.6%, 1.8%] 3
Regressions ❌
(secondary)
2.5% [1.0%, 3.5%] 3
Improvements ✅
(primary)
-1.5% [-4.5%, -0.4%] 12
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.9% [-4.5%, 1.8%] 15

Cycles

Results (primary 0.1%, secondary 6.2%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.8% [0.4%, 1.9%] 13
Regressions ❌
(secondary)
6.2% [0.4%, 19.0%] 4
Improvements ✅
(primary)
-0.9% [-1.5%, -0.5%] 9
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.1% [-1.5%, 1.9%] 22

Binary size

Results (primary 0.1%, secondary 0.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.1% [0.0%, 0.1%] 3
Regressions ❌
(secondary)
0.1% [0.0%, 0.1%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.1% [0.0%, 0.1%] 3

Bootstrap: 490.666s -> 489.906s (-0.15%)
Artifact size: 405.86 MiB -> 406.17 MiB (0.08%)

@rustbot rustbot removed perf-regression Performance regression. S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Oct 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-clippy Relevant to the Clippy team. 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.

Enabling keyword_idents lints doesn't warn about violations in other files

6 participants