about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-11-21 16:16:02 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2021-11-23 22:06:22 +0100
commitae126ad282f24437d6f57909a038fbca24c1e6dd (patch)
tree20d6b6bd430108a76b4bf5f5bdae9cbb5c14b6d9 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
parent7b3cd075bbe309031b418650a9c32baf0b4a3276 (diff)
downloadrust-ae126ad282f24437d6f57909a038fbca24c1e6dd.tar.gz
rust-ae126ad282f24437d6f57909a038fbca24c1e6dd.zip
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.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions