Skip to content

Synthesize tokens for attributes - #160133

Draft
nnethercote wants to merge 7 commits into
rust-lang:mainfrom
nnethercote:synth-attr-tokens
Draft

Synthesize tokens for attributes#160133
nnethercote wants to merge 7 commits into
rust-lang:mainfrom
nnethercote:synth-attr-tokens

Conversation

@nnethercote

Copy link
Copy Markdown
Contributor

Instead of collecting them. This is simpler and faster and almost always gives identical results. Details in individual commits.

Prior to rust-lang#159633, the compiler made an invalid suggestion:
```
help: must be of the form
  |
1 - #[cfg_attr(true, cfg_attr(true, 3))]
1 + #[cfg_attr(true, #[cfg_attr(predicate, attr1, attr2, ...)])]
```
Now it is correct:
```
help: must be of the form
  |
1 - #[cfg_attr(true, cfg_attr(true, 3))]
1 + #[cfg_attr(true, cfg_attr(predicate, attr1, attr2, ...))]
```
But there was no test for it. This commit adds one.
This commit adds a new test for some uncovered cases. The thing to note
here is the varying correctness of the `help:` lines.

This is correct:
```
LL | #[inline]
   | ^^^^^^^^^ help: remove this attribute
```

The following two are half correct. They give the right idea but if
applied literally they will produce invalid syntax.
```
LL | #[cfg_attr(true, inline)]
   |                  ^^^^^^ help: remove this attribute

LL | #[cfg_attr(true, inline, deprecated)]
   |                  ^^^^^^ help: remove this attribute
```

For this reason, this commit also marks these help message as not
machine-applicable.
Currently it covers the entire span except in the case of
`cfg_attr`-expanded attributes. This commit eliminates that exception.

There is one place (`fake_token_stream_for_file_mod`) where the code
needs to know if an attr is from a `cfg_attr` expansion. So the commit
adds a new boolean `from_cfg_attr` field to `AttrItem` for this purpose.
This is simpler and more reliable than consulting spans to determine
`cfg_attr`-ness.

One test is affected, with spans covering an entire attribute in help
suggestions. Two of the suggestions become better (removing the
entire attribute is more correct), two of them become worse. Not a big
deal either way.
Instead of collecting them. In the vast majority of cases we can
synthesize tokens that are indistinguishable from collected tokens. This
is feasible because (a) attributes have a rigid micro-grammar and (b) we
record tokens for for the internal pieces in the interesting cases (e.g.
in `AttrArgs` within `AttrItem::args`).

This requires adding a flag `use_precise_delim_token_spans` to
distinguish the common case (perfect fidelity) from the uncommon case
(token spans are degraded).

This is a small perf win. It also has some other benefits.
- `NormalAttr` shrinks slightly because the `tokens` field is removed.
  This means `NormalAttr` is now a trivial wrapper around `AttrItem`
  (and will be removed in a subsequent commit).
