mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
ddc718087f
* Ran automatic naming update * Formalized rename of `cyclomatic_complexity` to `cognitive_complexity` ** Added the rename to `lib.rs` ** Added rename test * Added warning for deprecated key `cyclomatic_complexity_threshold` and tests for it * Added deprecation status for Clippy's builtin attribute * Updated tests for new builtin attribute renaming
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
error: unknown lint: `stutter`
|
|
--> $DIR/rename.rs:1:10
|
|
|
|
|
LL | #![allow(stutter)]
|
|
| ^^^^^^^
|
|
|
|
|
= note: `-D unknown-lints` implied by `-D warnings`
|
|
|
|
error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity`
|
|
--> $DIR/rename.rs:2:9
|
|
|
|
|
LL | #![warn(clippy::cyclomatic_complexity)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity`
|
|
|
|
|
= note: `-D renamed-and-removed-lints` implied by `-D warnings`
|
|
|
|
error: lint `clippy::stutter` has been renamed to `clippy::module_name_repetitions`
|
|
--> $DIR/rename.rs:4:8
|
|
|
|
|
LL | #[warn(clippy::stutter)]
|
|
| ^^^^^^^^^^^^^^^ help: use the new name: `clippy::module_name_repetitions`
|
|
|
|
error: lint `clippy::new_without_default_derive` has been renamed to `clippy::new_without_default`
|
|
--> $DIR/rename.rs:7:8
|
|
|
|
|
LL | #[warn(clippy::new_without_default_derive)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::new_without_default`
|
|
|
|
error: unknown lint: `stutter`
|
|
--> $DIR/rename.rs:1:10
|
|
|
|
|
LL | #![allow(stutter)]
|
|
| ^^^^^^^
|
|
|
|
error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity`
|
|
--> $DIR/rename.rs:2:9
|
|
|
|
|
LL | #![warn(clippy::cyclomatic_complexity)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity`
|
|
|
|
error: aborting due to 6 previous errors
|
|
|