about summary refs log tree commit diff
path: root/compiler/rustc_attr_parsing
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-09-04 10:01:58 +1000
committerGitHub <noreply@github.com>2025-09-04 10:01:58 +1000
commit57e8a5317a844ce3f7355c53db34df6dd017da66 (patch)
treea05c947245182ec512e094071573d8965ef52bef /compiler/rustc_attr_parsing
parentc7a11f42e0a6c07f68009c183878f6aaf1bc14ed (diff)
parenta8537ab84bf7fd14b2445a058075dac764932e47 (diff)
downloadrust-57e8a5317a844ce3f7355c53db34df6dd017da66.tar.gz
rust-57e8a5317a844ce3f7355c53db34df6dd017da66.zip
Rollup merge of #146090 - Kobzol:invisible-origin-eq, r=petrochenkov
Derive `PartialEq` for `InvisibleOrigin`

For https://github.com/rust-lang/rust/pull/145354, we need `PartialEq` for `TokenStream` to "just work". However, due to the special comparison implementation that was used for `InvisibleOrigin`, this wasn't the case.

So I derived `PartialEq` for `InvisibleOrigin`, and used the previous special comparison logic only on the single place where it was actually required.

r? `````````@petrochenkov`````````
Diffstat (limited to 'compiler/rustc_attr_parsing')
0 files changed, 0 insertions, 0 deletions