- `Attribute` no longer needs a (no-op) impl of `HasAttrs`.
- Builtin attributes had grown synthesized token streams (e.g. rust-lang#159277).
  These are no longer needed and `mk_attr_tokens` is removable.
- `expand_cfg_attr_item` no longer has to do its token surgery.

The commit modifies the attr-complex-fn.rs test to demonstrate how
`#`/`!`/`[`/`]` token spans degrade in the uncommon case. (This case is
so uncommon that no existing tests triggered it.)
@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 29, 2026
@nnethercote

Copy link
Copy Markdown
Contributor Author

@petrochenkov: this may be controversial, but I wanted to try it out, and to see what you think. It was partly in response to the hand-written token streams added for internal attributes in #159277, which I don't like. The two "Synthesize" commits are the most interesting, if you want to start there.

@nnethercote

Copy link
Copy Markdown
Contributor Author

@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 Jul 29, 2026
@rust-bors

This comment has been minimized.

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

This comment has been minimized.

The previous commit did all the hard work.

Various places are slightly simpler, removing a `collect_tokens` usage,
a `WithTokens` usage, `WithTokens::map`, a `ForceCollect` argument, and
several `item.tokens.is_none()` assertions.

The output of `tests/ui/proc-macro/capture-macro-rules-invoke.rs` also
changed slightly for the better. The old output had `r#unsafe` even
though the test's code only has `unsafe`.
It's now just a zero-value wrapper around `AttrItem`.
@rustbot rustbot added T-clippy Relevant to the Clippy team. T-rustfmt Relevant to the rustfmt team, which will review and decide on the PR/issue. labels Jul 29, 2026
@petrochenkov petrochenkov self-assigned this Jul 29, 2026
@petrochenkov petrochenkov added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 29, 2026
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job x86_64-gnu-tools 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_2.rs (revision `edition2015`) ... ok
tests/ui/should_impl_trait/method_list_2.rs (revision `edition2021`) ... ok

FAILED TEST: tests/ui/allow_attributes.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" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/heck/491f063cc83d8b5b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc-hash/95b2ada53b4c4b9e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clippy/dc2941f688e240ba/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/pulldown-cmark/1ab95bb68d824558/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_normalizer_data/ae634f3eee859ef9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerovec-derive/4f73b14885d1a451/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/d0dc940b8c5d2c5d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/8ea6c4cb5cd7fff6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/d659ae7303e92e32/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/848517171e4a683d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/550c72e20e736569/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/ffd6fc91863176e8/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/8f8455c6bc3c84c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/displaydoc/45f5963029000c58/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/eyre/fed7a1cf2ead7eb4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-spantrace/1e7233d808f36e2f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/object/4ade34a3b88367c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/a6fca9296e3118d2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/776884f1212ff48d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/8ff249f828025caf/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/2211f221addb0b85/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/da6b61f2d98ca2fa/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/camino/988ad7c6bf7464c2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/df7628fa77aa90d3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/286f254a28531dab/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/synstructure/714888cdc8d85301/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/stacker/db5adc98a687f4b2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_apfloat/681b1039fea1e27f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_properties_data/81182495349648bc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-print-proc-macro/49591e166d9945f9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/f32328bedb31ef80/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/b9667a3b91c0a4e6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/0954b41633c4bef9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/1372ce9ef2f00b6f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/866af20c853e14ce/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/7207e265452c7bf4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/d23727d01653ce7e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/10c60cc8e0fdd184/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/febacdf95f5b1f4c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/0d757b6e4a15a942/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/4e6bbbceceb3a176/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/35b7a0f9d3768ba4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/e952e926b3350248/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/68c28d6c31af4245/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/b9302d4e77b92382/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/4f28f1b4723420bd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/4726d6306e13c933/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/a08c8df671ced38a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/sha2/cb30eb7412041894/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minifier/035cad07755ac01d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/shlex/d06f272b6462065b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustdoc/644601b0e3408ee4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/version_check/5fff0084284e115f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/block-buffer/72fd190ddd8edaaa/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/5f4d39c46ada2159/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/ab1bea861cf30f5d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/f2cece52de48c7df/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/bc24f2d8bb6beeee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/4055d4af5cd95479/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/memchr/85f84596898634c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/portable-atomic/27e6dfba64fddb59/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cpufeatures/119aa027245037e5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/a8a1f358b3c91008/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/77f12426e1dfa48e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/788a153beab7d0c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/4a51d92671e234fd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/cb1b9cd05ee72271/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/a55a8a2265c6798b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/nom/82a39c042d7f2f3f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/13124ea3b1232d93/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/62ff729b1e7943c4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/5f5dfd55f606473e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/c1e17fd6f04c783c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/d4a39ec1bd6a1193/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/24c890da8f596963/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/551f7fe10e08d74c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minimal-lexical/8d1f73ba21d43db3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/winnow/fe100b7855327d7e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_tools_util/f84f8e2b492898c9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/97745c8d28133061/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/6f80ec6ac8fe9ab2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/f0c5c56f809f710f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/e0c08a84f48c42ed/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/cd85ed728e5cdb67/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/digest/ccbf6d9679fcd8e3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/typenum/b994e360e661d0c4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/owo-colors/52a6eb7c20ede3f7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cfg-if/28572868e1ce49ea/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crossbeam-utils/83ac4636a2176bb0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerofrom-derive/a3118b3b59521e5c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crypto-common/1c90cd0adc595734/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/yoke-derive/74d24c5c406f6bb8/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/parking_lot_core/3023c63d73367692/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cc/e2e6d2aba4bce4e0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/02dee43d3359d6d2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/0634afa4a6c526ee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/d373518316d2a481/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/f0931bc3bb596476/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/psm/0481405923fe390b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/glob/af64ab248ed4d671/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/a68b12ca94dee315/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/6739b9807c4d5f90/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/basic-toml/4a4700ef86aa1657/out" "--sysroot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--crate-type=lib" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/0/tests/ui" "tests/ui/allow_attributes.rs" "--extern" "proc_macros=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/0/tests/ui/auxiliary/libproc_macros.so" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/0/tests/ui/auxiliary" "--extern" "proc_macro_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/0/tests/ui/auxiliary/libproc_macro_derive.so" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/0/tests/ui/auxiliary" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out/libfutures-54ce25c120d4ecc9.rlib" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out/libfutures-54ce25c120d4ecc9.rmeta" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out/libitertools-3ab01542d4779623.rlib" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out/libitertools-3ab01542d4779623.rmeta" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out/liblibc-be86d196a2ffc4f1.rlib" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out/liblibc-be86d196a2ffc4f1.rmeta" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out/libparking_lot-ac1ee065430ddbbf.rlib" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out/libparking_lot-ac1ee065430ddbbf.rmeta" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out/libquote-5a9517f4cf5f0139.rlib" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out/libquote-5a9517f4cf5f0139.rmeta" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out/libregex-571ef8893c1770a3.rlib" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out/libregex-571ef8893c1770a3.rmeta" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out/libserde-095f36e4867b2cfa.rlib" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out/libserde-095f36e4867b2cfa.rmeta" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out/libsyn-b1371a15df9273a3.rlib" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out/libsyn-b1371a15df9273a3.rmeta" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out/libtokio-fe3a25f64b3eb545.rlib" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out/libtokio-fe3a25f64b3eb545.rmeta" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-channel/4986bbf6034cb4c0/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot_core/92a35332f2174a01/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/smallvec/52f3176c5e164422/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/futures-macro/b5a0ce64c87ec796/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/scopeguard/11215e87e97a2ee7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/lock_api/c54ba3ea991f7ac5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-executor/d2ba0b0e7f557b06/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-task/128b6b6e2f614c4b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/memchr/08a621fff64ce0ae/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-sink/c712ff7ab7d6ec13/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-project-lite/0b93a9ce53bfc1d1/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/aho-corasick/00b5b94c528c8e5c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-automata/8a598edcceb5ba49/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/bytes/254368b221015de4/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/either/c265a6e919882907/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/slab/483af42f6e78955b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-util/5df51c951f04181c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-syntax/052935f846fefc58/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/serde_derive/c90f8db696b7f1a5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/proc-macro2/3b417f9e855e2528/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-core/f49006fb56f09f45/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/unicode-ident/8ad059593578cbe7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-utils/e4d88c78c5cd12ce/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-io/77fc6e72561ebc7d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/cfg-if/f718e114835f749c/out" "--edition" "2024"

error: actual output differed from expected
Execute `./x test src/tools/clippy --bless` to update `tests/ui/allow_attributes.stderr` to the actual output
--- tests/ui/allow_attributes.stderr
+++ <stderr output>
 error: #[allow] attribute found
   --> tests/ui/allow_attributes.rs:12:3
... 6 lines skipped ...
 
 error: #[allow] attribute found
-  --> tests/ui/allow_attributes.rs:22:30
-   |
-LL | #[cfg_attr(panic = "unwind", allow(dead_code))]
-   |                              ^^^^^ help: replace it with: `expect`
-
-error: #[allow] attribute found
   --> tests/ui/allow_attributes.rs:54:7
    |
... 7 lines skipped ...
    |    ^^^^^ help: replace it with: `expect`
 
-error: aborting due to 4 previous errors
+error: aborting due to 3 previous errors
 

Full unnormalized output:
error: #[allow] attribute found
##[error]  --> tests/ui/allow_attributes.rs:12:3
   |
LL | #[allow(dead_code)]
   |   ^^^^^ help: replace it with: `expect`
   |
   = note: `-D clippy::allow-attributes` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::allow_attributes)]`

error: #[allow] attribute found
##[error]  --> tests/ui/allow_attributes.rs:54:7
   |
LL |     #[allow(unused)]
   |       ^^^^^ help: replace it with: `expect`

error: #[allow] attribute found
##[error]  --> tests/ui/allow_attributes.rs:66:4
   |
LL | #[ allow ( dead_code ) ]
   |    ^^^^^ help: replace it with: `expect`

error: aborting due to 3 previous errors



---
   |      ^^^^^^^^^^^^^^^^ expected because of this pattern
   |

full stderr:
error: #[allow] attribute found
##[error]  --> tests/ui/allow_attributes.rs:12:3
   |
LL | #[allow(dead_code)]
   |   ^^^^^ help: replace it with: `expect`
   |
   = note: `-D clippy::allow-attributes` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::allow_attributes)]`

