about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorThalia Archibald <thalia@archibald.dev>2025-03-04 20:28:38 -0800
committerThalia Archibald <thalia@archibald.dev>2025-03-05 11:11:57 -0800
commitc85d3f6e874acd35647617161fd2ae950b94dedd (patch)
treebf23679eaab6b50d132148bdf47c20e2c4b6ce94 /src/tools/compiletest
parentac951d379913c667a1fb73a0830e81d65d2007cf (diff)
downloadrust-c85d3f6e874acd35647617161fd2ae950b94dedd.tar.gz
rust-c85d3f6e874acd35647617161fd2ae950b94dedd.zip
bootstrap and compiletest: Use size_of_val from the prelude instead of imported
Use `std::mem::size_of_val` from the prelude instead of importing or
qualifying it.

This function was added to all preludes in Rust 1.80.
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/raise_fd_limit.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/raise_fd_limit.rs b/src/tools/compiletest/src/raise_fd_limit.rs
index 4445ecb7ce8..7b12ba946b9 100644
--- a/src/tools/compiletest/src/raise_fd_limit.rs
+++ b/src/tools/compiletest/src/raise_fd_limit.rs
@@ -7,7 +7,6 @@
 #[cfg(target_vendor = "apple")]
 #[allow(non_camel_case_types)]
 pub unsafe fn raise_fd_limit() {
-    use std::mem::size_of_val;
     use std::ptr::null_mut;
     use std::{cmp, io};