diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2025-08-02 19:19:17 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2025-08-02 19:19:17 +0000 |
| commit | bc177055f748d87f358fc360ba19932ca79b7c68 (patch) | |
| tree | 2d04185f86a7d62242546269384c9ac50f5da2cb /compiler/rustc_middle/src | |
| parent | 6d091b2baa33698682453c7bb72809554204e434 (diff) | |
| download | rust-bc177055f748d87f358fc360ba19932ca79b7c68.tar.gz rust-bc177055f748d87f358fc360ba19932ca79b7c68.zip | |
Do not record derived impl def-id for dead code.
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 2941808e806..a4589576594 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -1178,11 +1178,10 @@ rustc_queries! { /// Return the live symbols in the crate for dead code check. /// - /// The second return value maps from ADTs to ignored derived traits (e.g. Debug and Clone) and - /// their respective impl (i.e., part of the derive macro) + /// The second return value maps from ADTs to ignored derived traits (e.g. Debug and Clone). query live_symbols_and_ignored_derived_traits(_: ()) -> &'tcx ( LocalDefIdSet, - LocalDefIdMap<FxIndexSet<(DefId, DefId)>> + LocalDefIdMap<FxIndexSet<DefId>>, ) { arena_cache desc { "finding live symbols in crate" } |
