From 468a63b176206a41deeada2857ee04413c891b46 Mon Sep 17 00:00:00 2001 From: Ryuichiro Chiba Date: Wed, 1 Oct 2025 09:17:53 +0000 Subject: [PATCH] Fix the import path for size_of and align_of We have seen an error failing to resolve this import directive. Fix the path to import from the core crate. --- src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index 9cdabbd511b7b..8c6c5478b72ea 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -78,6 +78,8 @@ macro_rules! prelude { #[allow(unused_imports)] pub(crate) use core::marker::{Copy, Send, Sync}; #[allow(unused_imports)] + pub(crate) use core::mem::{align_of, align_of_val, size_of, size_of_val}; + #[allow(unused_imports)] pub(crate) use core::option::Option; #[allow(unused_imports)] pub(crate) use core::prelude::v1::derive; @@ -86,8 +88,6 @@ macro_rules! prelude { #[allow(unused_imports)] pub(crate) use fmt::Debug; - #[allow(unused_imports)] - pub(crate) use mem::{align_of, align_of_val, size_of, size_of_val}; #[allow(unused_imports)] pub(crate) use crate::types::{CEnumRepr, Padding};