Skip to content

Commit 527aac4

Browse files
Add clippy into the known cfg list
1 parent bd6b336 commit 527aac4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/rustc_session/src/config.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,9 +1438,10 @@ impl CheckCfg {
14381438

14391439
ins!(sym::debug_assertions, no_values);
14401440

1441-
// These three are never set by rustc, but we set them anyway: they
1442-
// should not trigger a lint because `cargo doc`, `cargo test`, and
1443-
// `cargo miri run` (respectively) can set them.
1441+
// These four are never set by rustc, but we set them anyway: they
1442+
// should not trigger a lint because `cargo doc`, `cargo test`,
1443+
// `cargo clippy` and `cargo miri run` (respectively) can set them.
1444+
ins!(sym::clippy, no_values);
14441445
ins!(sym::doc, no_values);
14451446
ins!(sym::doctest, no_values);
14461447
ins!(sym::miri, no_values);

0 commit comments

Comments
 (0)