[INFO] fetching crate specialize 0.0.3... [INFO] testing specialize-0.0.3 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate specialize 0.0.3 into /workspace/builds/worker-4-tc1/source [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-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate specialize 0.0.3 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 03e4e496ceba94f8e6e4ad40b0e9bfb702952f8257a95b8b9cc59621c104a880 [INFO] running `Command { std: "docker" "start" "-a" "03e4e496ceba94f8e6e4ad40b0e9bfb702952f8257a95b8b9cc59621c104a880", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "03e4e496ceba94f8e6e4ad40b0e9bfb702952f8257a95b8b9cc59621c104a880", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03e4e496ceba94f8e6e4ad40b0e9bfb702952f8257a95b8b9cc59621c104a880", kill_on_drop: false }` [INFO] [stdout] 03e4e496ceba94f8e6e4ad40b0e9bfb702952f8257a95b8b9cc59621c104a880 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f080da876f972fc5b2437f64b55c0f303b997fa0e396dc6c6e66d4e5ea012a9 [INFO] running `Command { std: "docker" "start" "-a" "0f080da876f972fc5b2437f64b55c0f303b997fa0e396dc6c6e66d4e5ea012a9", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling specialize v0.0.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "0f080da876f972fc5b2437f64b55c0f303b997fa0e396dc6c6e66d4e5ea012a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f080da876f972fc5b2437f64b55c0f303b997fa0e396dc6c6e66d4e5ea012a9", kill_on_drop: false }` [INFO] [stdout] 0f080da876f972fc5b2437f64b55c0f303b997fa0e396dc6c6e66d4e5ea012a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8cca0da84c5524c7f7e0f7d144b116a55fb6d3c153a287f1ef9047adccbdb247 [INFO] running `Command { std: "docker" "start" "-a" "8cca0da84c5524c7f7e0f7d144b116a55fb6d3c153a287f1ef9047adccbdb247", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling 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)]` (part of `#[deny(future_incompatible)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] [stderr] error: could not compile `specialize` (lib test) due to 1 previous error; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8cca0da84c5524c7f7e0f7d144b116a55fb6d3c153a287f1ef9047adccbdb247", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cca0da84c5524c7f7e0f7d144b116a55fb6d3c153a287f1ef9047adccbdb247", kill_on_drop: false }` [INFO] [stdout] 8cca0da84c5524c7f7e0f7d144b116a55fb6d3c153a287f1ef9047adccbdb247