error: #[allow] attribute found
##[error]  --> tests/ui/allow_attributes.rs:54:7
   |
LL |     #[allow(unused)]
   |       ^^^^^ help: replace it with: `expect`

error: #[allow] attribute found
##[error]  --> tests/ui/allow_attributes.rs:66:4
   |
LL | #[ allow ( dead_code ) ]
   |    ^^^^^ help: replace it with: `expect`

error: aborting due to 3 previous errors


full stdout:



FAILED TEST: tests/ui/double_must_use_unfixable.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" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/heck/491f063cc83d8b5b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc-hash/95b2ada53b4c4b9e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clippy/dc2941f688e240ba/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/pulldown-cmark/1ab95bb68d824558/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_normalizer_data/ae634f3eee859ef9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerovec-derive/4f73b14885d1a451/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/d0dc940b8c5d2c5d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/8ea6c4cb5cd7fff6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/d659ae7303e92e32/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/848517171e4a683d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/550c72e20e736569/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/ffd6fc91863176e8/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/8f8455c6bc3c84c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/displaydoc/45f5963029000c58/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/eyre/fed7a1cf2ead7eb4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-spantrace/1e7233d808f36e2f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/object/4ade34a3b88367c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/a6fca9296e3118d2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/776884f1212ff48d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/8ff249f828025caf/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/2211f221addb0b85/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/da6b61f2d98ca2fa/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/camino/988ad7c6bf7464c2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/df7628fa77aa90d3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/286f254a28531dab/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/synstructure/714888cdc8d85301/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/stacker/db5adc98a687f4b2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_apfloat/681b1039fea1e27f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_properties_data/81182495349648bc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-print-proc-macro/49591e166d9945f9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/f32328bedb31ef80/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/b9667a3b91c0a4e6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/0954b41633c4bef9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/1372ce9ef2f00b6f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/866af20c853e14ce/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/7207e265452c7bf4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/d23727d01653ce7e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/10c60cc8e0fdd184/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/febacdf95f5b1f4c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/0d757b6e4a15a942/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/4e6bbbceceb3a176/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/35b7a0f9d3768ba4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/e952e926b3350248/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/68c28d6c31af4245/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/b9302d4e77b92382/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/4f28f1b4723420bd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/4726d6306e13c933/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/a08c8df671ced38a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/sha2/cb30eb7412041894/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minifier/035cad07755ac01d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/shlex/d06f272b6462065b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustdoc/644601b0e3408ee4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/version_check/5fff0084284e115f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/block-buffer/72fd190ddd8edaaa/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/5f4d39c46ada2159/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/ab1bea861cf30f5d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/f2cece52de48c7df/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/bc24f2d8bb6beeee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/4055d4af5cd95479/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/memchr/85f84596898634c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/portable-atomic/27e6dfba64fddb59/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cpufeatures/119aa027245037e5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/a8a1f358b3c91008/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/77f12426e1dfa48e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/788a153beab7d0c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/4a51d92671e234fd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/cb1b9cd05ee72271/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/a55a8a2265c6798b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/nom/82a39c042d7f2f3f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/13124ea3b1232d93/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/62ff729b1e7943c4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/5f5dfd55f606473e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/c1e17fd6f04c783c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/d4a39ec1bd6a1193/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/24c890da8f596963/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/551f7fe10e08d74c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minimal-lexical/8d1f73ba21d43db3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/winnow/fe100b7855327d7e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_tools_util/f84f8e2b492898c9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/97745c8d28133061/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/6f80ec6ac8fe9ab2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/f0c5c56f809f710f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/e0c08a84f48c42ed/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/cd85ed728e5cdb67/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/digest/ccbf6d9679fcd8e3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/typenum/b994e360e661d0c4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/owo-colors/52a6eb7c20ede3f7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cfg-if/28572868e1ce49ea/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crossbeam-utils/83ac4636a2176bb0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerofrom-derive/a3118b3b59521e5c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crypto-common/1c90cd0adc595734/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/yoke-derive/74d24c5c406f6bb8/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/parking_lot_core/3023c63d73367692/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cc/e2e6d2aba4bce4e0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/02dee43d3359d6d2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/0634afa4a6c526ee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/d373518316d2a481/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/f0931bc3bb596476/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/psm/0481405923fe390b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/glob/af64ab248ed4d671/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/a68b12ca94dee315/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/6739b9807c4d5f90/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/basic-toml/4a4700ef86aa1657/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/double_must_use_unfixable.rs" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out/libfutures-54ce25c120d4ecc9.rlib" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out/libfutures-54ce25c120d4ecc9.rmeta" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out/libitertools-3ab01542d4779623.rlib" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out/libitertools-3ab01542d4779623.rmeta" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out/liblibc-be86d196a2ffc4f1.rlib" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out/liblibc-be86d196a2ffc4f1.rmeta" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out/libparking_lot-ac1ee065430ddbbf.rlib" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out/libparking_lot-ac1ee065430ddbbf.rmeta" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out/libquote-5a9517f4cf5f0139.rlib" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out/libquote-5a9517f4cf5f0139.rmeta" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out/libregex-571ef8893c1770a3.rlib" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out/libregex-571ef8893c1770a3.rmeta" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out/libserde-095f36e4867b2cfa.rlib" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out/libserde-095f36e4867b2cfa.rmeta" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out/libsyn-b1371a15df9273a3.rlib" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out/libsyn-b1371a15df9273a3.rmeta" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out/libtokio-fe3a25f64b3eb545.rlib" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out/libtokio-fe3a25f64b3eb545.rmeta" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-channel/4986bbf6034cb4c0/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot_core/92a35332f2174a01/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/smallvec/52f3176c5e164422/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/futures-macro/b5a0ce64c87ec796/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/scopeguard/11215e87e97a2ee7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/lock_api/c54ba3ea991f7ac5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-executor/d2ba0b0e7f557b06/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-task/128b6b6e2f614c4b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/memchr/08a621fff64ce0ae/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-sink/c712ff7ab7d6ec13/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-project-lite/0b93a9ce53bfc1d1/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/aho-corasick/00b5b94c528c8e5c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-automata/8a598edcceb5ba49/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/bytes/254368b221015de4/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/either/c265a6e919882907/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/slab/483af42f6e78955b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-util/5df51c951f04181c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-syntax/052935f846fefc58/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/serde_derive/c90f8db696b7f1a5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/proc-macro2/3b417f9e855e2528/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-core/f49006fb56f09f45/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/unicode-ident/8ad059593578cbe7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-utils/e4d88c78c5cd12ce/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-io/77fc6e72561ebc7d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/cfg-if/f718e114835f749c/out" "--edition" "2024"

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



