[INFO] cloning repository https://github.com/sdsc-ordes/rust-workshop [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sdsc-ordes/rust-workshop" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsdsc-ordes%2Frust-workshop", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsdsc-ordes%2Frust-workshop'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8d528a0a06e73924c830281ab5896167d068457a [INFO] checking sdsc-ordes/rust-workshop against try#94e848735e78b58442e0b82e9c60f8f430840389 for pr-149218 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsdsc-ordes%2Frust-workshop" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-3-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/sdsc-ordes/rust-workshop [INFO] finished tweaking git repo https://github.com/sdsc-ordes/rust-workshop [INFO] tweaked toml for git repo https://github.com/sdsc-ordes/rust-workshop written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sdsc-ordes/rust-workshop on toolchain 94e848735e78b58442e0b82e9c60f8f430840389 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+94e848735e78b58442e0b82e9c60f8f430840389" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sdsc-ordes/rust-workshop 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" "+94e848735e78b58442e0b82e9c60f8f430840389" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ppv-lite86 v0.2.19 [INFO] [stderr] Downloaded serde_json v1.0.121 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+94e848735e78b58442e0b82e9c60f8f430840389" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9d42ea7d65ee637ea989f43f2f7b668788232a658d443a3768a48d5355938d5c [INFO] running `Command { std: "docker" "start" "-a" "9d42ea7d65ee637ea989f43f2f7b668788232a658d443a3768a48d5355938d5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9d42ea7d65ee637ea989f43f2f7b668788232a658d443a3768a48d5355938d5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d42ea7d65ee637ea989f43f2f7b668788232a658d443a3768a48d5355938d5c", kill_on_drop: false }` [INFO] [stdout] 9d42ea7d65ee637ea989f43f2f7b668788232a658d443a3768a48d5355938d5c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+94e848735e78b58442e0b82e9c60f8f430840389" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a3176a3e1d486b13a86a84819af00dbf4b29b58bd66615ecf96292384fc8fc4f [INFO] running `Command { std: "docker" "start" "-a" "a3176a3e1d486b13a86a84819af00dbf4b29b58bd66615ecf96292384fc8fc4f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.121 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking composite-types v0.1.0 (/opt/rustwide/workdir/exercises/composite-types) [INFO] [stderr] Checking borrowing v0.1.0 (/opt/rustwide/workdir/exercises/borrowing) [INFO] [stderr] Checking drop-with-errors v0.1.0 (/opt/rustwide/workdir/exercises/drop-with-errors) [INFO] [stderr] Checking basic-syntax v0.1.0 (/opt/rustwide/workdir/exercises/basic-syntax) [INFO] [stderr] Checking generics v0.1.0 (/opt/rustwide/workdir/exercises/generics) [INFO] [stderr] Checking setup v0.1.0 (/opt/rustwide/workdir/exercises/setup) [INFO] [stderr] Checking error-propagating v0.1.0 (/opt/rustwide/workdir/exercises/error-propagation) [INFO] [stderr] Checking std-traits v0.1.0 (/opt/rustwide/workdir/exercises/std-traits) [INFO] [stderr] Checking extension-traits v0.1.0 (/opt/rustwide/workdir/exercises/extension-traits) [INFO] [stdout] error: expected identifier, found `)` [INFO] [stdout] --> exercises/std-traits/src/bin/05.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | fn some_func(item: ???) -> bool { [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `item` in this scope [INFO] [stdout] --> exercises/std-traits/src/bin/05.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | item.some_function() && item.other_function() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `vec` as mutable, as it is not declared as mutable [INFO] [stdout] --> exercises/borrowing/src/bin/04.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | vec.push(88); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 3 | let mut vec = vec; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `item` in this scope [INFO] [stdout] --> exercises/std-traits/src/bin/05.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 23 | item.some_function() && item.other_function() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cents_per_gram` [INFO] [stdout] --> exercises/composite-types/src/bin/05.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_fees(&self, cents_per_gram: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cents_per_gram` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Package` is never constructed [INFO] [stdout] --> exercises/composite-types/src/bin/05.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Package { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_international`, and `get_fees` are never used [INFO] [stdout] --> exercises/composite-types/src/bin/05.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Package { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 12 | fn new(sender_country: String, recipient_country: String, weight_in_grams: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn is_international(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn get_fees(&self, cents_per_gram: u32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `std-traits` (bin "05") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `borrowing` (bin "04" test) due to 1 previous error [INFO] [stdout] warning: struct `UniqueIterator` is never constructed [INFO] [stdout] --> exercises/extension-traits/src/bin/01.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct UniqueIterator [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `i` on type `[{integer}; 5]` [INFO] [stdout] --> exercises/basic-syntax/src/bin/05.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | data.i = floored_half(data.i); [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `i` on type `[{integer}; 5]` [INFO] [stdout] --> exercises/basic-syntax/src/bin/05.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | data.i = floored_half(data.i); [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> exercises/drop-with-errors/src/bin/01.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | struct Handle(String); [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Handle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `file_handle` is never read [INFO] [stdout] --> exercises/drop-with-errors/src/bin/01.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct TempFile { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 36 | file_handle: Handle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TempFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Remove` is never constructed [INFO] [stdout] --> exercises/drop-with-errors/src/bin/01.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum ErrorFileHandle { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 41 | Remove, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorFileHandle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove` is never used [INFO] [stdout] --> exercises/drop-with-errors/src/bin/01.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | fn remove(file_handle: Handle) -> Result<(), ErrorFileHandle> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/basic-syntax/src/bin/05.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | fn floored_half(data: i32) { [INFO] [stdout] | - help: try adding a return type: `-> i32` [INFO] [stdout] 9 | data / 2 [INFO] [stdout] | ^^^^^^^^ expected `()`, found `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/generics/src/bin/02.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(Wrapper::new("Foo").value, "Foo"); [INFO] [stdout] | ------------ ^^^^^ expected `u32`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> exercises/generics/src/bin/02.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn new(value: u32) -> Self { [INFO] [stdout] | ^^^ ---------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/generics/src/bin/02.rs:29:47 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(Wrapper::new("Foo").value, "Foo"); [INFO] [stdout] | ^^^^^ expected `u32`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> exercises/error-propagation/src/main.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | use std::io::{self, BufRead, BufReader, Lines}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Resize` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/composite-types/src/bin/01.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Resize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 7 | println!("{:?}", Message::Resize); [INFO] [stdout] | ^^^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Move` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/composite-types/src/bin/01.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Move` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 8 | println!("{:?}", Message::Move); [INFO] [stdout] | ^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Echo` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/composite-types/src/bin/01.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Echo` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 9 | println!("{:?}", Message::Echo); [INFO] [stdout] | ^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `ChangeColor` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/composite-types/src/bin/01.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `ChangeColor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 10 | println!("{:?}", Message::ChangeColor); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Quit` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/composite-types/src/bin/01.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Quit` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 11 | println!("{:?}", Message::Quit); [INFO] [stdout] | ^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `basic-syntax` (bin "05" test) due to 3 previous errors [INFO] [stdout] error: unexpected parentheses surrounding `for` loop head [INFO] [stdout] --> exercises/basic-syntax/src/bin/04.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | for (n in [10, 20, 30, 40]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove parentheses in `for` loop [INFO] [stdout] | [INFO] [stdout] 2 - for (n in [10, 20, 30, 40]) { [INFO] [stdout] 2 + for n in [10, 20, 30, 40] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `composite-types` (bin "01" test) due to 5 previous errors [INFO] [stderr] error: could not compile `generics` (bin "02" test) due to 2 previous errors [INFO] [stdout] error[E0425]: cannot find value `n` in this scope [INFO] [stdout] --> exercises/basic-syntax/src/bin/04.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | let mult = if n < 25 { [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `n` in this scope [INFO] [stdout] --> exercises/basic-syntax/src/bin/04.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | n * 4 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `n` in this scope [INFO] [stdout] --> exercises/basic-syntax/src/bin/04.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | n * 3; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `basic-syntax` (bin "04" test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "a3176a3e1d486b13a86a84819af00dbf4b29b58bd66615ecf96292384fc8fc4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3176a3e1d486b13a86a84819af00dbf4b29b58bd66615ecf96292384fc8fc4f", kill_on_drop: false }` [INFO] [stdout] a3176a3e1d486b13a86a84819af00dbf4b29b58bd66615ecf96292384fc8fc4f