[INFO] cloning repository https://github.com/heliannuuthus/rust-learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/heliannuuthus/rust-learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fheliannuuthus%2Frust-learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fheliannuuthus%2Frust-learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 040d2add528c44c34a2bb5ccb9f908c3ab28c0fc [INFO] checking heliannuuthus/rust-learning against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fheliannuuthus%2Frust-learning" "/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/heliannuuthus/rust-learning on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/heliannuuthus/rust-learning [INFO] finished tweaking git repo https://github.com/heliannuuthus/rust-learning [INFO] tweaked toml for git repo https://github.com/heliannuuthus/rust-learning written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/heliannuuthus/rust-learning 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: examples [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded addr2line v0.19.0 [INFO] [stderr] Downloaded miniz_oxide v0.6.2 [INFO] [stderr] Downloaded proc-macro2 v1.0.63 [INFO] [stderr] Downloaded backtrace v0.3.67 [INFO] [stderr] Downloaded syn v2.0.22 [INFO] [stderr] Downloaded tokio v1.29.0 [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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] daa37e12944c9fb9d8a70240aff80d0a500b82b2b60c42b4d0b362ef2a840dfe [INFO] running `Command { std: "docker" "start" "-a" "daa37e12944c9fb9d8a70240aff80d0a500b82b2b60c42b4d0b362ef2a840dfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "daa37e12944c9fb9d8a70240aff80d0a500b82b2b60c42b4d0b362ef2a840dfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "daa37e12944c9fb9d8a70240aff80d0a500b82b2b60c42b4d0b362ef2a840dfe", kill_on_drop: false }` [INFO] [stdout] daa37e12944c9fb9d8a70240aff80d0a500b82b2b60c42b4d0b362ef2a840dfe [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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 24612dd3fc4859ca9d1dd01a846ac2e5de2f99861d86c1c3f5f17403db2166c7 [INFO] running `Command { std: "docker" "start" "-a" "24612dd3fc4859ca9d1dd01a846ac2e5de2f99861d86c1c3f5f17403db2166c7", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: examples [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling tokio v1.29.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking lock_api v0.4.10 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking rust-learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> examples/08-bounds.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let t = Triangle { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `printer` is never used [INFO] [stdout] --> examples/08-bounds.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn printer(t: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S` is never constructed [INFO] [stdout] --> examples/08-bounds.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct S(T); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_adder_function` is never used [INFO] [stdout] --> examples/14-trait.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn make_adder_function(y: u32) -> impl Fn(u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> examples/17-errors.rs:140:33 [INFO] [stdout] | [INFO] [stdout] 140 | DoubleError::Parse( ref e) => write!(f, "invalid first double "), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> examples/07-divieging-function.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | let _b = panic!("just panic"); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 19 | println!("run with 21 line"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `From` is imported redundantly [INFO] [stdout] --> examples/03-conversion.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | convert::{From, TryFrom}, [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `From` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> examples/03-conversion.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | convert::{From, TryFrom}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `y` is never read [INFO] [stdout] --> examples/12-borrow.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct Point { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 24 | x: i32, [INFO] [stdout] 25 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `job_handler` [INFO] [stdout] --> examples/tokio/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let job_handler = tokio::spawn(async move { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_job_handler` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> examples/09-associated-type.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | trait Contains { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 13 | fn contains(&self, _: &A, _: &B) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> examples/09-associated-type.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 42 | trait Contains1 { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 45 | fn contains(&self, _: &Self::A, _: &Self::B) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/13-lifetime.rs:67:23 [INFO] [stdout] | [INFO] [stdout] 67 | struct Ref<'a, T: 'a>(&'a T); [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Ref` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 67 | struct Ref<'a, T: 'a>(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.98s [INFO] running `Command { std: "docker" "inspect" "24612dd3fc4859ca9d1dd01a846ac2e5de2f99861d86c1c3f5f17403db2166c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24612dd3fc4859ca9d1dd01a846ac2e5de2f99861d86c1c3f5f17403db2166c7", kill_on_drop: false }` [INFO] [stdout] 24612dd3fc4859ca9d1dd01a846ac2e5de2f99861d86c1c3f5f17403db2166c7