Mark existing well-known cfg as unknown · Issue #117778 · rust-lang/rust (original) (raw)

There is no way to mark existing well-known attributes as unknown, is there? Specifically, I think it would be nice if there was a way for rustc to raise a warning when it encounters cfg(test) (which cargo could then make use of for crates that use lib.test = false).

Originally posted by @jplatte in #82450 (comment)

@rustbot label +C-discussion +F-check-cfg -needs-triage