Skip to content

Commit 150cef9

Browse files
Add clippy into the known cfg list
1 parent bd6b336 commit 150cef9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_session/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,7 @@ impl CheckCfg {
14411441
// These three are never set by rustc, but we set them anyway: they
14421442
// should not trigger a lint because `cargo doc`, `cargo test`, and
14431443
// `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)