-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport.json
12 lines (11 loc) · 10.5 KB
/
report.json
1
2
3
4
5
6
7
8
9
10
11
12
Checking clippy-examples v0.1.0 (/Users/ericlegoff/repo-git/clippy-examples)
{"reason":"compiler-message","package_id":"clippy-examples 0.1.0 (path+file:///Users/ericlegoff/repo-git/clippy-examples)","manifest_path":"/Users/ericlegoff/repo-git/clippy-examples/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"clippy-examples","src_path":"/Users/ericlegoff/repo-git/clippy-examples/src/main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: enum is never used: `WebEvent`\n --> src/empty_enum.rs:5:6\n |\n5 | enum WebEvent {\n | ^^^^^^^^\n |\n = note: `#[warn(dead_code)]` on by default\n\n","children":[{"children":[],"code":null,"level":"note","message":"`#[warn(dead_code)]` on by default","rendered":null,"spans":[]}],"code":{"code":"dead_code","explanation":null},"level":"warning","message":"enum is never used: `WebEvent`","spans":[{"byte_end":237,"byte_start":229,"column_end":14,"column_start":6,"expansion":null,"file_name":"src/empty_enum.rs","is_primary":true,"label":null,"line_end":5,"line_start":5,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":14,"highlight_start":6,"text":"enum WebEvent {"}]}]}}
{"reason":"compiler-message","package_id":"clippy-examples 0.1.0 (path+file:///Users/ericlegoff/repo-git/clippy-examples)","manifest_path":"/Users/ericlegoff/repo-git/clippy-examples/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"clippy-examples","src_path":"/Users/ericlegoff/repo-git/clippy-examples/src/main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: enum is never used: `Useless`\n --> src/empty_enum.rs:17:6\n |\n17 | enum Useless{\n | ^^^^^^^\n\n","children":[],"code":{"code":"dead_code","explanation":null},"level":"warning","message":"enum is never used: `Useless`","spans":[{"byte_end":494,"byte_start":487,"column_end":13,"column_start":6,"expansion":null,"file_name":"src/empty_enum.rs","is_primary":true,"label":null,"line_end":17,"line_start":17,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":13,"highlight_start":6,"text":"enum Useless{"}]}]}}
{"reason":"compiler-message","package_id":"clippy-examples 0.1.0 (path+file:///Users/ericlegoff/repo-git/clippy-examples)","manifest_path":"/Users/ericlegoff/repo-git/clippy-examples/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"clippy-examples","src_path":"/Users/ericlegoff/repo-git/clippy-examples/src/main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false\n --> src/absurd.rs:3:8\n |\n3 | if vec.len() <= 0 {}\n | ^^^^^^^^^^^^^^\n |\n = note: `#[deny(clippy::absurd_extreme_comparisons)]` on by default\n = help: because `0` is the minimum value for this type, the case where the two sides are not equal never occurs, consider using `vec.len() == 0` instead\n = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons\n\n","children":[{"children":[],"code":null,"level":"note","message":"`#[deny(clippy::absurd_extreme_comparisons)]` on by default","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"because `0` is the minimum value for this type, the case where the two sides are not equal never occurs, consider using `vec.len() == 0` instead","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons","rendered":null,"spans":[]}],"code":{"code":"clippy::absurd_extreme_comparisons","explanation":null},"level":"error","message":"this comparison involving the minimum or maximum element for this type contains a case that is always true or always false","spans":[{"byte_end":74,"byte_start":60,"column_end":22,"column_start":8,"expansion":null,"file_name":"src/absurd.rs","is_primary":true,"label":null,"line_end":3,"line_start":3,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":22,"highlight_start":8,"text":" if vec.len() <= 0 {}"}]}]}}
{"reason":"compiler-message","package_id":"clippy-examples 0.1.0 (path+file:///Users/ericlegoff/repo-git/clippy-examples)","manifest_path":"/Users/ericlegoff/repo-git/clippy-examples/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"clippy-examples","src_path":"/Users/ericlegoff/repo-git/clippy-examples/src/main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false\n --> src/absurd.rs:4:8\n |\n4 | if 100 > i32::MAX {}\n | ^^^^^^^^^^^^^^\n |\n = help: because `i32::MAX` is the maximum value for this type, this comparison is always false\n = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons\n\n","children":[{"children":[],"code":null,"level":"help","message":"because `i32::MAX` is the maximum value for this type, this comparison is always false","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons","rendered":null,"spans":[]}],"code":{"code":"clippy::absurd_extreme_comparisons","explanation":null},"level":"error","message":"this comparison involving the minimum or maximum element for this type contains a case that is always true or always false","spans":[{"byte_end":99,"byte_start":85,"column_end":22,"column_start":8,"expansion":null,"file_name":"src/absurd.rs","is_primary":true,"label":null,"line_end":4,"line_start":4,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":22,"highlight_start":8,"text":" if 100 > i32::MAX {}"}]}]}}
{"reason":"compiler-message","package_id":"clippy-examples 0.1.0 (path+file:///Users/ericlegoff/repo-git/clippy-examples)","manifest_path":"/Users/ericlegoff/repo-git/clippy-examples/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"clippy-examples","src_path":"/Users/ericlegoff/repo-git/clippy-examples/src/main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"error: this looks like you are trying to swap `a` and `b`\n --> src/almost_swapped.rs:5:5\n |\n5 | / a = b;\n6 | | b = a;\n | |_________^ help: try: `std::mem::swap(&mut a, &mut b)`\n |\n = note: `#[deny(clippy::almost_swapped)]` on by default\n = note: or maybe you should use `std::mem::replace`?\n = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#almost_swapped\n\n","children":[{"children":[],"code":null,"level":"note","message":"`#[deny(clippy::almost_swapped)]` on by default","rendered":null,"spans":[]},{"children":[],"code":null,"level":"note","message":"or maybe you should use `std::mem::replace`?","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#almost_swapped","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"try","rendered":null,"spans":[{"byte_end":103,"byte_start":87,"column_end":10,"column_start":5,"expansion":null,"file_name":"src/almost_swapped.rs","is_primary":true,"label":null,"line_end":6,"line_start":5,"suggested_replacement":"std::mem::swap(&mut a, &mut b)","suggestion_applicability":"MaybeIncorrect","text":[{"highlight_end":11,"highlight_start":5,"text":" a = b;"},{"highlight_end":10,"highlight_start":1,"text":" b = a;"}]}]}],"code":{"code":"clippy::almost_swapped","explanation":null},"level":"error","message":"this looks like you are trying to swap `a` and `b`","spans":[{"byte_end":103,"byte_start":87,"column_end":10,"column_start":5,"expansion":null,"file_name":"src/almost_swapped.rs","is_primary":true,"label":null,"line_end":6,"line_start":5,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":11,"highlight_start":5,"text":" a = b;"},{"highlight_end":10,"highlight_start":1,"text":" b = a;"}]}]}}
{"reason":"compiler-message","package_id":"clippy-examples 0.1.0 (path+file:///Users/ericlegoff/repo-git/clippy-examples)","manifest_path":"/Users/ericlegoff/repo-git/clippy-examples/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"clippy-examples","src_path":"/Users/ericlegoff/repo-git/clippy-examples/src/main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly\n --> src/approx_constant.rs:2:13\n |\n2 | let x = 3.14;\n | ^^^^\n |\n = note: `#[deny(clippy::approx_constant)]` on by default\n = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant\n\n","children":[{"children":[],"code":null,"level":"note","message":"`#[deny(clippy::approx_constant)]` on by default","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant","rendered":null,"spans":[]}],"code":{"code":"clippy::approx_constant","explanation":null},"level":"error","message":"approximate value of `f{32, 64}::consts::PI` found. Consider using it directly","spans":[{"byte_end":31,"byte_start":27,"column_end":17,"column_start":13,"expansion":null,"file_name":"src/approx_constant.rs","is_primary":true,"label":null,"line_end":2,"line_start":2,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":17,"highlight_start":13,"text":" let x = 3.14;"}]}]}}
{"reason":"compiler-message","package_id":"clippy-examples 0.1.0 (path+file:///Users/ericlegoff/repo-git/clippy-examples)","manifest_path":"/Users/ericlegoff/repo-git/clippy-examples/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"clippy-examples","src_path":"/Users/ericlegoff/repo-git/clippy-examples/src/main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"error: aborting due to 4 previous errors; 2 warnings emitted\n\n","children":[],"code":null,"level":"error","message":"aborting due to 4 previous errors; 2 warnings emitted","spans":[]}}
{"reason":"build-finished","success":false}
error: could not compile `clippy-examples`
To learn more, run the command again with --verbose.