[INFO] fetching crate emplacable 0.1.0-alpha.16... [INFO] checking emplacable-0.1.0-alpha.16 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate emplacable 0.1.0-alpha.16 into /workspace/builds/worker-0-tc2/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-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate emplacable 0.1.0-alpha.16 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed5bebc7a5fac9b18e22988df00c2b02b0602c58220fac55ad5fb657c374eaa2 [INFO] running `Command { std: "docker" "start" "-a" "ed5bebc7a5fac9b18e22988df00c2b02b0602c58220fac55ad5fb657c374eaa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed5bebc7a5fac9b18e22988df00c2b02b0602c58220fac55ad5fb657c374eaa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed5bebc7a5fac9b18e22988df00c2b02b0602c58220fac55ad5fb657c374eaa2", kill_on_drop: false }` [INFO] [stdout] ed5bebc7a5fac9b18e22988df00c2b02b0602c58220fac55ad5fb657c374eaa2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba16a877c884e0f051b3750a22571e719ee4dcaf3106b890b7abb50bbc254e5e [INFO] running `Command { std: "docker" "start" "-a" "ba16a877c884e0f051b3750a22571e719ee4dcaf3106b890b7abb50bbc254e5e", kill_on_drop: false }` [INFO] [stderr] Checking 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)]` 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] 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)]` 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] 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] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `emplacable` (lib test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `emplacable` (lib) due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "ba16a877c884e0f051b3750a22571e719ee4dcaf3106b890b7abb50bbc254e5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba16a877c884e0f051b3750a22571e719ee4dcaf3106b890b7abb50bbc254e5e", kill_on_drop: false }` [INFO] [stdout] ba16a877c884e0f051b3750a22571e719ee4dcaf3106b890b7abb50bbc254e5e