[INFO] cloning repository https://github.com/kelvinkirima014/dumblang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kelvinkirima014/dumblang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkelvinkirima014%2Fdumblang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkelvinkirima014%2Fdumblang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 88a988112e14512195b65f09f9f90592bc7a0851 [INFO] checking kelvinkirima014/dumblang against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkelvinkirima014%2Fdumblang" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kelvinkirima014/dumblang [INFO] finished tweaking git repo https://github.com/kelvinkirima014/dumblang [INFO] tweaked toml for git repo https://github.com/kelvinkirima014/dumblang written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kelvinkirima014/dumblang on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kelvinkirima014/dumblang 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] efff3067ea0f34d9780a73e8685f7579e87f01bd5924a4e92a90674bf0081154 [INFO] running `Command { std: "docker" "start" "-a" "efff3067ea0f34d9780a73e8685f7579e87f01bd5924a4e92a90674bf0081154", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "efff3067ea0f34d9780a73e8685f7579e87f01bd5924a4e92a90674bf0081154", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "efff3067ea0f34d9780a73e8685f7579e87f01bd5924a4e92a90674bf0081154", kill_on_drop: false }` [INFO] [stdout] efff3067ea0f34d9780a73e8685f7579e87f01bd5924a4e92a90674bf0081154 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0180fab58e0a7b94bec2201e69f4a053d0beebea9fbea10aaf73fc425bfd174 [INFO] running `Command { std: "docker" "start" "-a" "d0180fab58e0a7b94bec2201e69f4a053d0beebea9fbea10aaf73fc425bfd174", kill_on_drop: false }` [INFO] [stderr] Checking dumblang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | fn parse_set(input: &[str]) -> Result{ [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: slice and array elements must have `Sized` type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | fn parse_get(input: &[str]) -> Result{ [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: slice and array elements must have `Sized` type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | Ok(x) => Ok(Value::Int(x)), [INFO] [stdout] | -- ^^^^^^^^^^^^^ expected `String`, found `Value` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `Value` due to the type of the argument passed [INFO] [stdout] --> src/main.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | Ok(x) => Ok(Value::Int(x)), [INFO] [stdout] | ^^^-------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/result.rs:553:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `len` exists for reference `&[str]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 69 | if input.len() !=3 { [INFO] [stdout] | ^^^ method cannot be called on `&[str]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `str: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:73:35 [INFO] [stdout] | [INFO] [stdout] 73 | let var_name = parse_var_name(input[1])?; [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required for `[str]` to implement `Index<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | let value = parse_value(input[2])?; [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required for `[str]` to implement `Index<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(Commands::SetVar(var_name, value)) [INFO] [stdout] | ---------------- ^^^^^ expected `Value`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | SetVar(String, Value), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let command = line.split_ascii_whitespace().collect(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 91 | [INFO] [stdout] 92 | match command.get(0) { [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `command` an explicit type [INFO] [stdout] | [INFO] [stdout] 90 | let command: Vec<_> = line.split_ascii_whitespace().collect(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:94:27 [INFO] [stdout] | [INFO] [stdout] 94 | parse_set(&command); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: slice and array elements must have `Sized` type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 97 | parse_get(&command); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: slice and array elements must have `Sized` type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 85 | fn parse(input: &str) -> Result, ParseError>{ [INFO] [stdout] | --------------------------------- expected `Result, ParseError>` because of return type [INFO] [stdout] ... [INFO] [stdout] 89 | / for line in input.lines() { [INFO] [stdout] 90 | | let command = line.split_ascii_whitespace().collect(); [INFO] [stdout] 91 | | [INFO] [stdout] 92 | | match command.get(0) { [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____^ expected `Result, ParseError>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, ParseError>` [INFO] [stdout] found unit type `()` [INFO] [stdout] = note: `for` loops evaluate to unit type `()` [INFO] [stdout] help: try adding an expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 100 ~ } [INFO] [stdout] 101 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/main.rs:79:14 [INFO] [stdout] | [INFO] [stdout] 79 | fn parse_get(input: &[str]) -> Result{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dumblang` (bin "dumblang") due to 11 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | fn parse_set(input: &[str]) -> Result{ [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: slice and array elements must have `Sized` type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | fn parse_get(input: &[str]) -> Result{ [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: slice and array elements must have `Sized` type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | Ok(x) => Ok(Value::Int(x)), [INFO] [stdout] | -- ^^^^^^^^^^^^^ expected `String`, found `Value` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `Value` due to the type of the argument passed [INFO] [stdout] --> src/main.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | Ok(x) => Ok(Value::Int(x)), [INFO] [stdout] | ^^^-------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/result.rs:553:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `len` exists for reference `&[str]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 69 | if input.len() !=3 { [INFO] [stdout] | ^^^ method cannot be called on `&[str]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `str: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:73:35 [INFO] [stdout] | [INFO] [stdout] 73 | let var_name = parse_var_name(input[1])?; [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required for `[str]` to implement `Index<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | let value = parse_value(input[2])?; [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required for `[str]` to implement `Index<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(Commands::SetVar(var_name, value)) [INFO] [stdout] | ---------------- ^^^^^ expected `Value`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | SetVar(String, Value), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let command = line.split_ascii_whitespace().collect(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 91 | [INFO] [stdout] 92 | match command.get(0) { [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `command` an explicit type [INFO] [stdout] | [INFO] [stdout] 90 | let command: Vec<_> = line.split_ascii_whitespace().collect(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:94:27 [INFO] [stdout] | [INFO] [stdout] 94 | parse_set(&command); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: slice and array elements must have `Sized` type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 97 | parse_get(&command); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: slice and array elements must have `Sized` type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 85 | fn parse(input: &str) -> Result, ParseError>{ [INFO] [stdout] | --------------------------------- expected `Result, ParseError>` because of return type [INFO] [stdout] ... [INFO] [stdout] 89 | / for line in input.lines() { [INFO] [stdout] 90 | | let command = line.split_ascii_whitespace().collect(); [INFO] [stdout] 91 | | [INFO] [stdout] 92 | | match command.get(0) { [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____^ expected `Result, ParseError>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, ParseError>` [INFO] [stdout] found unit type `()` [INFO] [stdout] = note: `for` loops evaluate to unit type `()` [INFO] [stdout] help: try adding an expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 100 ~ } [INFO] [stdout] 101 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/main.rs:79:14 [INFO] [stdout] | [INFO] [stdout] 79 | fn parse_get(input: &[str]) -> Result{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dumblang` (bin "dumblang" test) due to 11 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "d0180fab58e0a7b94bec2201e69f4a053d0beebea9fbea10aaf73fc425bfd174", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0180fab58e0a7b94bec2201e69f4a053d0beebea9fbea10aaf73fc425bfd174", kill_on_drop: false }` [INFO] [stdout] d0180fab58e0a7b94bec2201e69f4a053d0beebea9fbea10aaf73fc425bfd174