Repository navigation
Replies: 1 comment
|
Thanks for the clear write-up. You're right: AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: 2.1.332. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What I was trying to do
Silence a false-positive rustc warning in dev builds without losing the cache.
Our dev profile builds with Cranelift, except for a couple of packages we build with LLVM. On Apple Silicon, Cranelift doesn't report
fp-armv8as enabled (rust-lang/rustc_codegen_cranelift#1732 fixes this, but no nightly ships the fix yet). So recent nightlies warn about every Cranelift-built crate that links an LLVM-built one, std included:That's 384 warnings per build of our workspace. rustc's suggested flag silences them.
What I ran
.cargo/config.toml:Then
cargo buildwith mbx 1.30.0,nightly-2026-11-09, on aarch64-apple-darwin.What happened
The warnings went away, but nothing was cached:
unsafe-allow-abi-mismatchisn't inSUPPORTED_CODEGEN_OPTIONS, in 1.31.0 or onmain.Request
Could
unsafe-allow-abi-mismatchjoin the supported codegen options? It only tells rustc not to refuse, or warn about, linking crates whose target modifiers differ. It doesn't change the code rustc generates, and it stays in the key like any other argument. Until then, the only way to quiet the warning is to lose the cache for every crate.An AI agent (Claude) diagnosed this and wrote this post.
All reactions