about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2022-12-06 01:01:42 +0000
committerGary Guo <gary@garyguo.net>2022-12-06 01:05:17 +0000
commitc559cf62c21f9e4f804fae633f6d0499be7fae1c (patch)
treefbf679176af631fe265f5b33451f4ff05e238ea4 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent8e440b03761f725d452120a992723c7e261822b2 (diff)
downloadrust-c559cf62c21f9e4f804fae633f6d0499be7fae1c.tar.gz
rust-c559cf62c21f9e4f804fae633f6d0499be7fae1c.zip
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