[INFO] cloning repository https://github.com/andrewyli/rust-madlibs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andrewyli/rust-madlibs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrewyli%2Frust-madlibs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrewyli%2Frust-madlibs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a1f6b7e7c639896ff1d0b1950792a576fd28f2b [INFO] testing andrewyli/rust-madlibs against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrewyli%2Frust-madlibs" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andrewyli/rust-madlibs on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/andrewyli/rust-madlibs [INFO] finished tweaking git repo https://github.com/andrewyli/rust-madlibs [INFO] tweaked toml for git repo https://github.com/andrewyli/rust-madlibs written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/andrewyli/rust-madlibs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8483c77e2c1bdc93a705f47ffafa51dcbea306d33fce8ab628fe2fc78b867b32 [INFO] running `Command { std: "docker" "start" "-a" "8483c77e2c1bdc93a705f47ffafa51dcbea306d33fce8ab628fe2fc78b867b32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8483c77e2c1bdc93a705f47ffafa51dcbea306d33fce8ab628fe2fc78b867b32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8483c77e2c1bdc93a705f47ffafa51dcbea306d33fce8ab628fe2fc78b867b32", kill_on_drop: false }` [INFO] [stdout] 8483c77e2c1bdc93a705f47ffafa51dcbea306d33fce8ab628fe2fc78b867b32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fcd231664d80b113edd2c9b83c9cf15133b8f0f7c5da19dbef49a16989cd95d0 [INFO] running `Command { std: "docker" "start" "-a" "fcd231664d80b113edd2c9b83c9cf15133b8f0f7c5da19dbef49a16989cd95d0", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rust-madlibs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `regex_macros` [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate regex_macros; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `regex` [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate regex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: malformed `plugin` attribute input [INFO] [stdout] --> src/lib.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] #[plugin] #[no_link] [INFO] [stdout] | ^^^^^^^^^ help: must be of the form: `#[plugin(name)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `regex` in this scope [INFO] [stdout] --> src/lib.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | let re = regex!(s.as_slice()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `regex` is imported here, but it is an unresolved item, not a macro [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate regex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: compiler plugins are deprecated [INFO] [stdout] --> src/lib.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] #[plugin] #[no_link] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29597 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675 [INFO] [stdout] --> src/lib.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] #[plugin] #[no_link] [INFO] [stdout] | ^^^^^^^^^ help: may be removed in a future compiler version [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[feature(plugin)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` [INFO] [stdout] --> src/lib.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] #[plugin] #[no_link] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | let input = io::stdin().read_line().ok().expect("Failed to read line."); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for type `usize` in the current scope [INFO] [stdout] --> src/lib.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | let line = input.as_slice(); [INFO] [stdout] | ^^^^^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: Neg` is not satisfied [INFO] [stdout] --> src/lib.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | None => -1, [INFO] [stdout] | ^^ the trait `Neg` is not implemented for `usize` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] <&f32 as Neg> [INFO] [stdout] <&f64 as Neg> [INFO] [stdout] <&i128 as Neg> [INFO] [stdout] <&i16 as Neg> [INFO] [stdout] and 12 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/lib.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 39 | let r_index = match r_duple { [INFO] [stdout] | ___________________- [INFO] [stdout] 40 | | Some((x, y)) => y, [INFO] [stdout] | | - this is found to be of type `&str` [INFO] [stdout] 41 | | None => -1, [INFO] [stdout] | | ^^ expected `&str`, found integer [INFO] [stdout] 42 | | }; [INFO] [stdout] | |_____- `match` arms have incompatible types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:43:19 [INFO] [stdout] | [INFO] [stdout] 43 | if l_index == -1 { [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | cannot apply unary operator `-` [INFO] [stdout] | help: you may have meant the maximum value of `usize`: `usize::MAX` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for reference `&str` in the current scope [INFO] [stdout] --> src/lib.rs:47:40 [INFO] [stdout] | [INFO] [stdout] 47 | println!("Give me a/an {}!", s.slice(l_index + 1, r_index - 1)); [INFO] [stdout] | ^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:48:38 [INFO] [stdout] | [INFO] [stdout] 48 | let input = std::io::stdin().read_line().ok().expect("Failed to fill blank."); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for reference `&str` in the current scope [INFO] [stdout] --> src/lib.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | re.replace(s.slice(l_index, r_index), input.as_slice().trim()); [INFO] [stdout] | ^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for type `usize` in the current scope [INFO] [stdout] --> src/lib.rs:50:53 [INFO] [stdout] | [INFO] [stdout] 50 | re.replace(s.slice(l_index, r_index), input.as_slice().trim()); [INFO] [stdout] | ^^^^^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | else { [INFO] [stdout] | __________^ [INFO] [stdout] 47 | | println!("Give me a/an {}!", s.slice(l_index + 1, r_index - 1)); [INFO] [stdout] 48 | | let input = std::io::stdin().read_line().ok().expect("Failed to fill blank."); [INFO] [stdout] 49 | | let re = regex!(s.as_slice()); [INFO] [stdout] 50 | | re.replace(s.slice(l_index, r_index), input.as_slice().trim()); [INFO] [stdout] 51 | | re.as_str().to_string(); [INFO] [stdout] 52 | | } [INFO] [stdout] | |_____^ expected struct `String`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0463, E0599, E0600, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-madlibs` due to 16 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fcd231664d80b113edd2c9b83c9cf15133b8f0f7c5da19dbef49a16989cd95d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcd231664d80b113edd2c9b83c9cf15133b8f0f7c5da19dbef49a16989cd95d0", kill_on_drop: false }` [INFO] [stdout] fcd231664d80b113edd2c9b83c9cf15133b8f0f7c5da19dbef49a16989cd95d0