From b933d05435ee046b2a44f4b9aa98e68d7b0d0010 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Mon, 20 Jul 2026 02:40:46 +0200 Subject: [PATCH] fix(fileio): satisfy ABI layout lint Use the type's bit width for the pointer-sized tail in the source-file projection layout assertion. This is numerically identical to eight pointer-sized bytes on supported targets while keeping the assertion compatible with the repository's warnings-as-errors lint policy. Test Plan: - ulimit -v 41943040; CARGO_BUILD_JOBS=1 cargo fmt --manifest-path rust/Cargo.toml --all -- --check - ulimit -v 41943040; CARGO_BUILD_JOBS=1 cargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warnings --- rust/src/fileio_asyncio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/fileio_asyncio.rs b/rust/src/fileio_asyncio.rs index 2f1faac2a..fc4e0ee31 100644 --- a/rust/src/fileio_asyncio.rs +++ b/rust/src/fileio_asyncio.rs @@ -361,7 +361,7 @@ const _: () = { ); assert!( size_of::() - == 3 * size_of::() + 4 * size_of::() + 8 * size_of::() + == 3 * size_of::() + 4 * size_of::() + usize::BITS as usize ); };