From 4bb152c4bc5ff5b89e8b3c35908a5ad23e3527fe Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 19 May 2022 20:34:37 +0200 Subject: fmt --- compiler/rustc_const_eval/src/interpret/validity.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/rustc_const_eval') diff --git a/compiler/rustc_const_eval/src/interpret/validity.rs b/compiler/rustc_const_eval/src/interpret/validity.rs index 32d189ffd31..b39a33aff09 100644 --- a/compiler/rustc_const_eval/src/interpret/validity.rs +++ b/compiler/rustc_const_eval/src/interpret/validity.rs @@ -547,8 +547,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, ' if M::enforce_number_no_provenance(self.ecx) { // As a special exception we *do* match on a `Scalar` here, since we truly want // to know its underlying representation (and *not* cast it to an integer). - let is_ptr = - value.check_init().map_or(false, |v| matches!(v, Scalar::Ptr(..))); + let is_ptr = value.check_init().map_or(false, |v| matches!(v, Scalar::Ptr(..))); if is_ptr { throw_validation_failure!(self.path, { "{:x}", value } expected { "plain (non-pointer) bytes" } -- cgit 1.4.1-3-g733a5