about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-11-25 15:05:38 +0100
committerGitHub <noreply@github.com>2021-11-25 15:05:38 +0100
commit5f6cb2c552a723c41ae31794c7f2f3a61704df69 (patch)
tree84cc5ed12c4bc1d03f75758c48b1e9d05aba19bd /compiler/rustc_mir_transform/src/coverage/mod.rs
parent6970cf5a23b4b9a3fbe474684e6bec9f0e13ddd4 (diff)
parent7f5d3fff4f138cd5aaeea2a3ec4be44da6e8c308 (diff)
downloadrust-5f6cb2c552a723c41ae31794c7f2f3a61704df69.tar.gz
rust-5f6cb2c552a723c41ae31794c7f2f3a61704df69.zip
Rollup merge of #91111 - cjgillot:hir-no-lower-attrs, r=michaelwoerister
Do not visit attributes in `ItemLowerer`.

By default, AST visitors visit expressions that appear in key-value attributes.
Those expressions should not be lowered to HIR, as they do not correspond to actually compiled code.

Since an attribute cannot produce meaningful HIR, just skip them altogether.

Fixes https://github.com/rust-lang/rust/issues/81886
Fixes https://github.com/rust-lang/rust/issues/90873
r? `@michaelwoerister`
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions