[INFO] cloning repository https://github.com/MJJBennett/cardgame [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MJJBennett/cardgame" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMJJBennett%2Fcardgame", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMJJBennett%2Fcardgame'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 77f0226a4f75a66c5e7da6c8cd286cc62bb4c4b8 [INFO] testing MJJBennett/cardgame against 1.49.0 for beta-1.50-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMJJBennett%2Fcardgame" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MJJBennett/cardgame on toolchain 1.49.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MJJBennett/cardgame [INFO] finished tweaking git repo https://github.com/MJJBennett/cardgame [INFO] tweaked toml for git repo https://github.com/MJJBennett/cardgame written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/MJJBennett/cardgame already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b630df193322635e49f6bbe7700ccf979d59d37e5b03938ee2e7023a079bb5a0 [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" "b630df193322635e49f6bbe7700ccf979d59d37e5b03938ee2e7023a079bb5a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b630df193322635e49f6bbe7700ccf979d59d37e5b03938ee2e7023a079bb5a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b630df193322635e49f6bbe7700ccf979d59d37e5b03938ee2e7023a079bb5a0", kill_on_drop: false }` [INFO] [stdout] b630df193322635e49f6bbe7700ccf979d59d37e5b03938ee2e7023a079bb5a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ca83f696d572142c8c1012104c5607ebcb1ca1c0f9da74cace40d315ade2a53 [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" "1ca83f696d572142c8c1012104c5607ebcb1ca1c0f9da74cace40d315ade2a53", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling syn v1.0.44 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling piston-float v1.0.0 [INFO] [stderr] Compiling futures-io v0.3.6 [INFO] [stderr] Compiling cache-padded v1.1.1 [INFO] [stderr] Compiling rayon-core v1.8.1 [INFO] [stderr] Compiling piston-graphics_api_version v1.0.0 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling fastrand v1.4.0 [INFO] [stderr] Compiling async-task v4.0.2 [INFO] [stderr] Compiling vec-arena v1.0.0 [INFO] [stderr] Compiling event-listener v2.5.1 [INFO] [stderr] Compiling weezl v0.1.1 [INFO] [stderr] Compiling piston-texture v0.8.0 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling interpolation v0.2.0 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Compiling libloading v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling rayon v1.4.1 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling piston-viewport v1.0.0 [INFO] [stderr] Compiling vecmath v1.0.0 [INFO] [stderr] Compiling shader_version v0.7.0 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling gif v0.11.1 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling nb-connect v1.0.2 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling tiff v0.5.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling futures-lite v1.11.1 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling png v0.16.7 [INFO] [stderr] Compiling async-channel v1.5.1 [INFO] [stderr] Compiling wayland-sys v0.21.13 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling headers v0.3.2 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling polling v2.0.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling async-executor v1.3.0 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling async-io v1.1.10 [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling multipart v0.17.0 [INFO] [stderr] Compiling async-global-executor v1.3.0 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling ordered-float v1.1.0 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Compiling async-std v1.6.5 [INFO] [stderr] Compiling rusttype v0.8.3 [INFO] [stderr] Compiling rusttype v0.7.9 [INFO] [stderr] Compiling piston2d-graphics v0.37.0 [INFO] [stderr] Compiling andrew v0.2.1 [INFO] [stderr] Compiling wayland-commons v0.21.13 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling jpeg-decoder v0.1.20 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling image v0.23.10 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling structopt-derive v0.4.13 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling structopt v0.3.20 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling futures-util v0.3.6 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.74.0 [INFO] [stderr] Compiling winit v0.19.5 [INFO] [stderr] Compiling h2 v0.2.6 [INFO] [stderr] Compiling futures v0.3.6 [INFO] [stderr] Compiling tokio-tungstenite v0.11.0 [INFO] [stderr] Compiling glutin v0.21.2 [INFO] [stderr] Compiling pistoncore-input v1.0.0 [INFO] [stderr] Compiling pistoncore-window v0.47.0 [INFO] [stderr] Compiling pistoncore-event_loop v0.52.0 [INFO] [stderr] Compiling pistoncore-glutin_window v0.66.0 [INFO] [stderr] Compiling piston v0.52.0 [INFO] [stderr] Compiling hyper v0.13.8 [INFO] [stderr] Compiling warp v0.2.5 [INFO] [stderr] Compiling cardgame v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error: expected identifier, found keyword `Self` [INFO] [stdout] --> src/game.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Self, [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected item, found `;` [INFO] [stdout] --> src/game.rs:31:2 [INFO] [stdout] | [INFO] [stdout] 31 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = help: braced struct declarations are not followed by a semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected item, found `;` [INFO] [stdout] --> src/game.rs:37:2 [INFO] [stdout] | [INFO] [stdout] 37 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = help: braced struct declarations are not followed by a semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0449]: unnecessary visibility qualifier [INFO] [stdout] --> src/game.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub impl GameRules { [INFO] [stdout] | ^^^ `pub` not permitted here because it's implied [INFO] [stdout] | [INFO] [stdout] = note: place qualifiers on individual impl items instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/game.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/game.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/game.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/game.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/game.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/game.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/game.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/game.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/game.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/game.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/game.rs:43:28 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` in paths can only be used in start position [INFO] [stdout] --> src/game.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Self, [INFO] [stdout] | ^^^^ `Self` in paths can only be used in start position [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Optional` in this scope [INFO] [stdout] --> src/game.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | cost: Optional, [INFO] [stdout] | ^^^^^^^^ help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `structopt::StructOpt` [INFO] [stdout] --> src/game.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use structopt::StructOpt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/game.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, BufReader}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/game.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 53 | / pub fn from(filename: String) -> GameRules { [INFO] [stdout] 54 | | let file = File::open(filename)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `GameRules` [INFO] [stdout] 55 | | let reader = BufReader::new(file); [INFO] [stdout] 56 | | [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `GameRules` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/game.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn from(filename: String) -> GameRules { [INFO] [stdout] | ---- ^^^^^^^^^ expected struct `GameRules`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0432, E0433, E0449. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cardgame` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "1ca83f696d572142c8c1012104c5607ebcb1ca1c0f9da74cace40d315ade2a53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ca83f696d572142c8c1012104c5607ebcb1ca1c0f9da74cace40d315ade2a53", kill_on_drop: false }` [INFO] [stdout] 1ca83f696d572142c8c1012104c5607ebcb1ca1c0f9da74cace40d315ade2a53