diff options
| author | ouz-a <oguz.agcayazi@gmail.com> | 2021-12-13 12:59:31 +0300 |
|---|---|---|
| committer | ouz-a <oguz.agcayazi@gmail.com> | 2021-12-13 12:59:31 +0300 |
| commit | a01b13dede8f4197520ac136d87a831ddfadc9c4 (patch) | |
| tree | 92efad8fa58e285f86eebedafc8eed3f24d97ab0 | |
| parent | 01948e2f45acefc336501b9b9f836845fc566774 (diff) | |
| download | rust-a01b13dede8f4197520ac136d87a831ddfadc9c4.tar.gz rust-a01b13dede8f4197520ac136d87a831ddfadc9c4.zip | |
formatting
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/operator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/operator.rs b/compiler/rustc_const_eval/src/interpret/operator.rs index a3094c8991c..58a51b15faa 100644 --- a/compiler/rustc_const_eval/src/interpret/operator.rs +++ b/compiler/rustc_const_eval/src/interpret/operator.rs @@ -330,7 +330,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { _ if left.layout.ty.is_any_ptr() => { // The RHS type must be the same *or an integer type* (for `Offset`). assert!( - right.layout.ty.is_any_ptr()|| right.layout.ty.is_integral(), + right.layout.ty.is_any_ptr() || right.layout.ty.is_integral(), "Unexpected types for BinOp: {:?} {:?} {:?}", left.layout.ty, bin_op, |
