[INFO] cloning repository https://github.com/natetheadequate/learning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/natetheadequate/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnatetheadequate%2Flearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnatetheadequate%2Flearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d5b08507be8924e47d886a29aac55ac61b68d60d [INFO] building natetheadequate/learning-rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnatetheadequate%2Flearning-rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/natetheadequate/learning-rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/natetheadequate/learning-rust [INFO] finished tweaking git repo https://github.com/natetheadequate/learning-rust [INFO] tweaked toml for git repo https://github.com/natetheadequate/learning-rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/natetheadequate/learning-rust 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b186bdefcb99ff683547525fd42b73d047c3bded07b42c9d337b6ac1ca600b1 [INFO] running `Command { std: "docker" "start" "-a" "9b186bdefcb99ff683547525fd42b73d047c3bded07b42c9d337b6ac1ca600b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b186bdefcb99ff683547525fd42b73d047c3bded07b42c9d337b6ac1ca600b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b186bdefcb99ff683547525fd42b73d047c3bded07b42c9d337b6ac1ca600b1", kill_on_drop: false }` [INFO] [stdout] 9b186bdefcb99ff683547525fd42b73d047c3bded07b42c9d337b6ac1ca600b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7734d467307e572859bd6691ccaea3a3d669501765f88ef01fa6fc0500664a20 [INFO] running `Command { std: "docker" "start" "-a" "7734d467307e572859bd6691ccaea3a3d669501765f88ef01fa6fc0500664a20", kill_on_drop: false }` [INFO] [stderr] Compiling learning-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/bin/references.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_private_field(self: &Self)-> Any [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 11 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `println` [INFO] [stdout] --> src/bin/references.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | *v.buf.capacity() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 22 | println!("{}",requires_ref(&msg)); [INFO] [stdout] | ------- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `fibonacci` [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod fibonacci; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `fibonacci`, create file "src/fibonacci.rs" or "src/fibonacci/mod.rs" [INFO] [stdout] = note: if there is a `mod fibonacci` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `references` [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod references; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `references`, create file "src/references.rs" or "src/references/mod.rs" [INFO] [stdout] = note: if there is a `mod references` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `fibonacci` [INFO] [stdout] --> src/bin/fibonacci.rs:86:2 [INFO] [stdout] | [INFO] [stdout] 86 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/fibonacci.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/ownership.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | struct Wrapper(i32); [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `learning-rust` (bin "learning-rust") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0616]: field `buf` of struct `Vec` is private [INFO] [stdout] --> src/bin/references.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | self.buf [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/debug.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | process_strings(my_strings); [INFO] [stdout] | --------------- ^^^^^^^^^^ expected an array with a size of 3, found one with a size of 2 [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/bin/debug.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn process_strings(strings: [&str; 3]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/rounding.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | round(my_list); [INFO] [stdout] | ----- ^^^^^^^ expected `&mut Vec`, found `Vec<{float}>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found struct `Vec<{float}>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/bin/rounding.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn round(v: &mut Vec){ [INFO] [stdout] | ^^^^^ ---------------- [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 10 | round(&mut my_list); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/bin/references.rs:10:41 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_private_field(self: &Self)-> Any [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `impl Any` to return an opaque type, as long as you return a single underlying type [INFO] [stdout] | [INFO] [stdout] 10 | fn get_private_field(self: &Self)-> impl Any [INFO] [stdout] | ++++ [INFO] [stdout] help: alternatively, you can return an owned trait object [INFO] [stdout] | [INFO] [stdout] 10 | fn get_private_field(self: &Self)-> Box [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/bin/references.rs:14:41 [INFO] [stdout] | [INFO] [stdout] 14 | fn get_private_field(self: &Self)-> Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `impl Any` to return an opaque type, as long as you return a single underlying type [INFO] [stdout] | [INFO] [stdout] 14 | fn get_private_field(self: &Self)-> impl Any { [INFO] [stdout] | ++++ [INFO] [stdout] help: alternatively, you can return an owned trait object [INFO] [stdout] | [INFO] [stdout] 14 | fn get_private_field(self: &Self)-> Box { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elem` [INFO] [stdout] --> src/bin/rounding.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | for elem in v.iter_mut(){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_elem` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0616, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0616`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `learning-rust` (bin "references") due to 5 previous errors [INFO] [stderr] error: could not compile `learning-rust` (bin "debug") due to 1 previous error [INFO] [stderr] error: could not compile `learning-rust` (bin "fibonacci") due to 1 previous error [INFO] [stderr] error: could not compile `learning-rust` (bin "rounding") due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "7734d467307e572859bd6691ccaea3a3d669501765f88ef01fa6fc0500664a20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7734d467307e572859bd6691ccaea3a3d669501765f88ef01fa6fc0500664a20", kill_on_drop: false }` [INFO] [stdout] 7734d467307e572859bd6691ccaea3a3d669501765f88ef01fa6fc0500664a20