[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 master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEson-Jia%2Fhuffman" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Eson-Jia/huffman on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", 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-4/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" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] aeb69e80af3cd9e40a05fa9aff1f3be4e1d0a9dd199c00d7f3fa907384e377ab [INFO] running `Command { std: "docker" "start" "-a" "aeb69e80af3cd9e40a05fa9aff1f3be4e1d0a9dd199c00d7f3fa907384e377ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aeb69e80af3cd9e40a05fa9aff1f3be4e1d0a9dd199c00d7f3fa907384e377ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aeb69e80af3cd9e40a05fa9aff1f3be4e1d0a9dd199c00d7f3fa907384e377ab", kill_on_drop: false }` [INFO] [stdout] aeb69e80af3cd9e40a05fa9aff1f3be4e1d0a9dd199c00d7f3fa907384e377ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 77b29a8f31522eb6d158a4f1b077df4d72c3ec9d09b519f36cb1dc1b1d8cd555 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "77b29a8f31522eb6d158a4f1b077df4d72c3ec9d09b519f36cb1dc1b1d8cd555", 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 `;`, 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 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] 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] 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[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[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] 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: `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 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: 2 warnings 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: 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 `std::result::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: 3 warnings 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] warning: unused `std::result::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] 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] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found `&str` [INFO] [stdout] | help: try using a conversion method: `"".to_string()` [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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 3 warnings emitted [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] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found `&str` [INFO] [stdout] | help: try using a conversion method: `"".to_string()` [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: build failed [INFO] running `Command { std: "docker" "inspect" "77b29a8f31522eb6d158a4f1b077df4d72c3ec9d09b519f36cb1dc1b1d8cd555", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77b29a8f31522eb6d158a4f1b077df4d72c3ec9d09b519f36cb1dc1b1d8cd555", kill_on_drop: false }` [INFO] [stdout] 77b29a8f31522eb6d158a4f1b077df4d72c3ec9d09b519f36cb1dc1b1d8cd555