[INFO] cloning repository https://github.com/Ndeta100/advanced_features_in_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ndeta100/advanced_features_in_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNdeta100%2Fadvanced_features_in_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNdeta100%2Fadvanced_features_in_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8f159d32cdb7b5554502ebd6903937988f18bbdb
[INFO] checking Ndeta100/advanced_features_in_rust against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNdeta100%2Fadvanced_features_in_rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Ndeta100/advanced_features_in_rust on toolchain 5518eaa946291f00471af8b254b2a1715f234882
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Ndeta100/advanced_features_in_rust
[INFO] finished tweaking git repo https://github.com/Ndeta100/advanced_features_in_rust
[INFO] tweaked toml for git repo https://github.com/Ndeta100/advanced_features_in_rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/Ndeta100/advanced_features_in_rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 17db233af010998c34695147ccf577e8505aa954aa02454920273b8db7264568
[INFO] running `Command { std: "docker" "start" "-a" "17db233af010998c34695147ccf577e8505aa954aa02454920273b8db7264568", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "17db233af010998c34695147ccf577e8505aa954aa02454920273b8db7264568", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "17db233af010998c34695147ccf577e8505aa954aa02454920273b8db7264568", kill_on_drop: false }`
[INFO] [stdout] 17db233af010998c34695147ccf577e8505aa954aa02454920273b8db7264568
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 36da2cb2ff9b9ecad3f4e752e011ddc5e8f0fcbfae87495ef7c08f4c1479fb34
[INFO] running `Command { std: "docker" "start" "-a" "36da2cb2ff9b9ecad3f4e752e011ddc5e8f0fcbfae87495ef7c08f4c1479fb34", kill_on_drop: false }`
[INFO] [stderr]     Checking advanced_features_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `proc_macro`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use proc_macro;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `proc_macro`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use proc_macro;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]   --> src/main.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let r = address as *const i32;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `w_vec`
[INFO] [stdout]    --> src/main.rs:162:9
[INFO] [stdout]     |
[INFO] [stdout] 162 |     let w_vec = &*w;
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_w_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `distance`
[INFO] [stdout]    --> src/main.rs:165:9
[INFO] [stdout]     |
[INFO] [stdout] 165 |     let distance: Kilometer = 3894;
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/main.rs:167:9
[INFO] [stdout]     |
[INFO] [stdout] 167 |     let f: Thunk = Box::new(|| println!("Hi"));
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `list_of_strings`
[INFO] [stdout]    --> src/main.rs:197:9
[INFO] [stdout]     |
[INFO] [stdout] 197 |     let list_of_strings: Vec<String> = list_of_numbers.iter().map(ToString::to_string).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_strings`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]   --> src/main.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let r = address as *const i32;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `V`
[INFO] [stdout]    --> src/main.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let V: Vec<u32> = vec![1, 2, 3];
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_V`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `w_vec`
[INFO] [stdout]    --> src/main.rs:162:9
[INFO] [stdout]     |
[INFO] [stdout] 162 |     let w_vec = &*w;
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_w_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `distance`
[INFO] [stdout]    --> src/main.rs:165:9
[INFO] [stdout]     |
[INFO] [stdout] 165 |     let distance: Kilometer = 3894;
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/main.rs:167:9
[INFO] [stdout]     |
[INFO] [stdout] 167 |     let f: Thunk = Box::new(|| println!("Hi"));
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `list_of_strings`
[INFO] [stdout]    --> src/main.rs:197:9
[INFO] [stdout]     |
[INFO] [stdout] 197 |     let list_of_strings: Vec<String> = list_of_numbers.iter().map(ToString::to_string).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_strings`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `V`
[INFO] [stdout]    --> src/main.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let V: Vec<u32> = vec![1, 2, 3];
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_V`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/main.rs:168:24
[INFO] [stdout]     |
[INFO] [stdout] 168 |     fn takes_long_type(f: Thunk) {
[INFO] [stdout]     |                        ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/main.rs:183:20
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn generics<T>(t: T) {
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/main.rs:186:30
[INFO] [stdout]     |
[INFO] [stdout] 186 |     fn generics_1<T: ?Sized>(t: &T) {}
[INFO] [stdout]     |                              ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/main.rs:168:24
[INFO] [stdout]     |
[INFO] [stdout] 168 |     fn takes_long_type(f: Thunk) {
[INFO] [stdout]     |                        ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/main.rs:183:20
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn generics<T>(t: T) {
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/main.rs:186:30
[INFO] [stdout]     |
[INFO] [stdout] 186 |     fn generics_1<T: ?Sized>(t: &T) {}
[INFO] [stdout]     |                              ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `fly` is never used
[INFO] [stdout]    --> src/main.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 109 |     impl Human {
[INFO] [stdout]     |     ---------- method in this implementation
[INFO] [stdout] 110 |         fn fly(&self) {
[INFO] [stdout]     |            ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `baby_name` is never used
[INFO] [stdout]    --> src/main.rs:119:12
[INFO] [stdout]     |
[INFO] [stdout] 118 |     impl Dog {
[INFO] [stdout]     |     -------- associated function in this implementation
[INFO] [stdout] 119 |         fn baby_name() -> String {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `takes_long_type` is never used
[INFO] [stdout]    --> src/main.rs:168:8
[INFO] [stdout]     |
[INFO] [stdout] 168 |     fn takes_long_type(f: Thunk) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generics` is never used
[INFO] [stdout]    --> src/main.rs:183:8
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn generics<T>(t: T) {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generics_1` is never used
[INFO] [stdout]    --> src/main.rs:186:8
[INFO] [stdout]     |
[INFO] [stdout] 186 |     fn generics_1<T: ?Sized>(t: &T) {}
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Status` is never used
[INFO] [stdout]    --> src/main.rs:198:10
[INFO] [stdout]     |
[INFO] [stdout] 198 |     enum Status {
[INFO] [stdout]     |          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `return_closure_1` is never used
[INFO] [stdout]    --> src/main.rs:207:8
[INFO] [stdout]     |
[INFO] [stdout] 207 |     fn return_closure_1() -> Box<dyn Fn(i32) -> i32> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `split_at_mut` is never used
[INFO] [stdout]    --> src/main.rs:231:4
[INFO] [stdout]     |
[INFO] [stdout] 231 | fn split_at_mut(slice: &mut [i32], mid: usize) -> (&mut [i32], &mut [i32]) {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `split_at_mut` is never used
[INFO] [stdout]    --> src/main.rs:231:4
[INFO] [stdout]     |
[INFO] [stdout] 231 | fn split_at_mut(slice: &mut [i32], mid: usize) -> (&mut [i32], &mut [i32]) {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `V` should have a snake case name
[INFO] [stdout]    --> src/main.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let V: Vec<u32> = vec![1, 2, 3];
[INFO] [stdout]     |         ^ help: convert the identifier to snake case (notice the capitalization): `v`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `V` should have a snake case name
[INFO] [stdout]    --> src/main.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let V: Vec<u32> = vec![1, 2, 3];
[INFO] [stdout]     |         ^ help: convert the identifier to snake case (notice the capitalization): `v`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 19 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 12 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.06s
[INFO] running `Command { std: "docker" "inspect" "36da2cb2ff9b9ecad3f4e752e011ddc5e8f0fcbfae87495ef7c08f4c1479fb34", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "36da2cb2ff9b9ecad3f4e752e011ddc5e8f0fcbfae87495ef7c08f4c1479fb34", kill_on_drop: false }`
[INFO] [stdout] 36da2cb2ff9b9ecad3f4e752e011ddc5e8f0fcbfae87495ef7c08f4c1479fb34
[INFO] checking Ndeta100/advanced_features_in_rust against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNdeta100%2Fadvanced_features_in_rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Ndeta100/advanced_features_in_rust on toolchain 7622c0f807a4e13c4db886a1681bf343795692df
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Ndeta100/advanced_features_in_rust
[INFO] finished tweaking git repo https://github.com/Ndeta100/advanced_features_in_rust
[INFO] tweaked toml for git repo https://github.com/Ndeta100/advanced_features_in_rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/Ndeta100/advanced_features_in_rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 550e70b27cc7a21694718c35369a4e719a806caab7a66de80dedda5ef2a64fe8
[INFO] running `Command { std: "docker" "start" "-a" "550e70b27cc7a21694718c35369a4e719a806caab7a66de80dedda5ef2a64fe8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "550e70b27cc7a21694718c35369a4e719a806caab7a66de80dedda5ef2a64fe8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "550e70b27cc7a21694718c35369a4e719a806caab7a66de80dedda5ef2a64fe8", kill_on_drop: false }`
[INFO] [stdout] 550e70b27cc7a21694718c35369a4e719a806caab7a66de80dedda5ef2a64fe8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dnon_local_definitions" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 40bac834c282a011d2eace5f3c6349201bf20be5c7e32fbfc7021c8ee83e098a
[INFO] running `Command { std: "docker" "start" "-a" "40bac834c282a011d2eace5f3c6349201bf20be5c7e32fbfc7021c8ee83e098a", kill_on_drop: false }`
[INFO] [stderr]     Checking advanced_features_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `proc_macro`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use proc_macro;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `proc_macro`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use proc_macro;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]   --> src/main.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let r = address as *const i32;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `w_vec`
[INFO] [stdout]    --> src/main.rs:162:9
[INFO] [stdout]     |
[INFO] [stdout] 162 |     let w_vec = &*w;
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_w_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]   --> src/main.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let r = address as *const i32;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `distance`
[INFO] [stdout]    --> src/main.rs:165:9
[INFO] [stdout]     |
[INFO] [stdout] 165 |     let distance: Kilometer = 3894;
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `w_vec`
[INFO] [stdout]    --> src/main.rs:162:9
[INFO] [stdout]     |
[INFO] [stdout] 162 |     let w_vec = &*w;
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_w_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/main.rs:167:9
[INFO] [stdout]     |
[INFO] [stdout] 167 |     let f: Thunk = Box::new(|| println!("Hi"));
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `distance`
[INFO] [stdout]    --> src/main.rs:165:9
[INFO] [stdout]     |
[INFO] [stdout] 165 |     let distance: Kilometer = 3894;
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `list_of_strings`
[INFO] [stdout]    --> src/main.rs:197:9
[INFO] [stdout]     |
[INFO] [stdout] 197 |     let list_of_strings: Vec<String> = list_of_numbers.iter().map(ToString::to_string).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_strings`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/main.rs:167:9
[INFO] [stdout]     |
[INFO] [stdout] 167 |     let f: Thunk = Box::new(|| println!("Hi"));
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `V`
[INFO] [stdout]    --> src/main.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let V: Vec<u32> = vec![1, 2, 3];
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_V`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `list_of_strings`
[INFO] [stdout]    --> src/main.rs:197:9
[INFO] [stdout]     |
[INFO] [stdout] 197 |     let list_of_strings: Vec<String> = list_of_numbers.iter().map(ToString::to_string).collect();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_strings`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `V`
[INFO] [stdout]    --> src/main.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let V: Vec<u32> = vec![1, 2, 3];
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_V`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/main.rs:168:24
[INFO] [stdout]     |
[INFO] [stdout] 168 |     fn takes_long_type(f: Thunk) {
[INFO] [stdout]     |                        ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/main.rs:183:20
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn generics<T>(t: T) {
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/main.rs:186:30
[INFO] [stdout]     |
[INFO] [stdout] 186 |     fn generics_1<T: ?Sized>(t: &T) {}
[INFO] [stdout]     |                              ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/main.rs:168:24
[INFO] [stdout]     |
[INFO] [stdout] 168 |     fn takes_long_type(f: Thunk) {
[INFO] [stdout]     |                        ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/main.rs:183:20
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn generics<T>(t: T) {
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/main.rs:186:30
[INFO] [stdout]     |
[INFO] [stdout] 186 |     fn generics_1<T: ?Sized>(t: &T) {}
[INFO] [stdout]     |                              ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `fly` is never used
[INFO] [stdout]    --> src/main.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 109 |     impl Human {
[INFO] [stdout]     |     ---------- method in this implementation
[INFO] [stdout] 110 |         fn fly(&self) {
[INFO] [stdout]     |            ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `baby_name` is never used
[INFO] [stdout]    --> src/main.rs:119:12
[INFO] [stdout]     |
[INFO] [stdout] 118 |     impl Dog {
[INFO] [stdout]     |     -------- associated function in this implementation
[INFO] [stdout] 119 |         fn baby_name() -> String {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `takes_long_type` is never used
[INFO] [stdout]    --> src/main.rs:168:8
[INFO] [stdout]     |
[INFO] [stdout] 168 |     fn takes_long_type(f: Thunk) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generics` is never used
[INFO] [stdout]    --> src/main.rs:183:8
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn generics<T>(t: T) {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generics_1` is never used
[INFO] [stdout]    --> src/main.rs:186:8
[INFO] [stdout]     |
[INFO] [stdout] 186 |     fn generics_1<T: ?Sized>(t: &T) {}
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Status` is never used
[INFO] [stdout]    --> src/main.rs:198:10
[INFO] [stdout]     |
[INFO] [stdout] 198 |     enum Status {
[INFO] [stdout]     |          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `return_closure_1` is never used
[INFO] [stdout]    --> src/main.rs:207:8
[INFO] [stdout]     |
[INFO] [stdout] 207 |     fn return_closure_1() -> Box<dyn Fn(i32) -> i32> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `split_at_mut` is never used
[INFO] [stdout]    --> src/main.rs:231:4
[INFO] [stdout]     |
[INFO] [stdout] 231 | fn split_at_mut(slice: &mut [i32], mid: usize) -> (&mut [i32], &mut [i32]) {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `split_at_mut` is never used
[INFO] [stdout]    --> src/main.rs:231:4
[INFO] [stdout]     |
[INFO] [stdout] 231 | fn split_at_mut(slice: &mut [i32], mid: usize) -> (&mut [i32], &mut [i32]) {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `V` should have a snake case name
[INFO] [stdout]    --> src/main.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let V: Vec<u32> = vec![1, 2, 3];
[INFO] [stdout]     |         ^ help: convert the identifier to snake case (notice the capitalization): `v`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `macro_rules!` definition, they should be avoided as they go against expectation
[INFO] [stdout]    --> src/main.rs:213:5
[INFO] [stdout]     |
[INFO] [stdout] 213 | /     macro_rules! vec  {
[INFO] [stdout] 214 | |         ($($x:expr),*) => {
[INFO] [stdout] 215 | |             {
[INFO] [stdout] 216 | |                 let mut temp_vec=Vec::new();
[INFO] [stdout] ...   |
[INFO] [stdout] 226 | |         };
[INFO] [stdout] 227 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = help: reove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `main`
[INFO] [stdout]     = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute
[INFO] [stdout]     = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]     = note: requested on the command line with `-D non-local-definitions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `V` should have a snake case name
[INFO] [stdout]    --> src/main.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let V: Vec<u32> = vec![1, 2, 3];
[INFO] [stdout]     |         ^ help: convert the identifier to snake case (notice the capitalization): `v`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `macro_rules!` definition, they should be avoided as they go against expectation
[INFO] [stdout]    --> src/main.rs:213:5
[INFO] [stdout]     |
[INFO] [stdout] 213 | /     macro_rules! vec  {
[INFO] [stdout] 214 | |         ($($x:expr),*) => {
[INFO] [stdout] 215 | |             {
[INFO] [stdout] 216 | |                 let mut temp_vec=Vec::new();
[INFO] [stdout] ...   |
[INFO] [stdout] 226 | |         };
[INFO] [stdout] 227 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = help: reove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `main`
[INFO] [stdout]     = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute
[INFO] [stdout]     = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]     = note: requested on the command line with `-D non-local-definitions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error; 19 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error; 12 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `advanced_features_rust` (bin "advanced_features_rust") due to 2 previous errors; 19 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `advanced_features_rust` (bin "advanced_features_rust" test) due to 2 previous errors; 12 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "40bac834c282a011d2eace5f3c6349201bf20be5c7e32fbfc7021c8ee83e098a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "40bac834c282a011d2eace5f3c6349201bf20be5c7e32fbfc7021c8ee83e098a", kill_on_drop: false }`
[INFO] [stdout] 40bac834c282a011d2eace5f3c6349201bf20be5c7e32fbfc7021c8ee83e098a
