#![warn(trivial_numeric_casts)] stays cached when commenting out or uncommenting #52387
Labels
A-incr-comp
Area: Incremental compilation
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Starting with this code:
and running
cargo build
, it correctly warns:Then I comment out the warn setting as
//#![warn(trivial_numeric_casts)]
and runcargo build
again but it still warns:The underline is off as if the
//
wasn't there.Changing the code in any way (e.g.
1u8
) probably invalidates the cache because the warnings disappear.Tested on
rustc 1.27.1 (5f2b325f6 2018-07-07)
andrustc 1.29.0-nightly (254f8796b 2018-07-13)
.The text was updated successfully, but these errors were encountered: