about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-07 15:39:07 +0100
committerGitHub <noreply@github.com>2022-12-07 15:39:07 +0100
commit95da525982abf0bdf6304596b3b91f50dcc7154a (patch)
treeb27cd3fe4e12d13737f9ce1a4bc7275234957a17 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent3bcfa4c45940eb9d41493d9d64c0f1dbe7f14f08 (diff)
parentc559cf62c21f9e4f804fae633f6d0499be7fae1c (diff)
downloadrust-95da525982abf0bdf6304596b3b91f50dcc7154a.tar.gz
rust-95da525982abf0bdf6304596b3b91f50dcc7154a.zip
Rollup merge of #105343 - nbdd0121:hir, r=fee1-dead
Simplify attribute handling in rustc_ast_lowering

Given that attributes is stored in a separate BTreeMap, it's not necessary to pass it in when constructing `hir::Expr`. We can just construct `hir::Expr` and then call `self.lower_attrs` later if it needs attributes.

As most desugaring code don't use attributes, this allows some code cleanup.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions