[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/b572356670f40e129dd93d40ba11d008b7ab4127 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEson-Jia%2Fhuffman" "/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/Eson-Jia/huffman on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-2-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1bf6e18a917c7ee7892870d94dfab6baee0e6229506ae55432f38f052707033a [INFO] running `Command { std: "docker" "start" "-a" "1bf6e18a917c7ee7892870d94dfab6baee0e6229506ae55432f38f052707033a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1bf6e18a917c7ee7892870d94dfab6baee0e6229506ae55432f38f052707033a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bf6e18a917c7ee7892870d94dfab6baee0e6229506ae55432f38f052707033a", kill_on_drop: false }` [INFO] [stdout] 1bf6e18a917c7ee7892870d94dfab6baee0e6229506ae55432f38f052707033a [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55afe509024e71870f2c25b3a2f4d0432f72533db320760c1ef7822fcbe1dfb1 [INFO] running `Command { std: "docker" "start" "-a" "55afe509024e71870f2c25b3a2f4d0432f72533db320760c1ef7822fcbe1dfb1", kill_on_drop: false }` [INFO] [stderr] Checking huffman v0.1.0 (/opt/rustwide/workdir) [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 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: 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] warning: unused variable: `inputfile` [INFO] [stdout] --> src/bin/rwbinary.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let inputfile=param.next(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inputfile` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outputfile` [INFO] [stdout] --> src/bin/rwbinary.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let outputfile=param.next(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outputfile` [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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 23 | let _ = _outputfile.write(&mut buffer[..len]); [INFO] [stdout] | +++++++ [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] warning: 3 warnings emitted [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] | ^^^^^^ [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/string.rs:362:1 [INFO] [stdout] | [INFO] [stdout] = note: `String` defined here [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] | ^^^^^^ [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/string.rs:362:1 [INFO] [stdout] | [INFO] [stdout] = note: `String` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `close` and `flush` are never used [INFO] [stdout] --> src/bin/list.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 135 | impl BinaryWriter { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 175 | fn close(& mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | fn flush(& mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `close` and `flush` are never used [INFO] [stdout] --> src/bin/list.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 135 | impl BinaryWriter { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 175 | fn close(& mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | fn flush(& mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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 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] 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 `String`, found `&str` [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 `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] 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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `huffman` (bin "leetcode") due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `huffman` (bin "leetcode" test) due to 8 previous errors [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: unused variable: `inputfile` [INFO] [stdout] --> src/bin/rwbinary.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let inputfile=param.next(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inputfile` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outputfile` [INFO] [stdout] --> src/bin/rwbinary.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let outputfile=param.next(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outputfile` [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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 23 | let _ = _outputfile.write(&mut buffer[..len]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "55afe509024e71870f2c25b3a2f4d0432f72533db320760c1ef7822fcbe1dfb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55afe509024e71870f2c25b3a2f4d0432f72533db320760c1ef7822fcbe1dfb1", kill_on_drop: false }` [INFO] [stdout] 55afe509024e71870f2c25b3a2f4d0432f72533db320760c1ef7822fcbe1dfb1