[INFO] fetching crate emplacable 0.1.0-alpha.16... [INFO] testing emplacable-0.1.0-alpha.16 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate emplacable 0.1.0-alpha.16 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate emplacable 0.1.0-alpha.16 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate emplacable 0.1.0-alpha.16 [INFO] tweaked toml for crates.io crate emplacable 0.1.0-alpha.16 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate emplacable 0.1.0-alpha.16 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] crate crates.io crate emplacable 0.1.0-alpha.16 already has a lockfile, it will not be regenerated [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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] e8720495acd21c366703295fd1b32ae693aec4093bb37cabcbfc45e64b721070 [INFO] running `Command { std: "docker" "start" "-a" "e8720495acd21c366703295fd1b32ae693aec4093bb37cabcbfc45e64b721070", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8720495acd21c366703295fd1b32ae693aec4093bb37cabcbfc45e64b721070", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8720495acd21c366703295fd1b32ae693aec4093bb37cabcbfc45e64b721070", kill_on_drop: false }` [INFO] [stdout] e8720495acd21c366703295fd1b32ae693aec4093bb37cabcbfc45e64b721070 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] ab839bb22d3c0859b5874ed66584e60e896dbe9462b5b9cd6eb71bac69aaac80 [INFO] running `Command { std: "docker" "start" "-a" "ab839bb22d3c0859b5874ed66584e60e896dbe9462b5b9cd6eb71bac69aaac80", kill_on_drop: false }` [INFO] [stderr] Compiling emplacable v0.1.0-alpha.16 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1252:90 [INFO] [stdout] | [INFO] [stdout] 1252 | pub type EmplacerFn<'a, T> = dyn for<'b> FnMut(Layout, ::Metadata, &'b mut (dyn FnMut(*mut PhantomData))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1252 - pub type EmplacerFn<'a, T> = dyn for<'b> FnMut(Layout, ::Metadata, &'b mut (dyn FnMut(*mut PhantomData))) [INFO] [stdout] 1252 + pub type EmplacerFn<'a, T> = dyn for<'b> FnMut(Layout, ::Metadata, &'b mut dyn FnMut(*mut PhantomData)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unconstrained opaque type [INFO] [stdout] --> src/lib.rs:309:56 [INFO] [stdout] | [INFO] [stdout] 309 | pub type WithEmplacableForFn<'a, T: ?Sized + 'a> = impl EmplacableFn + 'a; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WithEmplacableForFn` must be used in combination with a concrete type within the same crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 309 | pub type WithEmplacableForFn<'a, T: ?Sized + 'a> = impl EmplacableFn + 'a; [INFO] [stdout] | ------------------------- the expected opaque type [INFO] [stdout] 310 | [INFO] [stdout] 311 | pub fn with_emplacable_closure(val: &mut T) -> WithEmplacableForFn<'_, T> { [INFO] [stdout] | -------------------------- expected `WithEmplacableForFn<'_, T>` because of return type [INFO] [stdout] 312 | / move |emplacer: &mut Emplacer<'_, T>| { [INFO] [stdout] 313 | | let layout = Layout::for_value(val); [INFO] [stdout] 314 | | let metadata = ptr::metadata(val); [INFO] [stdout] ... | [INFO] [stdout] 333 | | }); [INFO] [stdout] 334 | | } [INFO] [stdout] | |_________^ expected opaque type, found closure [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `WithEmplacableForFn<'_, T>` [INFO] [stdout] found closure `{closure@src/lib.rs:312:9: 312:46}` [INFO] [stdout] note: this item must have a `#[define_opaque(WithEmplacableForFn)]` attribute to be able to define hidden types [INFO] [stdout] --> src/lib.rs:311:12 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn with_emplacable_closure(val: &mut T) -> WithEmplacableForFn<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `emplacable` (lib) due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "ab839bb22d3c0859b5874ed66584e60e896dbe9462b5b9cd6eb71bac69aaac80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab839bb22d3c0859b5874ed66584e60e896dbe9462b5b9cd6eb71bac69aaac80", kill_on_drop: false }` [INFO] [stdout] ab839bb22d3c0859b5874ed66584e60e896dbe9462b5b9cd6eb71bac69aaac80