Skip to content

Commit 8b5ba4a

Browse files
committed
comment nit
1 parent 7b98552 commit 8b5ba4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/cast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
189189
cast_ty: Ty<'tcx>,
190190
) -> Scalar<M::PointerTag> {
191191
// Let's make sure v is sign-extended *if* it has a signed type.
192-
let signed = src_layout.abi.is_signed(); // also checks that abi is `Scalar`.
192+
let signed = src_layout.abi.is_signed(); // Also asserts that abi is `Scalar`.
193193
let v = if signed { self.sign_extend(v, src_layout) } else { v };
194194
trace!("cast_from_scalar: {}, {} -> {}", v, src_layout.ty, cast_ty);
195195
use rustc_middle::ty::TyKind::*;

0 commit comments

Comments
 (0)