[INFO] fetching crate rogue 0.0.2... [INFO] checking rogue-0.0.2 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate rogue 0.0.2 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate rogue 0.0.2 [INFO] finished tweaking crates.io crate rogue 0.0.2 [INFO] tweaked toml for crates.io crate rogue 0.0.2 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rogue 0.0.2 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a92d858b0f6c108d5d910ddac7c877dc6e5d50df41979d68173be1162ed69484 [INFO] running `Command { std: "docker" "start" "-a" "a92d858b0f6c108d5d910ddac7c877dc6e5d50df41979d68173be1162ed69484", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a92d858b0f6c108d5d910ddac7c877dc6e5d50df41979d68173be1162ed69484", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a92d858b0f6c108d5d910ddac7c877dc6e5d50df41979d68173be1162ed69484", kill_on_drop: false }` [INFO] [stdout] a92d858b0f6c108d5d910ddac7c877dc6e5d50df41979d68173be1162ed69484 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4fdce7ba736cc0e10d60a92ef79cfdd0cf0dab7ba759327860cef08b2681d9be [INFO] running `Command { std: "docker" "start" "-a" "4fdce7ba736cc0e10d60a92ef79cfdd0cf0dab7ba759327860cef08b2681d9be", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking rogue v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/dice.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rand; [INFO] [stdout] | ^^^^^^^^^ no `rand` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/dice.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rand::Rng; [INFO] [stdout] | ^^^^ could not find `rand` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/dice.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rand; [INFO] [stdout] | ^^^^^^^^^ no `rand` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/dice.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rand::Rng; [INFO] [stdout] | ^^^^ could not find `rand` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/dice.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Dice(pub uint, pub uint); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/dice.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Dice(pub uint, pub uint); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/dice.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn roll(&self) -> uint { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `macro_rules` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(macro_rules, slicing_syntax)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slicing_syntax` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(macro_rules, slicing_syntax)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Dice: Clone` is not satisfied [INFO] [stdout] --> src/dice.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Copy)] [INFO] [stdout] | ^^^^ the trait `Clone` is not implemented for `Dice` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Copy` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/marker.rs:465:1 [INFO] [stdout] help: consider annotating `Dice` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Clone)] [INFO] [stdout] 6 | pub struct Dice(pub uint, pub uint); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/dice.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Dice(pub uint, pub uint); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/dice.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Dice(pub uint, pub uint); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/dice.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn roll(&self) -> uint { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/dice.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | for num in range(1u, 4) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 21 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/dice.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | for sides in range(1u, 20) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 21 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/dice.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | let mut dist : Vec = repeat(0u).take($num * $sides + 1).collect(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 42 | assert_dice!(num, sides); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert_dice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 39 | fn dice() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/dice.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | for _ in range(0, $num * $sides * 1000) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 42 | assert_dice!(num, sides); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert_dice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 21 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/dice.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | dist[roll as uint] += 1; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 42 | assert_dice!(num, sides); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert_dice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/dice.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | for num in range(1u, 4) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/dice.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | for sides in range(1u, 20) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/dice.rs:28:46 [INFO] [stdout] | [INFO] [stdout] 28 | let mut dist : Vec = repeat(0u).take($num * $sides + 1).collect(); [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] ... [INFO] [stdout] 42 | assert_dice!(num, sides); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] = note: this error originates in the macro `assert_dice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/dice.rs:34:102 [INFO] [stdout] | [INFO] [stdout] 34 | assert!(dist.iter().take($num - 1).all(|g| *g == 0), "dist {}d{} {}", $num, $sides, dist[0u..$num]); [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] ... [INFO] [stdout] 42 | assert_dice!(num, sides); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] = note: this error originates in the macro `assert_dice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `macro_rules` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(macro_rules, slicing_syntax)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slicing_syntax` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(macro_rules, slicing_syntax)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rogue` (lib) due to 6 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the trait bound `Dice: Clone` is not satisfied [INFO] [stdout] --> src/dice.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Copy)] [INFO] [stdout] | ^^^^ the trait `Clone` is not implemented for `Dice` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Copy` [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/core/src/marker.rs:465:1 [INFO] [stdout] help: consider annotating `Dice` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Clone)] [INFO] [stdout] 6 | pub struct Dice(pub uint, pub uint); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rogue` (lib test) due to 15 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4fdce7ba736cc0e10d60a92ef79cfdd0cf0dab7ba759327860cef08b2681d9be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fdce7ba736cc0e10d60a92ef79cfdd0cf0dab7ba759327860cef08b2681d9be", kill_on_drop: false }` [INFO] [stdout] 4fdce7ba736cc0e10d60a92ef79cfdd0cf0dab7ba759327860cef08b2681d9be