FAILED TEST: tests/ui/must_use_unit_unfixable.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" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/heck/491f063cc83d8b5b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc-hash/95b2ada53b4c4b9e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clippy/dc2941f688e240ba/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/pulldown-cmark/1ab95bb68d824558/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_normalizer_data/ae634f3eee859ef9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerovec-derive/4f73b14885d1a451/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/d0dc940b8c5d2c5d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/8ea6c4cb5cd7fff6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/d659ae7303e92e32/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/848517171e4a683d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/550c72e20e736569/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/ffd6fc91863176e8/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/8f8455c6bc3c84c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/displaydoc/45f5963029000c58/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/eyre/fed7a1cf2ead7eb4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-spantrace/1e7233d808f36e2f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/object/4ade34a3b88367c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/a6fca9296e3118d2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/776884f1212ff48d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/8ff249f828025caf/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/2211f221addb0b85/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/da6b61f2d98ca2fa/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/camino/988ad7c6bf7464c2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/df7628fa77aa90d3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/286f254a28531dab/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/synstructure/714888cdc8d85301/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/stacker/db5adc98a687f4b2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_apfloat/681b1039fea1e27f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_properties_data/81182495349648bc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-print-proc-macro/49591e166d9945f9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/f32328bedb31ef80/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/b9667a3b91c0a4e6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/0954b41633c4bef9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/1372ce9ef2f00b6f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/866af20c853e14ce/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/7207e265452c7bf4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/d23727d01653ce7e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/10c60cc8e0fdd184/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/febacdf95f5b1f4c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/0d757b6e4a15a942/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/4e6bbbceceb3a176/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/35b7a0f9d3768ba4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/e952e926b3350248/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/68c28d6c31af4245/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/b9302d4e77b92382/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/4f28f1b4723420bd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/4726d6306e13c933/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/a08c8df671ced38a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/sha2/cb30eb7412041894/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minifier/035cad07755ac01d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/shlex/d06f272b6462065b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustdoc/644601b0e3408ee4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/version_check/5fff0084284e115f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/block-buffer/72fd190ddd8edaaa/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/5f4d39c46ada2159/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/ab1bea861cf30f5d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/f2cece52de48c7df/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/bc24f2d8bb6beeee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/4055d4af5cd95479/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/memchr/85f84596898634c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/portable-atomic/27e6dfba64fddb59/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cpufeatures/119aa027245037e5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/a8a1f358b3c91008/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/77f12426e1dfa48e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/788a153beab7d0c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/4a51d92671e234fd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/cb1b9cd05ee72271/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/a55a8a2265c6798b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/nom/82a39c042d7f2f3f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/13124ea3b1232d93/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/62ff729b1e7943c4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/5f5dfd55f606473e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/c1e17fd6f04c783c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/d4a39ec1bd6a1193/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/24c890da8f596963/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/551f7fe10e08d74c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minimal-lexical/8d1f73ba21d43db3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/winnow/fe100b7855327d7e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_tools_util/f84f8e2b492898c9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/97745c8d28133061/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/6f80ec6ac8fe9ab2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/f0c5c56f809f710f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/e0c08a84f48c42ed/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/cd85ed728e5cdb67/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/digest/ccbf6d9679fcd8e3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/typenum/b994e360e661d0c4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/owo-colors/52a6eb7c20ede3f7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cfg-if/28572868e1ce49ea/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crossbeam-utils/83ac4636a2176bb0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerofrom-derive/a3118b3b59521e5c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crypto-common/1c90cd0adc595734/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/yoke-derive/74d24c5c406f6bb8/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/parking_lot_core/3023c63d73367692/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cc/e2e6d2aba4bce4e0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/02dee43d3359d6d2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/0634afa4a6c526ee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/d373518316d2a481/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/f0931bc3bb596476/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/psm/0481405923fe390b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/glob/af64ab248ed4d671/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/a68b12ca94dee315/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/6739b9807c4d5f90/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/basic-toml/4a4700ef86aa1657/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/must_use_unit_unfixable.rs" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out/libfutures-54ce25c120d4ecc9.rlib" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out/libfutures-54ce25c120d4ecc9.rmeta" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out/libitertools-3ab01542d4779623.rlib" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out/libitertools-3ab01542d4779623.rmeta" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out/liblibc-be86d196a2ffc4f1.rlib" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out/liblibc-be86d196a2ffc4f1.rmeta" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out/libparking_lot-ac1ee065430ddbbf.rlib" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out/libparking_lot-ac1ee065430ddbbf.rmeta" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out/libquote-5a9517f4cf5f0139.rlib" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out/libquote-5a9517f4cf5f0139.rmeta" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out/libregex-571ef8893c1770a3.rlib" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out/libregex-571ef8893c1770a3.rmeta" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out/libserde-095f36e4867b2cfa.rlib" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out/libserde-095f36e4867b2cfa.rmeta" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out/libsyn-b1371a15df9273a3.rlib" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out/libsyn-b1371a15df9273a3.rmeta" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out/libtokio-fe3a25f64b3eb545.rlib" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out/libtokio-fe3a25f64b3eb545.rmeta" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-channel/4986bbf6034cb4c0/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot_core/92a35332f2174a01/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/smallvec/52f3176c5e164422/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/futures-macro/b5a0ce64c87ec796/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/scopeguard/11215e87e97a2ee7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/lock_api/c54ba3ea991f7ac5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-executor/d2ba0b0e7f557b06/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-task/128b6b6e2f614c4b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/memchr/08a621fff64ce0ae/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-sink/c712ff7ab7d6ec13/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-project-lite/0b93a9ce53bfc1d1/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/aho-corasick/00b5b94c528c8e5c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-automata/8a598edcceb5ba49/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/bytes/254368b221015de4/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/either/c265a6e919882907/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/slab/483af42f6e78955b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-util/5df51c951f04181c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-syntax/052935f846fefc58/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/serde_derive/c90f8db696b7f1a5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/proc-macro2/3b417f9e855e2528/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-core/f49006fb56f09f45/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/unicode-ident/8ad059593578cbe7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-utils/e4d88c78c5cd12ce/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-io/77fc6e72561ebc7d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/cfg-if/f718e114835f749c/out" "--edition" "2024"

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



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" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/heck/491f063cc83d8b5b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc-hash/95b2ada53b4c4b9e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clippy/dc2941f688e240ba/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/pulldown-cmark/1ab95bb68d824558/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_normalizer_data/ae634f3eee859ef9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerovec-derive/4f73b14885d1a451/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/d0dc940b8c5d2c5d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/8ea6c4cb5cd7fff6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/d659ae7303e92e32/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/848517171e4a683d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/550c72e20e736569/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/ffd6fc91863176e8/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/8f8455c6bc3c84c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/displaydoc/45f5963029000c58/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/eyre/fed7a1cf2ead7eb4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-spantrace/1e7233d808f36e2f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/object/4ade34a3b88367c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/a6fca9296e3118d2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/776884f1212ff48d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/8ff249f828025caf/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/2211f221addb0b85/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/da6b61f2d98ca2fa/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/camino/988ad7c6bf7464c2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/df7628fa77aa90d3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/286f254a28531dab/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/synstructure/714888cdc8d85301/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/stacker/db5adc98a687f4b2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_apfloat/681b1039fea1e27f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_properties_data/81182495349648bc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-print-proc-macro/49591e166d9945f9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/f32328bedb31ef80/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/b9667a3b91c0a4e6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/0954b41633c4bef9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/1372ce9ef2f00b6f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/866af20c853e14ce/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/7207e265452c7bf4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/d23727d01653ce7e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/10c60cc8e0fdd184/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/febacdf95f5b1f4c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/0d757b6e4a15a942/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/4e6bbbceceb3a176/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/35b7a0f9d3768ba4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/e952e926b3350248/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/68c28d6c31af4245/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/b9302d4e77b92382/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/4f28f1b4723420bd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/4726d6306e13c933/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/a08c8df671ced38a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/sha2/cb30eb7412041894/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minifier/035cad07755ac01d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/shlex/d06f272b6462065b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustdoc/644601b0e3408ee4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/version_check/5fff0084284e115f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/block-buffer/72fd190ddd8edaaa/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/5f4d39c46ada2159/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/ab1bea861cf30f5d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/f2cece52de48c7df/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/bc24f2d8bb6beeee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/4055d4af5cd95479/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/memchr/85f84596898634c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/portable-atomic/27e6dfba64fddb59/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cpufeatures/119aa027245037e5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/a8a1f358b3c91008/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/77f12426e1dfa48e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/788a153beab7d0c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/4a51d92671e234fd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/cb1b9cd05ee72271/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/a55a8a2265c6798b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/nom/82a39c042d7f2f3f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/13124ea3b1232d93/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/62ff729b1e7943c4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/5f5dfd55f606473e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/c1e17fd6f04c783c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/d4a39ec1bd6a1193/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/24c890da8f596963/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/551f7fe10e08d74c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minimal-lexical/8d1f73ba21d43db3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/winnow/fe100b7855327d7e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_tools_util/f84f8e2b492898c9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/97745c8d28133061/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/6f80ec6ac8fe9ab2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/f0c5c56f809f710f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/e0c08a84f48c42ed/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/cd85ed728e5cdb67/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/digest/ccbf6d9679fcd8e3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/typenum/b994e360e661d0c4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/owo-colors/52a6eb7c20ede3f7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cfg-if/28572868e1ce49ea/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crossbeam-utils/83ac4636a2176bb0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerofrom-derive/a3118b3b59521e5c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crypto-common/1c90cd0adc595734/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/yoke-derive/74d24c5c406f6bb8/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/parking_lot_core/3023c63d73367692/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cc/e2e6d2aba4bce4e0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/02dee43d3359d6d2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/0634afa4a6c526ee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/d373518316d2a481/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/f0931bc3bb596476/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/psm/0481405923fe390b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/glob/af64ab248ed4d671/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/a68b12ca94dee315/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/6739b9807c4d5f90/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/basic-toml/4a4700ef86aa1657/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/54ce25c120d4ecc9/out/libfutures-54ce25c120d4ecc9.rlib" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out/libfutures-54ce25c120d4ecc9.rmeta" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out/libitertools-3ab01542d4779623.rlib" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out/libitertools-3ab01542d4779623.rmeta" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out/liblibc-be86d196a2ffc4f1.rlib" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out/liblibc-be86d196a2ffc4f1.rmeta" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out/libparking_lot-ac1ee065430ddbbf.rlib" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out/libparking_lot-ac1ee065430ddbbf.rmeta" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out/libquote-5a9517f4cf5f0139.rlib" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out/libquote-5a9517f4cf5f0139.rmeta" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out/libregex-571ef8893c1770a3.rlib" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out/libregex-571ef8893c1770a3.rmeta" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out/libserde-095f36e4867b2cfa.rlib" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out/libserde-095f36e4867b2cfa.rmeta" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out/libsyn-b1371a15df9273a3.rlib" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out/libsyn-b1371a15df9273a3.rmeta" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out/libtokio-fe3a25f64b3eb545.rlib" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out/libtokio-fe3a25f64b3eb545.rmeta" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-channel/4986bbf6034cb4c0/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot_core/92a35332f2174a01/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/smallvec/52f3176c5e164422/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/futures-macro/b5a0ce64c87ec796/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/scopeguard/11215e87e97a2ee7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/lock_api/c54ba3ea991f7ac5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-executor/d2ba0b0e7f557b06/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-task/128b6b6e2f614c4b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/memchr/08a621fff64ce0ae/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-sink/c712ff7ab7d6ec13/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-project-lite/0b93a9ce53bfc1d1/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/aho-corasick/00b5b94c528c8e5c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-automata/8a598edcceb5ba49/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/bytes/254368b221015de4/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/either/c265a6e919882907/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/slab/483af42f6e78955b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-util/5df51c951f04181c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-syntax/052935f846fefc58/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/serde_derive/c90f8db696b7f1a5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/proc-macro2/3b417f9e855e2528/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-core/f49006fb56f09f45/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/unicode-ident/8ad059593578cbe7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-utils/e4d88c78c5cd12ce/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-io/77fc6e72561ebc7d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/cfg-if/f718e114835f749c/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>
---
+   = help: to override `-D warnings` add `#[allow(clippy::empty_line_after_outer_attr)]`
+   = help: if the empty line is unintentional, remove it
+help: if the attribute should apply to the crate use an inner attribute
+   |
+LL ~ #![cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
+LL |
+LL ~ #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
+LL |
+LL ~ #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
+LL |
+LL ~ #![cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
+   |
 
