Add rustfmt
cfg to well known cfgs list
This commit is contained in:
parent
02f7806ecd
commit
f90b15b7fc
18 changed files with 56 additions and 37 deletions
|
@ -262,13 +262,15 @@ impl CheckCfg {
|
|||
|
||||
ins!(sym::debug_assertions, no_values);
|
||||
|
||||
// These four are never set by rustc, but we set them anyway: they
|
||||
// should not trigger a lint because `cargo clippy`, `cargo doc`,
|
||||
// `cargo test` and `cargo miri run` (respectively) can set them.
|
||||
// These four are never set by rustc, but we set them anyway; they
|
||||
// should not trigger the lint because `cargo clippy`, `cargo doc`,
|
||||
// `cargo test`, `cargo miri run` and `cargo fmt` (respectively)
|
||||
// can set them.
|
||||
ins!(sym::clippy, no_values);
|
||||
ins!(sym::doc, no_values);
|
||||
ins!(sym::doctest, no_values);
|
||||
ins!(sym::miri, no_values);
|
||||
ins!(sym::rustfmt, no_values);
|
||||
|
||||
ins!(sym::overflow_checks, no_values);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue