Closed zachs18 closed 5 months ago
I don't think this will help, cfg
-attributes apply to everything independent of their place in the attribute list. At least I think I had trouble with that in the past...
... but then, with your godbolt link it seems like this does help. So maybe I misremember, or things got changed, or no_std
is different.
... so that the crates are always
no_std
, even on unsupported platforms.For dependent binaries, this will cause either:
all(target_arch = "arm", target_os = "none")
.#[no_std]
, already provide a different#[panic_handler]
, or already pull instd
via another dependency.#[panic_handler]
is not defined and is now not pulled in fromstd
as it was before.cc https://github.com/rust-lang/miri/issues/3498#issuecomment-2088590212