+error: aborting due to 9 previous errors
+

---
   = help: to override `-D warnings` add `#[allow(clippy::empty_line_after_outer_attr)]`
   = help: if the empty line is unintentional, remove it
help: if the attribute should apply to the crate use an inner attribute
   |
LL ~ #![cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
LL |
LL ~ #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
LL |
LL ~ #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
LL |
LL ~ #![cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
   |

error: aborting due to 9 previous errors



error: there was 1 unmatched diagnostic
##[error]  --> tests/ui/unnecessary_clippy_cfg.rs:20:1
   |
20 | / #[cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
21 | | //~^ unnecessary_clippy_cfg
   | |____________________________^ Error[clippy::empty_line_after_outer_attr]: empty line after outer attribute
   |

full stderr:
error: no need to put clippy lints behind a `clippy` cfg
##[error]  --> tests/ui/unnecessary_clippy_cfg.rs:5:1
---
   = help: to override `-D warnings` add `#[allow(clippy::empty_line_after_outer_attr)]`
   = help: if the empty line is unintentional, remove it
help: if the attribute should apply to the crate use an inner attribute
   |
LL ~ #![cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
LL |
LL ~ #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
LL |
LL ~ #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
LL |
LL ~ #![cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
   |

error: aborting due to 9 previous errors


