[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#d336647335db03a0fc5b24fc5325cd3905c5b8e8 for pr-151146 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsdsc-ordes%2Frust-workshop" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-1-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-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sdsc-ordes/rust-workshop on toolchain d336647335db03a0fc5b24fc5325cd3905c5b8e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking sdsc-ordes/rust-workshop against try#d336647335db03a0fc5b24fc5325cd3905c5b8e8 for pr-151146 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsdsc-ordes%2Frust-workshop" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-1-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-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sdsc-ordes/rust-workshop on toolchain d336647335db03a0fc5b24fc5325cd3905c5b8e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking sdsc-ordes/rust-workshop against try#d336647335db03a0fc5b24fc5325cd3905c5b8e8 for pr-151146 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsdsc-ordes%2Frust-workshop" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-1-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-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sdsc-ordes/rust-workshop on toolchain d336647335db03a0fc5b24fc5325cd3905c5b8e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking sdsc-ordes/rust-workshop against try#d336647335db03a0fc5b24fc5325cd3905c5b8e8 for pr-151146 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsdsc-ordes%2Frust-workshop" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-1-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-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sdsc-ordes/rust-workshop on toolchain d336647335db03a0fc5b24fc5325cd3905c5b8e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8329b6a9a23dd5cf1ab2163b92a80fc6dcf110f189ddd71f15a5b18b4719fac0 [INFO] running `Command { std: "docker" "start" "-a" "8329b6a9a23dd5cf1ab2163b92a80fc6dcf110f189ddd71f15a5b18b4719fac0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8329b6a9a23dd5cf1ab2163b92a80fc6dcf110f189ddd71f15a5b18b4719fac0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8329b6a9a23dd5cf1ab2163b92a80fc6dcf110f189ddd71f15a5b18b4719fac0", kill_on_drop: false }` [INFO] [stdout] 8329b6a9a23dd5cf1ab2163b92a80fc6dcf110f189ddd71f15a5b18b4719fac0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1502230c8bb444061fe15096042aec5f82a61775b3abd56b6d1f5a86e9981b80 [INFO] running `Command { std: "docker" "start" "-a" "1502230c8bb444061fe15096042aec5f82a61775b3abd56b6d1f5a86e9981b80", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Compiling serde_json v1.0.121 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking move-semantics v0.1.0 (/opt/rustwide/workdir/exercises/move-semantics) [INFO] [stderr] Checking blanket-implementation v0.1.0 (/opt/rustwide/workdir/exercises/blanket-implementation) [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking borrowing v0.1.0 (/opt/rustwide/workdir/exercises/borrowing) [INFO] [stderr] Checking composite-types v0.1.0 (/opt/rustwide/workdir/exercises/composite-types) [INFO] [stderr] Checking error-handling v0.1.0 (/opt/rustwide/workdir/exercises/error-handling) [INFO] [stderr] Checking basic-syntax v0.1.0 (/opt/rustwide/workdir/exercises/basic-syntax) [INFO] [stderr] Checking slices v0.1.0 (/opt/rustwide/workdir/exercises/slices) [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] error[E0499]: cannot borrow `x` as mutable more than once at a time [INFO] [stdout] --> exercises/move-semantics/src/bin/05.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 6 | let y = &mut x; [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] 7 | let z = &mut x; [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] 8 | y.push(42); [INFO] [stdout] | - first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `()` [INFO] [stdout] --> exercises/composite-types/src/bin/05.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | assert!(package.is_international()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `()` [INFO] [stdout] --> exercises/composite-types/src/bin/05.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | assert!(!package.is_international()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `name` on type `fn() {tests::your_order}` [INFO] [stdout] --> exercises/composite-types/src/bin/04.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | assert_eq!(your_order.name, "Hacker in Rust"); [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking options v0.1.0 (/opt/rustwide/workdir/exercises/options) [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `year` on type `fn() {tests::your_order}` [INFO] [stdout] --> exercises/composite-types/src/bin/04.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | assert_eq!(your_order.year, order_template.year); [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `made_by_phone` on type `fn() {tests::your_order}` [INFO] [stdout] --> exercises/composite-types/src/bin/04.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(your_order.made_by_phone, order_template.made_by_phone); [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `made_by_mobile` on type `fn() {tests::your_order}` [INFO] [stdout] --> exercises/composite-types/src/bin/04.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | assert_eq!(your_order.made_by_mobile, order_template.made_by_mobile); [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `made_by_email` on type `fn() {tests::your_order}` [INFO] [stdout] --> exercises/composite-types/src/bin/04.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(your_order.made_by_email, order_template.made_by_email); [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `item_number` on type `fn() {tests::your_order}` [INFO] [stdout] --> exercises/composite-types/src/bin/04.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(your_order.item_number, order_template.item_number); [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `count` on type `fn() {tests::your_order}` [INFO] [stdout] --> exercises/composite-types/src/bin/04.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 45 | assert_eq!(your_order.count, 1); [INFO] [stdout] | ^^^^^ unknown field [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] warning: enum `MyError` is never used [INFO] [stdout] --> exercises/error-handling/src/main.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | enum MyError { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/borrowing/src/bin/03.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | fn string_uppercase(mut data: &String) { [INFO] [stdout] | ------- expected due to this parameter type [INFO] [stdout] 13 | data = data.to_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `&String`, found `String` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to mutate the pointed at value being passed in, instead of changing the reference in the local binding [INFO] [stdout] | [INFO] [stdout] 12 ~ fn string_uppercase(data: &mut String) { [INFO] [stdout] 13 ~ *data = data.to_uppercase(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0609`. [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] error[E0308]: mismatched types [INFO] [stdout] --> exercises/composite-types/src/bin/05.rs:84:54 [INFO] [stdout] | [INFO] [stdout] 84 | assert_eq!(package.get_fees(cents_per_gram), 4500); [INFO] [stdout] | ^^^^ expected `()`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `data` [INFO] [stdout] --> exercises/borrowing/src/bin/03.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 19 | let data = "Rust is great!".to_string(); [INFO] [stdout] | ---- move occurs because `data` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] 20 | [INFO] [stdout] 21 | get_char(data); [INFO] [stdout] | ---- value moved here [INFO] [stdout] 22 | [INFO] [stdout] 23 | string_uppercase(&data); [INFO] [stdout] | ^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `get_char` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> exercises/borrowing/src/bin/03.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | fn get_char(data: String) -> char { [INFO] [stdout] | -------- ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 21 | get_char(data.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `move-semantics` (bin "05" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> exercises/error-handling/src/main.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | io::stdout().flush(); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> exercises/error-handling/src/main.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | io::stdin().lock().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 44 | let _ = io::stdin().lock().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/composite-types/src/bin/05.rs:85:58 [INFO] [stdout] | [INFO] [stdout] 85 | assert_eq!(package.get_fees(cents_per_gram * 2), 9000); [INFO] [stdout] | ^^^^ expected `()`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `composite-types` (bin "04" test) due to 7 previous errors [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] [stderr] error: could not compile `basic-syntax` (bin "05") due to 3 previous errors [INFO] [stderr] error: could not compile `borrowing` (bin "03") due to 2 previous errors [INFO] [stdout] Some errors have detailed explanations: E0308, E0600. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> exercises/blanket-implementation/src/bin/01.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let b = Banana::default(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `boxed` [INFO] [stdout] --> exercises/blanket-implementation/src/bin/01.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let boxed = Box::new(Banana::default()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_boxed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arc` [INFO] [stdout] --> exercises/blanket-implementation/src/bin/01.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let arc = Arc::new(Banana::default()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `boxed` [INFO] [stdout] --> exercises/blanket-implementation/src/bin/01.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let boxed = Box::new(b); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_boxed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arc` [INFO] [stdout] --> exercises/blanket-implementation/src/bin/01.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let arc = Arc::new(Banana::default()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Washable` is never used [INFO] [stdout] --> exercises/blanket-implementation/src/bin/01.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | trait Washable<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wash_properly` is never used [INFO] [stdout] --> exercises/blanket-implementation/src/bin/01.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn wash_properly<'a>(element: impl Washable<'a>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `composite-types` (bin "05" test) due to 4 previous errors; 1 warning emitted [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{` [INFO] [stdout] --> exercises/options/src/bin/02-options.rs:31:43 [INFO] [stdout] | [INFO] [stdout] 31 | integer = optional_integers.pop() { [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `[i32]` is not an iterator [INFO] [stdout] --> exercises/slices/src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | for elem in a[a_idx..] { [INFO] [stdout] | ^^^^^^^^^^ the trait `IntoIterator` is not implemented for `[i32]` [INFO] [stdout] | [INFO] [stdout] = note: the trait bound `[i32]: IntoIterator` is not satisfied [INFO] [stdout] = note: required for `[i32]` to implement `IntoIterator` [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 26 | for elem in &a[a_idx..] { [INFO] [stdout] | + [INFO] [stdout] 26 | for elem in &mut a[a_idx..] { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `[i32]` is not an iterator [INFO] [stdout] --> exercises/slices/src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | for elem in a[a_idx..] { [INFO] [stdout] | ^^^^^^^^^^ the trait `Sized` is not implemented for `[i32]` [INFO] [stdout] | [INFO] [stdout] = note: the trait bound `Sized` is not satisfied [INFO] [stdout] = note: required for `[i32]` to implement `IntoIterator` [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 26 | for elem in &a[a_idx..] { [INFO] [stdout] | + [INFO] [stdout] 26 | for elem in &mut a[a_idx..] { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `[i32]` is not an iterator [INFO] [stdout] --> exercises/slices/src/main.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | for elem in b[b_idx..] { [INFO] [stdout] | ^^^^^^^^^^ the trait `IntoIterator` is not implemented for `[i32]` [INFO] [stdout] | [INFO] [stdout] = note: the trait bound `[i32]: IntoIterator` is not satisfied [INFO] [stdout] = note: required for `[i32]` to implement `IntoIterator` [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 29 | for elem in &b[b_idx..] { [INFO] [stdout] | + [INFO] [stdout] 29 | for elem in &mut b[b_idx..] { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `[i32]` is not an iterator [INFO] [stdout] --> exercises/slices/src/main.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | for elem in b[b_idx..] { [INFO] [stdout] | ^^^^^^^^^^ the trait `Sized` is not implemented for `[i32]` [INFO] [stdout] | [INFO] [stdout] = note: the trait bound `Sized` is not satisfied [INFO] [stdout] = note: required for `[i32]` to implement `IntoIterator` [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 29 | for elem in &b[b_idx..] { [INFO] [stdout] | + [INFO] [stdout] 29 | for elem in &mut b[b_idx..] { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `options` (bin "02-options") due to 1 previous error [INFO] [stderr] error: could not compile `slices` (bin "slices") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "1502230c8bb444061fe15096042aec5f82a61775b3abd56b6d1f5a86e9981b80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1502230c8bb444061fe15096042aec5f82a61775b3abd56b6d1f5a86e9981b80", kill_on_drop: false }` [INFO] [stdout] 1502230c8bb444061fe15096042aec5f82a61775b3abd56b6d1f5a86e9981b80