diff --git a/clippy_lints/Cargo.toml b/clippy_lints/Cargo.toml index da3187be4aa..d74a4f789f4 100644 --- a/clippy_lints/Cargo.toml +++ b/clippy_lints/Cargo.toml @@ -27,6 +27,7 @@ serde = "1.0" serde_derive = "1.0" toml = "0.4" unicode-normalization = "0.1" +pulldown-cmark = "0.0.15" [features] debugging = [] diff --git a/clippy_tests/examples/attrs.stderr b/clippy_tests/examples/attrs.stderr index 15fe2429a35..ce56b8e6e3c 100644 --- a/clippy_tests/examples/attrs.stderr +++ b/clippy_tests/examples/attrs.stderr @@ -6,24 +6,6 @@ error: you have declared `#[inline(always)]` on `test_attr_lint`. This is usuall | = note: `-D inline-always` implied by `-D warnings` -error: you have declared `#[inline(always)]` on `false_positive_expr`. This is usually a bad idea - --> attrs.rs:11:1 - | -11 | #[inline(always)] - | ^^^^^^^^^^^^^^^^^ - -error: you have declared `#[inline(always)]` on `false_positive_stmt`. This is usually a bad idea - --> attrs.rs:16:1 - | -16 | #[inline(always)] - | ^^^^^^^^^^^^^^^^^ - -error: you have declared `#[inline(always)]` on `empty_and_false_positive_stmt`. This is usually a bad idea - --> attrs.rs:21:1 - | -21 | #[inline(always)] - | ^^^^^^^^^^^^^^^^^ - error: the since field must contain a semver-compliant version --> attrs.rs:27:14 | @@ -38,7 +20,7 @@ error: the since field must contain a semver-compliant version 30 | #[deprecated(since = "1")] | ^^^^^^^^^^^ -error: aborting due to 6 previous errors +error: aborting due to 3 previous errors To learn more, run the command again with --verbose. diff --git a/clippy_tests/examples/panic.stderr b/clippy_tests/examples/panic.stderr index e69de29bb2d..e8c3fffce05 100644 --- a/clippy_tests/examples/panic.stderr +++ b/clippy_tests/examples/panic.stderr @@ -0,0 +1,32 @@ +error: you probably are missing some parameter in your format string + --> panic.rs:8:16 + | +8 | panic!("{}"); + | ^^^^ + | + = note: `-D panic-params` implied by `-D warnings` + +error: you probably are missing some parameter in your format string + --> panic.rs:10:16 + | +10 | panic!("{:?}"); + | ^^^^^^ + +error: you probably are missing some parameter in your format string + --> panic.rs:12:23 + | +12 | assert!(true, "here be missing values: {}"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: you probably are missing some parameter in your format string + --> panic.rs:22:5 + | +22 | assert!("foo bar".contains(&format!("foo {}", "bar"))); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in a macro outside of the current crate + +error: aborting due to 4 previous errors + + +To learn more, run the command again with --verbose.