From 837b550238aa671a591ccf282dddeab29cadb206 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:42 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/num-traits/src/sign.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'vendor/num-traits/src/sign.rs') diff --git a/vendor/num-traits/src/sign.rs b/vendor/num-traits/src/sign.rs index 26d44c500..5c32071c2 100644 --- a/vendor/num-traits/src/sign.rs +++ b/vendor/num-traits/src/sign.rs @@ -213,13 +213,12 @@ fn unsigned_wrapping_is_unsigned() { fn require_unsigned(_: &T) {} require_unsigned(&Wrapping(42_u32)); } -/* + // Commenting this out since it doesn't compile on Rust 1.8, // because on this version Wrapping doesn't implement Neg and therefore can't // implement Signed. -#[test] -fn signed_wrapping_is_signed() { - fn require_signed(_: &T) {} - require_signed(&Wrapping(-42)); -} -*/ +// #[test] +// fn signed_wrapping_is_signed() { +// fn require_signed(_: &T) {} +// require_signed(&Wrapping(-42)); +// } -- cgit v1.2.3