about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/spans.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-01-24 15:43:14 +0100
committerGitHub <noreply@github.com>2024-01-24 15:43:14 +0100
commitfee8f00024498e00c9deb689123092382b7cbe2c (patch)
treec3b38173f30b7954a21c8578f2d62f609339476f /compiler/rustc_mir_transform/src/coverage/spans.rs
parent8290589f242282b3bdabe6257820f9c97accedb9 (diff)
parentba75970473ea93b720deddf29201f65086b51095 (diff)
downloadrust-fee8f00024498e00c9deb689123092382b7cbe2c.tar.gz
rust-fee8f00024498e00c9deb689123092382b7cbe2c.zip
Rollup merge of #120284 - petrochenkov:typrivisit2, r=oli-obk
privacy: Refactor top-level visiting in `TypePrivacyVisitor`

Full hierarchical visiting (`nested_filter::All`) is not necessary, visiting all item-likes in isolation is enough.
Tracking current item is not necessary, just keeping the current `mod` item is enough.
`visit_generic_arg` should behave like its default version, including checking types of const arguments.
Some comments, including FIXMEs, are also added.

Noticed while reading code to review https://github.com/rust-lang/rust/pull/113671.
r? ``@oli-obk``
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/spans.rs')
0 files changed, 0 insertions, 0 deletions