diff options
| author | Gary Guo <gary@garyguo.net> | 2022-12-06 01:01:42 +0000 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2022-12-06 01:05:17 +0000 |
| commit | c559cf62c21f9e4f804fae633f6d0499be7fae1c (patch) | |
| tree | fbf679176af631fe265f5b33451f4ff05e238ea4 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 8e440b03761f725d452120a992723c7e261822b2 (diff) | |
| download | rust-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
