[INFO] fetching crate specialize 0.0.3... [INFO] checking specialize-0.0.3 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate specialize 0.0.3 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate specialize 0.0.3 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate specialize 0.0.3 [INFO] finished tweaking crates.io crate specialize 0.0.3 [INFO] tweaked toml for crates.io crate specialize 0.0.3 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e6eebd0c7572d0616f651e17d5c5b5cb2a0126b69bb137dec1a4f95cce7194f1 [INFO] running `Command { std: "docker" "start" "-a" "e6eebd0c7572d0616f651e17d5c5b5cb2a0126b69bb137dec1a4f95cce7194f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e6eebd0c7572d0616f651e17d5c5b5cb2a0126b69bb137dec1a4f95cce7194f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6eebd0c7572d0616f651e17d5c5b5cb2a0126b69bb137dec1a4f95cce7194f1", kill_on_drop: false }` [INFO] [stdout] e6eebd0c7572d0616f651e17d5c5b5cb2a0126b69bb137dec1a4f95cce7194f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b133faf44c2a6099f505a19548a7341910a6c28ef3613ca9867a5abea126854b [INFO] running `Command { std: "docker" "start" "-a" "b133faf44c2a6099f505a19548a7341910a6c28ef3613ca9867a5abea126854b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking specialize v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/lib.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(test, feature(specialization))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #31844 for more information [INFO] [stdout] = help: consider using `min_specialization` instead, which is more stable and complete [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/lib.rs:594:65 [INFO] [stdout] | [INFO] [stdout] 594 | trait fn WriteTest::write_test[W: Write](&self, mut w: W) -> io::Result<()>; [INFO] [stdout] | ^^^^^ help: remove `mut` from the parameter: `w` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] = note: `#[deny(patterns_in_fns_without_body)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/lib.rs:594:69 [INFO] [stdout] | [INFO] [stdout] 594 | trait fn WriteTest::write_test[W: Write](&self, mut w: W) -> io::Result<()>; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:594:65 [INFO] [stdout] | [INFO] [stdout] 594 | trait fn WriteTest::write_test[W: Write](&self, mut w: W) -> io::Result<()>; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is`, `move_`, and `as_mut` are never used [INFO] [stdout] --> src/lib.rs:486:20 [INFO] [stdout] | [INFO] [stdout] 397 | constrain! { @trait __ConstrainBounds__ ($($bounds)*) ($default_ty) } [INFO] [stdout] | ------------------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 486 | fn is() -> bool; [INFO] [stdout] | ^^ [INFO] [stdout] 487 | fn move_(self) -> Option where Self: Sized, Self::Out: Sized; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 488 | fn as_ref(&self) -> Option<&Self::Out>; [INFO] [stdout] 489 | fn as_mut(&mut self) -> Option<&mut Self::Out>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 614 | if let Some(display) = constrain!(ref [t: Display] = u8) { [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `constrain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is`, `move_`, and `as_ref` are never used [INFO] [stdout] --> src/lib.rs:486:20 [INFO] [stdout] | [INFO] [stdout] 390 | constrain! { @trait __ConstrainBounds__ ($($bounds)*) ($default_ty) } [INFO] [stdout] | ------------------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 486 | fn is() -> bool; [INFO] [stdout] | ^^ [INFO] [stdout] 487 | fn move_(self) -> Option where Self: Sized, Self::Out: Sized; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 488 | fn as_ref(&self) -> Option<&Self::Out>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 631 | if let Some(write) = constrain!(ref mut [t: Write] = Stdout) { [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `constrain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_`, `as_ref`, and `as_mut` are never used [INFO] [stdout] --> src/lib.rs:454:16 [INFO] [stdout] | [INFO] [stdout] 439 | constrain! { @trait_concrete __ConstrainEq__ ($ty_eq) } [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 454 | fn move_(self) -> Option<$ty> where Self: Sized, $ty: Sized; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 455 | fn as_ref(&self) -> Option<&$ty>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 456 | fn as_mut(&mut self) -> Option<&mut $ty>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 645 | constrain!(type T as bool) [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `constrain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_`, `as_ref`, and `as_mut` are never used [INFO] [stdout] --> src/lib.rs:454:16 [INFO] [stdout] | [INFO] [stdout] 439 | constrain! { @trait_concrete __ConstrainEq__ ($ty_eq) } [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 454 | fn move_(self) -> Option<$ty> where Self: Sized, $ty: Sized; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 455 | fn as_ref(&self) -> Option<&$ty>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 456 | fn as_mut(&mut self) -> Option<&mut $ty>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | assert!(constrain!(type bool as bool)); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `constrain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is`, `move_`, and `as_mut` are never used [INFO] [stdout] --> src/lib.rs:453:16 [INFO] [stdout] | [INFO] [stdout] 432 | constrain! { @trait_concrete __ConstrainEq__ ($ty) } [INFO] [stdout] | --------------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 453 | fn is() -> bool; [INFO] [stdout] | ^^ [INFO] [stdout] 454 | fn move_(self) -> Option<$ty> where Self: Sized, $ty: Sized; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 455 | fn as_ref(&self) -> Option<&$ty>; [INFO] [stdout] 456 | fn as_mut(&mut self) -> Option<&mut $ty>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 657 | constrain!(ref v as bool).is_some() [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `constrain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `specialize` (lib test) due to 2 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b133faf44c2a6099f505a19548a7341910a6c28ef3613ca9867a5abea126854b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b133faf44c2a6099f505a19548a7341910a6c28ef3613ca9867a5abea126854b", kill_on_drop: false }` [INFO] [stdout] b133faf44c2a6099f505a19548a7341910a6c28ef3613ca9867a5abea126854b