about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-08 23:15:13 +0100
committerGitHub <noreply@github.com>2023-12-08 23:15:13 +0100
commitd2de292017a534a48bfa517434cd64a72e08f13f (patch)
tree34470ef65acf8b409c1c9de0a0e67aa6ca9f04e9 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent1889e5a00b447e3e9cf492b9aa265077dd39a54d (diff)
parent5d977240023003f9f8d82e42fd7d45bbfd630954 (diff)
downloadrust-d2de292017a534a48bfa517434cd64a72e08f13f.tar.gz
rust-d2de292017a534a48bfa517434cd64a72e08f13f.zip
Rollup merge of #118715 - davidtwco:issue-117997-privacy-visit-trait-ref-and-args, r=TaKO8Ki
privacy: visit trait def id of projections

Fixes #117997.

A refactoring in #117076 changed the `DefIdVisitorSkeleton` to avoid calling `visit_projection_ty` for `ty::Projection` aliases, and instead just iterate over the args - this makes sense, as `visit_projection_ty` will indirectly visit all of the same args, but in doing so, will also create a `TraitRef` containing the trait's `DefId`, which also gets visited. The trait's `DefId` isn't visited when we only visit the arguments without separating them into `TraitRef` and own args first.

Eventually this influences the reachability set and whether a function is encoded into the metadata.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions