1
Fork 0

Add clippy into the known cfg list

This commit is contained in:
Guillaume Gomez 2024-02-15 11:40:22 +01:00
parent bd6b336133
commit 0860fc14ae

View file

@ -1438,9 +1438,10 @@ impl CheckCfg {
ins!(sym::debug_assertions, no_values); ins!(sym::debug_assertions, no_values);
// These three are never set by rustc, but we set them anyway: they // These four are never set by rustc, but we set them anyway: they
// should not trigger a lint because `cargo doc`, `cargo test`, and // should not trigger a lint because `cargo clippy`, `cargo doc`,
// `cargo miri run` (respectively) can set them. // `cargo test` and `cargo miri run` (respectively) can set them.
ins!(sym::clippy, no_values);
ins!(sym::doc, no_values); ins!(sym::doc, no_values);
ins!(sym::doctest, no_values); ins!(sym::doctest, no_values);
ins!(sym::miri, no_values); ins!(sym::miri, no_values);