We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5077f1 commit 5c60951Copy full SHA for 5c60951
library/std/src/os/windows/io/tests.rs
@@ -8,9 +8,9 @@ fn test_niche_optimizations_socket() {
8
assert_eq!(size_of::<Option<OwnedSocket>>(), size_of::<RawSocket>());
9
assert_eq!(size_of::<Option<BorrowedSocket<'static>>>(), size_of::<RawSocket>(),);
10
unsafe {
11
- #[cfg(target_pointer_size = "32")]
+ #[cfg(target_pointer_width = "32")]
12
let (min, max) = (i32::MIN as u32, i32::MAX as u32);
13
- #[cfg(target_pointer_size = "64")]
+ #[cfg(target_pointer_width = "64")]
14
let (min, max) = (i64::MIN as u64, i64::MAX as u64);
15
16
assert_eq!(OwnedSocket::from_raw_socket(min).into_raw_socket(), min);
0 commit comments