Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust lint does not work on windows #23

Open
LollipopFt opened this issue May 1, 2022 · 0 comments
Open

rust lint does not work on windows #23

LollipopFt opened this issue May 1, 2022 · 0 comments

Comments

@LollipopFt
Copy link

LollipopFt commented May 1, 2022

image
managed to get this in the log file. the linter does not display anything at all.

for context, file (in a cargo project):

#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]

mod test;

fn main() {
    println!("Hello, world!");
    let x: u64 = 6186491_8973511;
    print!("{}", x);
    let x = [3, 4, 5];
    let y: [u8; 3] = x.map(|x| x*3);
    println!("{:?}", y);
    let z = "this is a relatively long string, to see the diff between strings and code.";
    let a = "test";
    test::tree::printlol();
}
// fn main() {
//     for argument in std::env::args() {
//         println!("{argument:?}");
//     }
// }

error output:

{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: use of `println!`\n --> src\\main.rs:6:5\n  |\n6 |     println!(\"Hello, world!\");\n  |     ^^^^^^^^^^^^^^^^^^^^^^^^^\n  |\nnote: the lint level is defined here\n --> src\\main.rs:1:9\n  |\n1 | #![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]\n  |         ^^^^^^^^^^^^^^^^^^^\n  = note: `#[warn(clippy::print_stdout)]` implied by `#[warn(clippy::restriction)]`\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout\n\n","children":[{"children":[],"code":null,"level":"note","message":"the lint level is defined here","rendered":null,"spans":[{"byte_end":27,"byte_start":8,"column_end":28,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":28,"highlight_start":9,"text":"#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]"}]}]},{"children":[],"code":null,"level":"note","message":"`#[warn(clippy::print_stdout)]` implied by `#[warn(clippy::restriction)]`","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout","rendered":null,"spans":[]}],"code":{"code":"clippy::print_stdout","explanation":null},"level":"warning","message":"use of `println!`","spans":[{"byte_end":133,"byte_start":108,"column_end":30,"column_start":5,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":6,"line_start":6,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":30,"highlight_start":5,"text":"    println!(\"Hello, world!\");"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: use of `print!`\n --> src\\main.rs:8:5\n  |\n8 |     print!(\"{}\", x);\n  |     ^^^^^^^^^^^^^^^\n  |\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout\n\n","children":[{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout","rendered":null,"spans":[]}],"code":{"code":"clippy::print_stdout","explanation":null},"level":"warning","message":"use of `print!`","spans":[{"byte_end":188,"byte_start":173,"column_end":20,"column_start":5,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":8,"line_start":8,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":20,"highlight_start":5,"text":"    print!(\"{}\", x);"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: use of `println!`\n  --> src\\main.rs:11:5\n   |\n11 |     println!(\"{:?}\", y);\n   |     ^^^^^^^^^^^^^^^^^^^\n   |\n   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout\n\n","children":[{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout","rendered":null,"spans":[]}],"code":{"code":"clippy::print_stdout","explanation":null},"level":"warning","message":"use of `println!`","spans":[{"byte_end":273,"byte_start":254,"column_end":24,"column_start":5,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":11,"line_start":11,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":24,"highlight_start":5,"text":"    println!(\"{:?}\", y);"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: use of `Debug`-based formatting\n  --> src\\main.rs:11:15\n   |\n11 |     println!(\"{:?}\", y);\n   |               ^^^^\n   |\nnote: the lint level is defined here\n  --> src\\main.rs:1:9\n   |\n1  | #![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]\n   |         ^^^^^^^^^^^^^^^^^^^\n   = note: `#[warn(clippy::use_debug)]` implied by `#[warn(clippy::restriction)]`\n   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#use_debug\n\n","children":[{"children":[],"code":null,"level":"note","message":"the lint level is defined here","rendered":null,"spans":[{"byte_end":27,"byte_start":8,"column_end":28,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":28,"highlight_start":9,"text":"#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]"}]}]},{"children":[],"code":null,"level":"note","message":"`#[warn(clippy::use_debug)]` implied by `#[warn(clippy::restriction)]`","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#use_debug","rendered":null,"spans":[]}],"code":{"code":"clippy::use_debug","explanation":null},"level":"warning","message":"use of `Debug`-based formatting","spans":[{"byte_end":268,"byte_start":264,"column_end":19,"column_start":15,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":11,"line_start":11,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":19,"highlight_start":15,"text":"    println!(\"{:?}\", y);"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: digit groups should be smaller\n --> src\\main.rs:7:18\n  |\n7 |     let x: u64 = 6186491_8973511;\n  |                  ^^^^^^^^^^^^^^^ help: consider: `61_864_918_973_511`\n  |\nnote: the lint level is defined here\n --> src\\main.rs:1:30\n  |\n1 | #![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]\n  |                              ^^^^^^^^^^^^^^^^\n  = note: `#[warn(clippy::large_digit_groups)]` implied by `#[warn(clippy::pedantic)]`\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups\n\n","children":[{"children":[],"code":null,"level":"note","message":"the lint level is defined here","rendered":null,"spans":[{"byte_end":45,"byte_start":29,"column_end":46,"column_start":30,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":46,"highlight_start":30,"text":"#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]"}]}]},{"children":[],"code":null,"level":"note","message":"`#[warn(clippy::large_digit_groups)]` implied by `#[warn(clippy::pedantic)]`","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"consider","rendered":null,"spans":[{"byte_end":167,"byte_start":152,"column_end":33,"column_start":18,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":7,"line_start":7,"suggested_replacement":"61_864_918_973_511","suggestion_applicability":"MachineApplicable","text":[{"highlight_end":33,"highlight_start":18,"text":"    let x: u64 = 6186491_8973511;"}]}]}],"code":{"code":"clippy::large_digit_groups","explanation":null},"level":"warning","message":"digit groups should be smaller","spans":[{"byte_end":167,"byte_start":152,"column_end":33,"column_start":18,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":7,"line_start":7,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":33,"highlight_start":18,"text":"    let x: u64 = 6186491_8973511;"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: unused variable: `z`\n  --> src\\main.rs:12:9\n   |\n12 |     let z = \"this is a relatively long string, to see the diff between strings and code.\";\n   |         ^ help: if this is intentional, prefix it with an underscore: `_z`\n   |\n   = note: `#[warn(unused_variables)]` on by default\n\n","children":[{"children":[],"code":null,"level":"note","message":"`#[warn(unused_variables)]` on by default","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"if this is intentional, prefix it with an underscore","rendered":null,"spans":[{"byte_end":284,"byte_start":283,"column_end":10,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":12,"line_start":12,"suggested_replacement":"_z","suggestion_applicability":"MachineApplicable","text":[{"highlight_end":10,"highlight_start":9,"text":"    let z = \"this is a relatively long string, to see the diff between strings and code.\";"}]}]}],"code":{"code":"unused_variables","explanation":null},"level":"warning","message":"unused variable: `z`","spans":[{"byte_end":284,"byte_start":283,"column_end":10,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":12,"line_start":12,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":10,"highlight_start":9,"text":"    let z = \"this is a relatively long string, to see the diff between strings and code.\";"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: unused variable: `a`\n  --> src\\main.rs:13:9\n   |\n13 |     let a = \"test\";\n   |         ^ help: if this is intentional, prefix it with an underscore: `_a`\n\n","children":[{"children":[],"code":null,"level":"help","message":"if this is intentional, prefix it with an underscore","rendered":null,"spans":[{"byte_end":375,"byte_start":374,"column_end":10,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":13,"line_start":13,"suggested_replacement":"_a","suggestion_applicability":"MachineApplicable","text":[{"highlight_end":10,"highlight_start":9,"text":"    let a = \"test\";"}]}]}],"code":{"code":"unused_variables","explanation":null},"level":"warning","message":"unused variable: `a`","spans":[{"byte_end":375,"byte_start":374,"column_end":10,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":13,"line_start":13,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":10,"highlight_start":9,"text":"    let a = \"test\";"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: missing documentation for the crate\n  --> src\\main.rs:1:1\n   |\n1  | / #![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]\n2  | |\n3  | | mod test;\n4  | |\n...  |\n14 | |     test::tree::printlol();\n15 | | }\n   | |_^\n   |\nnote: the lint level is defined here\n  --> src\\main.rs:1:9\n   |\n1  | #![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]\n   |         ^^^^^^^^^^^^^^^^^^^\n   = note: `#[warn(clippy::missing_docs_in_private_items)]` implied by `#[warn(clippy::restriction)]`\n   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items\n\n","children":[{"children":[],"code":null,"level":"note","message":"the lint level is defined here","rendered":null,"spans":[{"byte_end":27,"byte_start":8,"column_end":28,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":28,"highlight_start":9,"text":"#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]"}]}]},{"children":[],"code":null,"level":"note","message":"`#[warn(clippy::missing_docs_in_private_items)]` implied by `#[warn(clippy::restriction)]`","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items","rendered":null,"spans":[]}],"code":{"code":"clippy::missing_docs_in_private_items","explanation":null},"level":"warning","message":"missing documentation for the crate","spans":[{"byte_end":415,"byte_start":0,"column_end":2,"column_start":1,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":15,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":80,"highlight_start":1,"text":"#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]"},{"highlight_end":1,"highlight_start":1,"text":""},{"highlight_end":10,"highlight_start":1,"text":"mod test;"},{"highlight_end":1,"highlight_start":1,"text":""},{"highlight_end":12,"highlight_start":1,"text":"fn main() {"},{"highlight_end":31,"highlight_start":1,"text":"    println!(\"Hello, world!\");"},{"highlight_end":34,"highlight_start":1,"text":"    let x: u64 = 6186491_8973511;"},{"highlight_end":21,"highlight_start":1,"text":"    print!(\"{}\", x);"},{"highlight_end":23,"highlight_start":1,"text":"    let x = [3, 4, 5];"},{"highlight_end":37,"highlight_start":1,"text":"    let y: [u8; 3] = x.map(|x| x*3);"},{"highlight_end":25,"highlight_start":1,"text":"    println!(\"{:?}\", y);"},{"highlight_end":91,"highlight_start":1,"text":"    let z = \"this is a relatively long string, to see the diff between strings and code.\";"},{"highlight_end":20,"highlight_start":1,"text":"    let a = \"test\";"},{"highlight_end":28,"highlight_start":1,"text":"    test::tree::printlol();"},{"highlight_end":2,"highlight_start":1,"text":"}"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: package `testbed` is missing `package.description` metadata\n  |\nnote: the lint level is defined here\n --> src\\main.rs:1:48\n  |\n1 | #![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]\n  |
                          ^^^^^^^^^^^^^\n  = note: `#[warn(clippy::cargo_common_metadata)]` implied by `#[warn(clippy::cargo)]`\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata\n\n","children":[{"children":[],"code":null,"level":"note","message":"the lint level is defined here","rendered":null,"spans":[{"byte_end":60,"byte_start":47,"column_end":61,"column_start":48,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":61,"highlight_start":48,"text":"#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]"}]}]},{"children":[],"code":null,"level":"note","message":"`#[warn(clippy::cargo_common_metadata)]` implied by `#[warn(clippy::cargo)]`","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata","rendered":null,"spans":[]}],"code":{"code":"clippy::cargo_common_metadata","explanation":null},"level":"warning","message":"package `testbed` is missing `package.description` metadata","spans":[{"byte_end":0,"byte_start":0,"column_end":1,"column_start":1,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: package `testbed` is missing `either package.license or package.license_file` metadata\n  |\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata\n\n","children":[{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata","rendered":null,"spans":[]}],"code":{"code":"clippy::cargo_common_metadata","explanation":null},"level":"warning","message":"package `testbed` is missing `either package.license or package.license_file` metadata","spans":[{"byte_end":0,"byte_start":0,"column_end":1,"column_start":1,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: package `testbed` is missing `package.repository` metadata\n  |\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata\n\n","children":[{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata","rendered":null,"spans":[]}],"code":{"code":"clippy::cargo_common_metadata","explanation":null},"level":"warning","message":"package `testbed` is missing `package.repository` metadata","spans":[{"byte_end":0,"byte_start":0,"column_end":1,"column_start":1,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: package `testbed` is missing `package.readme` metadata\n  |\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata\n\n","children":[{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata","rendered":null,"spans":[]}],"code":{"code":"clippy::cargo_common_metadata","explanation":null},"level":"warning","message":"package `testbed` is missing `package.readme` metadata","spans":[{"byte_end":0,"byte_start":0,"column_end":1,"column_start":1,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: package `testbed` is missing `package.keywords` metadata\n  |\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata\n\n","children":[{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata","rendered":null,"spans":[]}],"code":{"code":"clippy::cargo_common_metadata","explanation":null},"level":"warning","message":"package `testbed` is missing `package.keywords` metadata","spans":[{"byte_end":0,"byte_start":0,"column_end":1,"column_start":1,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: package `testbed` is missing `package.categories` metadata\n  |\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata\n\n","children":[{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata","rendered":null,"spans":[]}],"code":{"code":"clippy::cargo_common_metadata","explanation":null},"level":"warning","message":"package `testbed` is missing `package.categories` metadata","spans":[{"byte_end":0,"byte_start":0,"column_end":1,"column_start":1,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: missing documentation for a module\n --> src\\main.rs:3:1\n  |\n3 | mod test;\n  | ^^^^^^^^^\n  |\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items\n\n","children":[{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items","rendered":null,"spans":[]}],"code":{"code":"clippy::missing_docs_in_private_items","explanation":null},"level":"warning","message":"missing documentation for a module","spans":[{"byte_end":90,"byte_start":81,"column_end":10,"column_start":1,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":3,"line_start":3,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":10,"highlight_start":1,"text":"mod test;"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: missing documentation for a module\n --> src\\test\\mod.rs:1:1\n  |\n1 | pub mod tree;\n  | ^^^^^^^^^^^^^\n  |\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items\n\n","children":[{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items","rendered":null,"spans":[]}],"code":{"code":"clippy::missing_docs_in_private_items","explanation":null},"level":"warning","message":"missing documentation for a module","spans":[{"byte_end":13,"byte_start":0,"column_end":14,"column_start":1,"expansion":null,"file_name":"src\\test\\mod.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":14,"highlight_start":1,"text":"pub mod tree;"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: missing documentation for a function\n --> src\\test\\tree\\mod.rs:1:1\n  |\n1 | / pub fn printlol() {\n2 | |     print!(\"it worked!\");\n3 | | }\n  | |_^\n  |\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items\n\n","children":[{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items","rendered":null,"spans":[]}],"code":{"code":"clippy::missing_docs_in_private_items","explanation":null},"level":"warning","message":"missing documentation for a function","spans":[{"byte_end":49,"byte_start":0,"column_end":2,"column_start":1,"expansion":null,"file_name":"src\\test\\tree\\mod.rs","is_primary":true,"label":null,"line_end":3,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":20,"highlight_start":1,"text":"pub fn printlol() {"},{"highlight_end":26,"highlight_start":1,"text":"    print!(\"it worked!\");"},{"highlight_end":2,"highlight_start":1,"text":"}"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: `x` shadows a previous, unrelated binding\n --> src\\main.rs:9:9\n  |\n9 |     let x = [3, 4, 5];\n  |         ^\n  |\nnote: the lint level is defined here\n --> src\\main.rs:1:9\n  |\n1 | #![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]\n  |         ^^^^^^^^^^^^^^^^^^^\n  = note: `#[warn(clippy::shadow_unrelated)]` implied by `#[warn(clippy::restriction)]`\nnote: previous binding is here\n --> src\\main.rs:7:9\n  |\n7 |     let x: u64 = 6186491_8973511;\n  |         ^\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated\n\n","children":[{"children":[],"code":null,"level":"note","message":"the lint level is defined here","rendered":null,"spans":[{"byte_end":27,"byte_start":8,"column_end":28,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":28,"highlight_start":9,"text":"#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]"}]}]},{"children":[],"code":null,"level":"note","message":"`#[warn(clippy::shadow_unrelated)]` implied by `#[warn(clippy::restriction)]`","rendered":null,"spans":[]},{"children":[],"code":null,"level":"note","message":"previous binding is here","rendered":null,"spans":[{"byte_end":144,"byte_start":143,"column_end":10,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":7,"line_start":7,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":10,"highlight_start":9,"text":"    let x: u64 = 6186491_8973511;"}]}]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated","rendered":null,"spans":[]}],"code":{"code":"clippy::shadow_unrelated","explanation":null},"level":"warning","message":"`x` shadows a previous, unrelated binding","spans":[{"byte_end":199,"byte_start":198,"column_end":10,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":9,"line_start":9,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":10,"highlight_start":9,"text":"    let x = [3, 4, 5];"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: missing `return` statement\n  --> src\\main.rs:10:32\n   |\n10 |     let y: [u8; 3] = x.map(|x| x*3);\n   |                                ^^^ help: add `return` as shown: `return x*3`\n   |\nnote: the lint level is defined here\n  --> src\\main.rs:1:9\n   |\n1  | #![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]\n   |         ^^^^^^^^^^^^^^^^^^^\n   = note: `#[warn(clippy::implicit_return)]` implied by `#[warn(clippy::restriction)]`\n   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_return\n\n","children":[{"children":[],"code":null,"level":"note","message":"the lint level is defined here","rendered":null,"spans":[{"byte_end":27,"byte_start":8,"column_end":28,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":28,"highlight_start":9,"text":"#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]"}]}]},{"children":[],"code":null,"level":"note","message":"`#[warn(clippy::implicit_return)]` implied by `#[warn(clippy::restriction)]`","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_return","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"add `return` as shown","rendered":null,"spans":[{"byte_end":247,"byte_start":244,"column_end":35,"column_start":32,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":10,"line_start":10,"suggested_replacement":"return x*3","suggestion_applicability":"MachineApplicable","text":[{"highlight_end":35,"highlight_start":32,"text":"    let y: [u8; 3] = x.map(|x| x*3);"}]}]}],"code":{"code":"clippy::implicit_return","explanation":null},"level":"warning","message":"missing `return` statement","spans":[{"byte_end":247,"byte_start":244,"column_end":35,"column_start":32,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":10,"line_start":10,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":35,"highlight_start":32,"text":"    let y: [u8; 3] = x.map(|x| x*3);"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: `x` shadows a previous, unrelated binding\n  --> src\\main.rs:10:29\n   |\n10 |     let y: [u8; 3] = x.map(|x| x*3);\n   |                             ^\n   |\nnote: previous binding is here\n  --> src\\main.rs:9:9\n   |\n9  |     let x = [3, 4, 5];\n   |         ^\n   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated\n\n","children":[{"children":[],"code":null,"level":"note","message":"previous binding is here","rendered":null,"spans":[{"byte_end":199,"byte_start":198,"column_end":10,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":9,"line_start":9,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":10,"highlight_start":9,"text":"    let x = [3, 4, 5];"}]}]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated","rendered":null,"spans":[]}],"code":{"code":"clippy::shadow_unrelated","explanation":null},"level":"warning","message":"`x` shadows a previous, unrelated binding","spans":[{"byte_end":242,"byte_start":241,"column_end":30,"column_start":29,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":10,"line_start":10,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":30,"highlight_start":29,"text":"    let y: [u8; 3] = x.map(|x| x*3);"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: integer arithmetic detected\n  --> src\\main.rs:10:32\n   |\n10 |     let y: [u8; 3] = x.map(|x| x*3);\n   |                                ^^^\n   |\nnote: the lint level is defined here\n  --> src\\main.rs:1:9\n   |\n1  | #![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]\n   |         ^^^^^^^^^^^^^^^^^^^\n   = note: `#[warn(clippy::integer_arithmetic)]` implied by `#[warn(clippy::restriction)]`\n   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic\n\n","children":[{"children":[],"code":null,"level":"note","message":"the lint level is defined here","rendered":null,"spans":[{"byte_end":27,"byte_start":8,"column_end":28,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":28,"highlight_start":9,"text":"#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]"}]}]},{"children":[],"code":null,"level":"note","message":"`#[warn(clippy::integer_arithmetic)]` implied by `#[warn(clippy::restriction)]`","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic","rendered":null,"spans":[]}],"code":{"code":"clippy::integer_arithmetic","explanation":null},"level":"warning","message":"integer arithmetic detected","spans":[{"byte_end":247,"byte_start":244,"column_end":35,"column_start":32,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":10,"line_start":10,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":35,"highlight_start":32,"text":"    let y: [u8; 3] = x.map(|x| x*3);"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: restriction lints are not meant to be all enabled\n --> src\\main.rs:1:9\n  |\n1 | #![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]\n  |         ^^^^^^^^^^^^^^^^^^^\n  |\n  = note: `#[warn(clippy::blanket_clippy_restriction_lints)]` on by default\n  = help: try enabling only the lints you really need\n  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blanket_clippy_restriction_lints\n\n","children":[{"children":[],"code":null,"level":"note","message":"`#[warn(clippy::blanket_clippy_restriction_lints)]` on by default","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"try enabling only the lints you really need","rendered":null,"spans":[]},{"children":[],"code":null,"level":"help","message":"for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blanket_clippy_restriction_lints","rendered":null,"spans":[]}],"code":{"code":"clippy::blanket_clippy_restriction_lints","explanation":null},"level":"warning","message":"restriction lints are not meant to be all enabled","spans":[{"byte_end":27,"byte_start":8,"column_end":28,"column_start":9,"expansion":null,"file_name":"src\\main.rs","is_primary":true,"label":null,"line_end":1,"line_start":1,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":28,"highlight_start":9,"text":"#![warn(clippy::restriction, clippy::pedantic, clippy::cargo, clippy::nursery)]"}]}]}}
{"reason":"compiler-message","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: 22 warnings emitted\n\n","children":[],"code":null,"level":"warning","message":"22 warnings emitted","spans":[]}}
{"reason":"compiler-artifact","package_id":"testbed 0.1.0 (path+file:///C:/Users/lollipopft/testbed/rust)","manifest_path":"C:\\Users\\lollipopft\\testbed\\rust\\Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"testbed","src_path":"C:\\Users\\lollipopft\\testbed\\rust\\src\\main.rs","edition":"2018","doc":true,"doctest":false,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["C:\\Users\\lollipopft\\testbed\\rust\\target\\debug\\deps\\libtestbed-1c5b6f5b4f1126a5.rmeta"],"executable":null,"fresh":true}
{"reason":"build-finished","success":true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant