Rustup gets rid of false positives

This commit is contained in:
Oliver Schneider 2017-07-28 09:08:09 +02:00
parent 065974c8ae
commit bac8b6f1de
3 changed files with 34 additions and 19 deletions

View file

@ -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 = []

View file

@ -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.

View file

@ -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.