Skip to content

Commit 4bb152c

Browse files
committed
fmt
1 parent 42a91ed commit 4bb152c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_const_eval/src/interpret/validity.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
547547
if M::enforce_number_no_provenance(self.ecx) {
548548
// As a special exception we *do* match on a `Scalar` here, since we truly want
549549
// to know its underlying representation (and *not* cast it to an integer).
550-
let is_ptr =
551-
value.check_init().map_or(false, |v| matches!(v, Scalar::Ptr(..)));
550+
let is_ptr = value.check_init().map_or(false, |v| matches!(v, Scalar::Ptr(..)));
552551
if is_ptr {
553552
throw_validation_failure!(self.path,
554553
{ "{:x}", value } expected { "plain (non-pointer) bytes" }

0 commit comments

Comments
 (0)