You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rustc --crate-type rlib --emit link t.rs
rustc --crate-type rlib --emit link --cap-lints=warn t.rs
rustc --crate-type rlib --emit link -Ddead-code t.rs
to all produce the same output from
rustc -Zls libt.rs
since this only affects the diagnostics and nothing about the crate itself (other than whether the crate is generated at all,
if an error is converted to a warning).
Instead, they all get different crate hashes:
(nothing)
Crate info:
name t
hash 5a3a7bb9cc8aaa16 stable_crate_id StableCrateId(18443930956397526271)
--cap-lints=warn:
Crate info:
name t
hash 99f5dd1f2478b80a stable_crate_id StableCrateId(18443930956397526271)
-Ddead-code:
Crate info:
name t
hash ffe4791362102371 stable_crate_id StableCrateId(18443930956397526271)
I tried this code
t.rs
:I'd expect the output of:
to all produce the same output from
since this only affects the diagnostics and nothing about the crate itself (other than whether the crate is generated at all,
if an error is converted to a warning).
Instead, they all get different crate hashes:
(nothing)
--cap-lints=warn:
-Ddead-code:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: