mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 02:14:58 +00:00
rust: error: use core::alloc::LayoutError
Use `core::alloc::LayoutError` instead of `alloc::alloc::LayoutError` in preparation to get rid of Rust's alloc crate. Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Reviewed-by: Gary Guo <gary@garyguo.net> Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://lore.kernel.org/r/20241004154149.93856-23-dakr@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
parent
3145dc91c3
commit
29a48d25ff
@ -6,7 +6,7 @@
|
||||
|
||||
use crate::{alloc::AllocError, str::CStr};
|
||||
|
||||
use alloc::alloc::LayoutError;
|
||||
use core::alloc::LayoutError;
|
||||
|
||||
use core::fmt;
|
||||
use core::num::NonZeroI32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user