[INFO] cloning repository https://github.com/OrlovBohdan/_17_Lifetime_17_2_static_and_T_static [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/OrlovBohdan/_17_Lifetime_17_2_static_and_T_static" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOrlovBohdan%2F_17_Lifetime_17_2_static_and_T_static", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOrlovBohdan%2F_17_Lifetime_17_2_static_and_T_static'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 84d109bdff9f93bd2d1222e80c39a69d0557fc8d [INFO] checking OrlovBohdan/_17_Lifetime_17_2_static_and_T_static against try#35b6491ce6d2b388d0a5de1e59e2123604af807f for pr-136539 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOrlovBohdan%2F_17_Lifetime_17_2_static_and_T_static" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/OrlovBohdan/_17_Lifetime_17_2_static_and_T_static on toolchain 35b6491ce6d2b388d0a5de1e59e2123604af807f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35b6491ce6d2b388d0a5de1e59e2123604af807f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/OrlovBohdan/_17_Lifetime_17_2_static_and_T_static [INFO] finished tweaking git repo https://github.com/OrlovBohdan/_17_Lifetime_17_2_static_and_T_static [INFO] tweaked toml for git repo https://github.com/OrlovBohdan/_17_Lifetime_17_2_static_and_T_static written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/OrlovBohdan/_17_Lifetime_17_2_static_and_T_static 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" "+35b6491ce6d2b388d0a5de1e59e2123604af807f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+35b6491ce6d2b388d0a5de1e59e2123604af807f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f9d5ef5f52c2c7ad82536d3b8004f44b18f5813d8f5f7a3b9898e1cc3e64c0a3 [INFO] running `Command { std: "docker" "start" "-a" "f9d5ef5f52c2c7ad82536d3b8004f44b18f5813d8f5f7a3b9898e1cc3e64c0a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9d5ef5f52c2c7ad82536d3b8004f44b18f5813d8f5f7a3b9898e1cc3e64c0a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9d5ef5f52c2c7ad82536d3b8004f44b18f5813d8f5f7a3b9898e1cc3e64c0a3", kill_on_drop: false }` [INFO] [stdout] f9d5ef5f52c2c7ad82536d3b8004f44b18f5813d8f5f7a3b9898e1cc3e64c0a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+35b6491ce6d2b388d0a5de1e59e2123604af807f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9de12c786ea8ac0e9d7bf9fd89501e42ed4d0ae6db7ff42bacf3eebc4b020f7 [INFO] running `Command { std: "docker" "start" "-a" "c9de12c786ea8ac0e9d7bf9fd89501e42ed4d0ae6db7ff42bacf3eebc4b020f7", kill_on_drop: false }` [INFO] [stderr] Checking _17_Lifetime_17_2__static_and_T_static v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `need_static` is never used [INFO] [stdout] --> src/task1.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn need_static(r: &'static str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CONFIG` is never used [INFO] [stdout] --> src/task2.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | static mut CONFIG: Option<&'static mut Config> = None; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/task2.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn init() -> Option<&'static mut Config> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `STATIC_STRING` is never used [INFO] [stdout] --> src/task3.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | static STATIC_STRING: &str = "I'm in read-only memory"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NUM` is never used [INFO] [stdout] --> src/task4.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | static NUM: i32 = 18; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `coerce_static` is never used [INFO] [stdout] --> src/task4.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn coerce_static<'a>(_: &'a i32) -> &'a i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_it` is never used [INFO] [stdout] --> src/task5.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn print_it(input: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_it1` is never used [INFO] [stdout] --> src/task5.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn print_it1(input: impl Debug) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_it2` is never used [INFO] [stdout] --> src/task5.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn print_it2(input: &T) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_a` is never used [INFO] [stdout] --> src/task6.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn print_a(t: &T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_b` is never used [INFO] [stdout] --> src/task6.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn print_b(t: &T) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_c` is never used [INFO] [stdout] --> src/task6.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn print_c(t: Box) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_d` is never used [INFO] [stdout] --> src/task6.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn print_d(t: Box) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_e` is never used [INFO] [stdout] --> src/task6.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn print_e(t: &(dyn Display + 'static)) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_f` is never used [INFO] [stdout] --> src/task6.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn print_f(t: &(impl Display + 'static)) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_g` is never used [INFO] [stdout] --> src/task6.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn print_g(t: &String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/task2.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | println!("{:?}", CONFIG); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] running `Command { std: "docker" "inspect" "c9de12c786ea8ac0e9d7bf9fd89501e42ed4d0ae6db7ff42bacf3eebc4b020f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9de12c786ea8ac0e9d7bf9fd89501e42ed4d0ae6db7ff42bacf3eebc4b020f7", kill_on_drop: false }` [INFO] [stdout] c9de12c786ea8ac0e9d7bf9fd89501e42ed4d0ae6db7ff42bacf3eebc4b020f7