about summary refs log tree commit diff
path: root/tests/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-19 11:38:14 +0000
committerbors <bors@rust-lang.org>2024-02-19 11:38:14 +0000
commitd8c8ccc38005c0583d0188a112f88233b151eff0 (patch)
tree09dc56becee428e94a193be9cf988034d1a2ff31 /tests/debuginfo/enum-thinlto.rs
parent60982dc8fc2e7862d68bb2b3e3d5d4fff8052de9 (diff)
parent91a8f34aeed075427ad4f6c0c6f58f247ac7de42 (diff)
downloadrust-d8c8ccc38005c0583d0188a112f88233b151eff0.tar.gz
rust-d8c8ccc38005c0583d0188a112f88233b151eff0.zip
Auto merge of #16358 - krobelus:fix-redundant-references-with-macros, r=Veykril
Deduplicate references when some of them are in macro expansions

EDIT: I wonder if this is a regression, I'll try to investigate.

Commit 6a06f6f72 (Deduplicate reference search results, 2022-11-07)
deduplicates references within each definition.

Apparently our descend_into_macros() stanza returns
one definition for each time a name is used in a macro.
Each of those definitions has the same set of references.
We return them all, leading to many redundant references.

Work around this by deduplicating definitions as well.  Perhaps there
is a better fix to not produce duplicate definitions in the first
place.

I discovered this working with the "bitflags" macro from the crate
of the same name.

Fixes #16357
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions