[INFO] cloning repository https://github.com/Eson-Jia/huffman [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Eson-Jia/huffman" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEson-Jia%2Fhuffman", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEson-Jia%2Fhuffman'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b572356670f40e129dd93d40ba11d008b7ab4127 [INFO] checking Eson-Jia/huffman against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEson-Jia%2Fhuffman" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Eson-Jia/huffman on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Eson-Jia/huffman [INFO] finished tweaking git repo https://github.com/Eson-Jia/huffman [INFO] tweaked toml for git repo https://github.com/Eson-Jia/huffman written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/Eson-Jia/huffman already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 90c770b50853cf9144272762d5cf62f0b1a97a83979bddc67034422c956ec31c [INFO] running `Command { std: "docker" "start" "-a" "90c770b50853cf9144272762d5cf62f0b1a97a83979bddc67034422c956ec31c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "90c770b50853cf9144272762d5cf62f0b1a97a83979bddc67034422c956ec31c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90c770b50853cf9144272762d5cf62f0b1a97a83979bddc67034422c956ec31c", kill_on_drop: false }` [INFO] [stdout] 90c770b50853cf9144272762d5cf62f0b1a97a83979bddc67034422c956ec31c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c6bc494cf5c1dae6cc16c3eb7ae3f324a32e9322fcbacdf5fe94444a461626a0 [INFO] running `Command { std: "docker" "start" "-a" "c6bc494cf5c1dae6cc16c3eb7ae3f324a32e9322fcbacdf5fe94444a461626a0", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking huffman v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/bin/list.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/leetcode.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/learn_trait.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/rwbinary.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/memory_test.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/heap.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] warning: associated function is never used: `close` [INFO] [stdout] --> src/bin/list.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | fn close(& mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `flush` [INFO] [stdout] --> src/bin/list.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | fn flush(& mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `1` [INFO] [stdout] --> src/bin/leetcode.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | let theSet = u32{1,21} [INFO] [stdout] | --- ^ expected identifier [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `21` [INFO] [stdout] --> src/bin/leetcode.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | let theSet = u32{1,21} [INFO] [stdout] | --- ^^ expected identifier [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `for` [INFO] [stdout] --> src/bin/leetcode.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | let theSet = u32{1,21} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | for i in 0..s.len() { [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/bin/leetcode.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found builtin type `u32` [INFO] [stdout] --> src/bin/leetcode.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | let theSet = u32{1,21} [INFO] [stdout] | ^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `String` [INFO] [stdout] --> src/bin/leetcode.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | if String[i]=="?"{ [INFO] [stdout] | ^^^^^^ help: use struct literal syntax instead: `String { vec: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/leetcode.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn modify_string(s: String) -> String { [INFO] [stdout] | ------ expected `String` because of return type [INFO] [stdout] ... [INFO] [stdout] 9 | "" [INFO] [stdout] | ^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0423, E0574. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `huffman` due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Fixed src/bin/rwbinary.rs (2 fixes) [INFO] [stdout] warning: the feature `slice_fill` has been stable since 1.50.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/bin/memory_test.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(slice_fill)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/rwbinary.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | _outputfile.write(&mut buffer[..len]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slice_fill` has been stable since 1.50.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/bin/memory_test.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(slice_fill)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `close` [INFO] [stdout] --> src/bin/list.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | fn close(& mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `flush` [INFO] [stdout] --> src/bin/list.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | fn flush(& mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `1` [INFO] [stdout] --> src/bin/leetcode.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | let theSet = u32{1,21} [INFO] [stdout] | --- ^ expected identifier [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `21` [INFO] [stdout] --> src/bin/leetcode.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | let theSet = u32{1,21} [INFO] [stdout] | --- ^^ expected identifier [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `for` [INFO] [stdout] --> src/bin/leetcode.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | let theSet = u32{1,21} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | for i in 0..s.len() { [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/bin/leetcode.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found builtin type `u32` [INFO] [stdout] --> src/bin/leetcode.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | let theSet = u32{1,21} [INFO] [stdout] | ^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `String` [INFO] [stdout] --> src/bin/leetcode.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | if String[i]=="?"{ [INFO] [stdout] | ^^^^^^ help: use struct literal syntax instead: `String { vec: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/leetcode.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn modify_string(s: String) -> String { [INFO] [stdout] | ------ expected `String` because of return type [INFO] [stdout] ... [INFO] [stdout] 9 | "" [INFO] [stdout] | ^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0423, E0574. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/rwbinary.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | _outputfile.write(&mut buffer[..len]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "c6bc494cf5c1dae6cc16c3eb7ae3f324a32e9322fcbacdf5fe94444a461626a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6bc494cf5c1dae6cc16c3eb7ae3f324a32e9322fcbacdf5fe94444a461626a0", kill_on_drop: false }` [INFO] [stdout] c6bc494cf5c1dae6cc16c3eb7ae3f324a32e9322fcbacdf5fe94444a461626a0