mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
Rustup gets rid of false positives
This commit is contained in:
parent
065974c8ae
commit
bac8b6f1de
@ -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 = []
|
||||
|
@ -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.
|
||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user