diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2023-11-13 08:24:55 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2023-11-15 21:45:48 -0500 |
| commit | 917f6540edc20de22e1fb3069e7b325209109350 (patch) | |
| tree | a5a01f5b18db8bd67675a4c1f6a98867333aad96 /compiler/rustc_mir_transform/src/cost_checker.rs | |
| parent | db3e2bacb69c068fd9262a3aadd961ea2f7f940e (diff) | |
| download | rust-917f6540edc20de22e1fb3069e7b325209109350.tar.gz rust-917f6540edc20de22e1fb3069e7b325209109350.zip | |
Re-format code with new rustfmt
Diffstat (limited to 'compiler/rustc_mir_transform/src/cost_checker.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/cost_checker.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/cost_checker.rs b/compiler/rustc_mir_transform/src/cost_checker.rs index 9bb26693cb2..79bed960b95 100644 --- a/compiler/rustc_mir_transform/src/cost_checker.rs +++ b/compiler/rustc_mir_transform/src/cost_checker.rs @@ -69,7 +69,9 @@ impl<'tcx> Visitor<'tcx> for CostChecker<'_, 'tcx> { } TerminatorKind::Call { func: Operand::Constant(ref f), unwind, .. } => { let fn_ty = self.instantiate_ty(f.const_.ty()); - self.cost += if let ty::FnDef(def_id, _) = *fn_ty.kind() && tcx.is_intrinsic(def_id) { + self.cost += if let ty::FnDef(def_id, _) = *fn_ty.kind() + && tcx.is_intrinsic(def_id) + { // Don't give intrinsics the extra penalty for calls INSTR_COST } else { |