full stdout:



FAILED TEST: tests/ui/useless_attribute.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" "-Dwarnings" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/heck/491f063cc83d8b5b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc-hash/95b2ada53b4c4b9e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clippy/dc2941f688e240ba/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/pulldown-cmark/1ab95bb68d824558/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_normalizer_data/ae634f3eee859ef9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerovec-derive/4f73b14885d1a451/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/d0dc940b8c5d2c5d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_macros/8ea6c4cb5cd7fff6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/d659ae7303e92e32/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/anyhow/848517171e4a683d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/550c72e20e736569/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/ffd6fc91863176e8/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_json/8f8455c6bc3c84c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/displaydoc/45f5963029000c58/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/eyre/fed7a1cf2ead7eb4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-spantrace/1e7233d808f36e2f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/object/4ade34a3b88367c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/a6fca9296e3118d2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/unicode-ident/776884f1212ff48d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/8ff249f828025caf/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/2211f221addb0b85/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/generic-array/da6b61f2d98ca2fa/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/camino/988ad7c6bf7464c2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/df7628fa77aa90d3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustix/286f254a28531dab/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/synstructure/714888cdc8d85301/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/stacker/db5adc98a687f4b2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_apfloat/681b1039fea1e27f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/icu_properties_data/81182495349648bc/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/color-print-proc-macro/49591e166d9945f9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/f32328bedb31ef80/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/b9667a3b91c0a4e6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror-impl/0954b41633c4bef9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/1372ce9ef2f00b6f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/866af20c853e14ce/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_derive/7207e265452c7bf4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/d23727d01653ce7e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/tracing-attributes/10c60cc8e0fdd184/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/febacdf95f5b1f4c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_derive/0d757b6e4a15a942/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/4e6bbbceceb3a176/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/35b7a0f9d3768ba4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/e952e926b3350248/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/68c28d6c31af4245/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/b9302d4e77b92382/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/proc-macro2/4f28f1b4723420bd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/4726d6306e13c933/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/libc/a08c8df671ced38a/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/sha2/cb30eb7412041894/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minifier/035cad07755ac01d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/shlex/d06f272b6462065b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustdoc/644601b0e3408ee4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/version_check/5fff0084284e115f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/block-buffer/72fd190ddd8edaaa/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/5f4d39c46ada2159/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/ab1bea861cf30f5d/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/f2cece52de48c7df/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/bc24f2d8bb6beeee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde_core/4055d4af5cd95479/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/memchr/85f84596898634c5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/portable-atomic/27e6dfba64fddb59/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cpufeatures/119aa027245037e5/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/a8a1f358b3c91008/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/77f12426e1dfa48e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/788a153beab7d0c6/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/4a51d92671e234fd/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/cb1b9cd05ee72271/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/quote/a55a8a2265c6798b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/nom/82a39c042d7f2f3f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/13124ea3b1232d93/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/62ff729b1e7943c4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/5f5dfd55f606473e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/syn/c1e17fd6f04c783c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/d4a39ec1bd6a1193/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/24c890da8f596963/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/thiserror/551f7fe10e08d74c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/minimal-lexical/8d1f73ba21d43db3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/winnow/fe100b7855327d7e/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/rustc_tools_util/f84f8e2b492898c9/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/97745c8d28133061/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/6f80ec6ac8fe9ab2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/f0c5c56f809f710f/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/e0c08a84f48c42ed/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/serde/cd85ed728e5cdb67/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/digest/ccbf6d9679fcd8e3/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/typenum/b994e360e661d0c4/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/owo-colors/52a6eb7c20ede3f7/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cfg-if/28572868e1ce49ea/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crossbeam-utils/83ac4636a2176bb0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/zerofrom-derive/a3118b3b59521e5c/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/crypto-common/1c90cd0adc595734/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/yoke-derive/74d24c5c406f6bb8/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/parking_lot_core/3023c63d73367692/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/cc/e2e6d2aba4bce4e0/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/02dee43d3359d6d2/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/askama_parser/0634afa4a6c526ee/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/d373518316d2a481/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/getrandom/f0931bc3bb596476/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/psm/0481405923fe390b/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/glob/af64ab248ed4d671/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/a68b12ca94dee315/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/clap_derive/6739b9807c4d5f90/out" "-Ldependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/basic-toml/4a4700ef86aa1657/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/useless_attribute.rs" "--extern" "proc_macro_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/0/tests/ui/auxiliary/libproc_macro_derive.so" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/ui_test/0/tests/ui/auxiliary" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out/libfutures-54ce25c120d4ecc9.rlib" "--extern" "futures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out/libfutures-54ce25c120d4ecc9.rmeta" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out/libitertools-3ab01542d4779623.rlib" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out/libitertools-3ab01542d4779623.rmeta" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out/liblibc-be86d196a2ffc4f1.rlib" "--extern" "libc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out/liblibc-be86d196a2ffc4f1.rmeta" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out/libparking_lot-ac1ee065430ddbbf.rlib" "--extern" "parking_lot=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out/libparking_lot-ac1ee065430ddbbf.rmeta" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out/libquote-5a9517f4cf5f0139.rlib" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out/libquote-5a9517f4cf5f0139.rmeta" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out/libregex-571ef8893c1770a3.rlib" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out/libregex-571ef8893c1770a3.rmeta" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out/libserde-095f36e4867b2cfa.rlib" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out/libserde-095f36e4867b2cfa.rmeta" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out/libsyn-b1371a15df9273a3.rlib" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out/libsyn-b1371a15df9273a3.rmeta" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out/libtokio-fe3a25f64b3eb545.rlib" "--extern" "tokio=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out/libtokio-fe3a25f64b3eb545.rmeta" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-channel/4986bbf6034cb4c0/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures/54ce25c120d4ecc9/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot_core/92a35332f2174a01/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/syn/b1371a15df9273a3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/smallvec/52f3176c5e164422/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/futures-macro/b5a0ce64c87ec796/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/scopeguard/11215e87e97a2ee7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/lock_api/c54ba3ea991f7ac5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-executor/d2ba0b0e7f557b06/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/tokio/fe3a25f64b3eb545/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/itertools/3ab01542d4779623/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex/571ef8893c1770a3/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-task/128b6b6e2f614c4b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/quote/5a9517f4cf5f0139/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/serde/095f36e4867b2cfa/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/libc/be86d196a2ffc4f1/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/memchr/08a621fff64ce0ae/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-sink/c712ff7ab7d6ec13/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-project-lite/0b93a9ce53bfc1d1/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/aho-corasick/00b5b94c528c8e5c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-automata/8a598edcceb5ba49/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/bytes/254368b221015de4/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/either/c265a6e919882907/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/slab/483af42f6e78955b/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-util/5df51c951f04181c/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/regex-syntax/052935f846fefc58/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/debug/build/serde_derive/c90f8db696b7f1a5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/parking_lot/ac1ee065430ddbbf/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/proc-macro2/3b417f9e855e2528/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-core/f49006fb56f09f45/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/unicode-ident/8ad059593578cbe7/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/pin-utils/e4d88c78c5cd12ce/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/futures-io/77fc6e72561ebc7d/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/debug/build/cfg-if/f718e114835f749c/out" "--edition" "2024"

error: actual output differed from expected
Execute `./x test src/tools/clippy --bless` to update `tests/ui/useless_attribute.stderr` to the actual output
--- tests/ui/useless_attribute.stderr
+++ <stderr output>
 error: useless lint attribute
   --> tests/ui/useless_attribute.rs:8:1
... 9 lines skipped ...
    |
 LL | #[cfg_attr(clippy, allow(dead_code))]
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(clippy, allow(dead_code)`
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(clippy, allow(dead_code))]`
 
 error: useless lint attribute
... 5 lines skipped ...
 error: aborting due to 3 previous errors
 
---

error: useless lint attribute
##[error]  --> tests/ui/useless_attribute.rs:10:1
   |
LL | #[cfg_attr(clippy, allow(dead_code))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(clippy, allow(dead_code))]`

error: useless lint attribute
##[error]  --> tests/ui/useless_attribute.rs:22:5
   |
LL |     #[allow(clippy::almost_swapped)]
---

error: useless lint attribute
##[error]  --> tests/ui/useless_attribute.rs:10:1
   |
LL | #[cfg_attr(clippy, allow(dead_code))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(clippy, allow(dead_code))]`

error: useless lint attribute
##[error]  --> tests/ui/useless_attribute.rs:22:5
   |
LL |     #[allow(clippy::almost_swapped)]

@rust-bors

rust-bors Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 2559685 (2559685f2c2e275f9912c34ca04f1a6701f1477e)
Base parent: ce69831 (ce6983167791bf9418726264f8e5cc7abf73d69b)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (2559685): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf.

@bors rollup=never 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
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.5% [-1.7%, -0.1%] 55
Improvements ✅
(secondary)
-0.4% [-0.8%, -0.1%] 29
All ❌✅ (primary) -0.5% [-1.7%, -0.1%] 55

Max RSS (memory usage)

Results (primary -1.5%, 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
Regressions ❌
(secondary)
3.0% [0.8%, 6.3%] 4
Improvements ✅
(primary)
-1.5% [-4.8%, -0.5%] 40
Improvements ✅
(secondary)
-2.9% [-7.9%, -0.7%] 16
All ❌✅ (primary) -1.5% [-4.8%, -0.5%] 40

Cycles

Results (primary -2.4%, secondary -3.1%)

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
Improvements ✅
(primary)
-2.4% [-2.7%, -2.2%] 2
Improvements ✅
(secondary)
-3.1% [-4.1%, -2.3%] 7
All ❌✅ (primary) -2.4% [-2.7%, -2.2%] 2

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 490.002s -> 488.859s (-0.23%)
Artifact size: 390.14 MiB -> 390.11 MiB (-0.01%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 29, 2026
@petrochenkov

petrochenkov commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

and almost always gives identical results

It is the "almost" part that bothers me most.
There are so many little details that are observable by proc macros, but are not fully preserved by the token reconstruction

  • Token hygiene, not just location, all the #s, !s, and ::s in paths can technically be passed from different macro contexts with tt or proc macros.
  • Identifier rawness
  • Token jointness
  • None-delimited groups from nonterminals (unless the current parser loses them already)

And in response to that we say "yeah, we technically can preserve everything correctly, but we'll use an approximation anyway".

/// For internally constructed spans (`mk_attr_*`) the exact meaning may differ.
pub span: Span,
/// Was this created by expanding a `#[cfg_attr(pred, foo)]` attribute?
pub from_cfg_attr: bool,

@petrochenkov petrochenkov Jul 29, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, that this is also best effort.
E.g. in

#[identity_macro]
#[cfg_attr(true, inline)]
fn foo() {}

the from_cfg_attr flag will be lost, because identity_macro will receive #[inline] fn foo() {} as tokens, and will re-emit it as tokens too, to be parsed again.
(This is very similar to cfg and cfg_attr traces.)

View changes since the review

@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 29, 2026
@rust-bors

rust-bors Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #160238) made this pull request unmergeable. Please resolve the merge conflicts by rebasing.

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

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-run-make Area: port run-make Makefiles to rmake.rs 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. T-rustfmt Relevant to the rustfmt team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants