about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-07-19 02:15:56 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-07-19 02:15:56 +0400
commit2edad7d77c91145b594ac80c3dc7906998b7674a (patch)
treee6c885e01e980ca89f3ea98477517654a89ed388 /compiler/rustc_codegen_llvm/src/builder.rs
parentda2752e00f0139fb13282b2bd97aa0f8c665aee9 (diff)
downloadrust-2edad7d77c91145b594ac80c3dc7906998b7674a.tar.gz
rust-2edad7d77c91145b594ac80c3dc7906998b7674a.zip
Apply suggestions from the review
- Use `expr.hir_id.owner` instead of `self.tcx.parent_module(expr.hir_id)`
- Use `.type_at()` instead of `.first()` + `.expect_ty()`
- Use single `.find()` with `&&` condition

Co-authored-by: Michael Goulet <michael@errs.io>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions