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_const_eval | |
| parent | db3e2bacb69c068fd9262a3aadd961ea2f7f940e (diff) | |
| download | rust-917f6540edc20de22e1fb3069e7b325209109350.tar.gz rust-917f6540edc20de22e1fb3069e7b325209109350.zip | |
Re-format code with new rustfmt
Diffstat (limited to 'compiler/rustc_const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/operator.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/operator.rs b/compiler/rustc_const_eval/src/interpret/operator.rs index a3ba9530f9d..128b548f43d 100644 --- a/compiler/rustc_const_eval/src/interpret/operator.rs +++ b/compiler/rustc_const_eval/src/interpret/operator.rs @@ -114,9 +114,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { use rustc_middle::mir::BinOp::*; // Performs appropriate non-deterministic adjustments of NaN results. - let adjust_nan = |f: F| -> F { - if f.is_nan() { M::generate_nan(self, &[l, r]) } else { f } - }; + let adjust_nan = + |f: F| -> F { if f.is_nan() { M::generate_nan(self, &[l, r]) } else { f } }; let val = match bin_op { Eq => ImmTy::from_bool(l == r, *self.tcx), |
