[INFO] fetching crate rust_cards 0.1.2... [INFO] testing rust_cards-0.1.2 against master#62efba8a050c64249dab942951bb28f710208bc8 for pr-90799 [INFO] extracting crate rust_cards 0.1.2 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate rust_cards 0.1.2 on toolchain 62efba8a050c64249dab942951bb28f710208bc8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rust_cards 0.1.2 [INFO] finished tweaking crates.io crate rust_cards 0.1.2 [INFO] tweaked toml for crates.io crate rust_cards 0.1.2 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 734b9da0347f70ffee83ebda28fd55c2e91d6d1a705003f0ca03f8afa1269942 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "734b9da0347f70ffee83ebda28fd55c2e91d6d1a705003f0ca03f8afa1269942", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "734b9da0347f70ffee83ebda28fd55c2e91d6d1a705003f0ca03f8afa1269942", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "734b9da0347f70ffee83ebda28fd55c2e91d6d1a705003f0ca03f8afa1269942", kill_on_drop: false }` [INFO] [stdout] 734b9da0347f70ffee83ebda28fd55c2e91d6d1a705003f0ca03f8afa1269942 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96aca981a8ca2c74d56b0e4e8d1846d6e82f4d68789eb53562f79d47381d3b59 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "96aca981a8ca2c74d56b0e4e8d1846d6e82f4d68789eb53562f79d47381d3b59", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling rust_cards v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.59s [INFO] running `Command { std: "docker" "inspect" "96aca981a8ca2c74d56b0e4e8d1846d6e82f4d68789eb53562f79d47381d3b59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96aca981a8ca2c74d56b0e4e8d1846d6e82f4d68789eb53562f79d47381d3b59", kill_on_drop: false }` [INFO] [stdout] 96aca981a8ca2c74d56b0e4e8d1846d6e82f4d68789eb53562f79d47381d3b59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64d21a4c61f07c379cbc83df633db5c7a41e457427917465f6fe5b357456b9e8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "64d21a4c61f07c379cbc83df633db5c7a41e457427917465f6fe5b357456b9e8", kill_on_drop: false }` [INFO] [stderr] Compiling rust_cards v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.05s [INFO] running `Command { std: "docker" "inspect" "64d21a4c61f07c379cbc83df633db5c7a41e457427917465f6fe5b357456b9e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64d21a4c61f07c379cbc83df633db5c7a41e457427917465f6fe5b357456b9e8", kill_on_drop: false }` [INFO] [stdout] 64d21a4c61f07c379cbc83df633db5c7a41e457427917465f6fe5b357456b9e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9ba74e1ee0d5389349393b7a253f29abc3f39f13bc3e41c83444b0fc8abc9728 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9ba74e1ee0d5389349393b7a253f29abc3f39f13bc3e41c83444b0fc8abc9728", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rust_cards-d10cc372abb4d69a) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test tests::full_hand ... ok [INFO] [stdout] test tests::insert ... ok [INFO] [stdout] test tests::stack_top ... ok [INFO] [stdout] test tests::stack_bottom ... ok [INFO] [stdout] test tests::random_cards ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Doc-tests rust_cards [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/hand.rs - hand::Hand::pop_bottom (line 98) ... FAILED [INFO] [stdout] test src/hand.rs - hand::Hand::push_top (line 118) ... FAILED [INFO] [stdout] test src/hand.rs - hand::Hand::pop_top (line 72) ... FAILED [INFO] [stdout] test src/hand.rs - hand::Hand::push_bottom (line 136) ... FAILED [INFO] [stdout] test src/hand.rs - hand::Hand::stack_top (line 168) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/hand.rs - hand::Hand::pop_bottom (line 98) stdout ---- [INFO] [stdout] error: no rules expected the token `Card` [INFO] [stdout] --> src/hand.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 6 | Card::new(Value::Two, Suit::Spade) [INFO] [stdout] | ^^^^ no rules expected this token in macro call [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Hand` [INFO] [stdout] --> src/hand.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut h = Hand::from( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rust_cards::hand::Hand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/hand.rs - hand::Hand::push_top (line 118) stdout ---- [INFO] [stdout] error: no rules expected the token `Card` [INFO] [stdout] --> src/hand.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 6 | Card::new(Value::Two, Suit::Spade) [INFO] [stdout] | ^^^^ no rules expected this token in macro call [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value` [INFO] [stdout] --> src/hand.rs:128:22 [INFO] [stdout] | [INFO] [stdout] 12 | h = h.push(Card::new(Value::King, Suit::Spade)) [INFO] [stdout] | ^^^^^ use of undeclared type `Value` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Suit` [INFO] [stdout] --> src/hand.rs:128:35 [INFO] [stdout] | [INFO] [stdout] 12 | h = h.push(Card::new(Value::King, Suit::Spade)) [INFO] [stdout] | ^^^^ use of undeclared type `Suit` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Hand` [INFO] [stdout] --> src/hand.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut h = Hand::from( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rust_cards::hand::Hand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Card` [INFO] [stdout] --> src/hand.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 12 | h = h.push(Card::new(Value::King, Suit::Spade)) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rust_cards::cards::Card; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/hand.rs - hand::Hand::pop_top (line 72) stdout ---- [INFO] [stdout] error: no rules expected the token `Card` [INFO] [stdout] --> src/hand.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 6 | Card::new(Value::Two, Suit::Spade) [INFO] [stdout] | ^^^^ no rules expected this token in macro call [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Hand` [INFO] [stdout] --> src/hand.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut h = Hand::from( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rust_cards::hand::Hand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/hand.rs - hand::Hand::push_bottom (line 136) stdout ---- [INFO] [stdout] error: no rules expected the token `Card` [INFO] [stdout] --> src/hand.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 6 | Card::new(Value::Two, Suit::Spade) [INFO] [stdout] | ^^^^ no rules expected this token in macro call [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value` [INFO] [stdout] --> src/hand.rs:146:22 [INFO] [stdout] | [INFO] [stdout] 12 | h = h.push(Card::new(Value::Four, Suit::Spade)) [INFO] [stdout] | ^^^^^ use of undeclared type `Value` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Suit` [INFO] [stdout] --> src/hand.rs:146:35 [INFO] [stdout] | [INFO] [stdout] 12 | h = h.push(Card::new(Value::Four, Suit::Spade)) [INFO] [stdout] | ^^^^ use of undeclared type `Suit` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Hand` [INFO] [stdout] --> src/hand.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut h = Hand::from( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rust_cards::hand::Hand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Card` [INFO] [stdout] --> src/hand.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 12 | h = h.push(Card::new(Value::Four, Suit::Spade)) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rust_cards::cards::Card; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/hand.rs - hand::Hand::pop_bottom (line 98) [INFO] [stdout] src/hand.rs - hand::Hand::pop_top (line 72) [INFO] [stdout] src/hand.rs - hand::Hand::push_bottom (line 136) [INFO] [stdout] src/hand.rs - hand::Hand::push_top (line 118) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.71s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "9ba74e1ee0d5389349393b7a253f29abc3f39f13bc3e41c83444b0fc8abc9728", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ba74e1ee0d5389349393b7a253f29abc3f39f13bc3e41c83444b0fc8abc9728", kill_on_drop: false }` [INFO] [stdout] 9ba74e1ee0d5389349393b7a253f29abc3f39f13bc3e41c83444b0fc8abc9728