Rollup merge of #138041 - thaliaarchi:use-prelude-size-of.boostrap-compiletest, r=jieyouxu
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. r? ``@jieyouxu``
This commit is contained in:
commit
65b5a2398a
3 changed files with 3 additions and 4 deletions
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue