[INFO] fetching crate department 0.2.6... [INFO] testing department-0.2.6 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate department 0.2.6 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate department 0.2.6 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate department 0.2.6 [INFO] tweaked toml for crates.io crate department 0.2.6 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate department 0.2.6 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate department 0.2.6 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb083dc41734455fb64385ed7a3177edcd57bfc1375d8e69a90364440ac8d6c0 [INFO] running `Command { std: "docker" "start" "-a" "bb083dc41734455fb64385ed7a3177edcd57bfc1375d8e69a90364440ac8d6c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb083dc41734455fb64385ed7a3177edcd57bfc1375d8e69a90364440ac8d6c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb083dc41734455fb64385ed7a3177edcd57bfc1375d8e69a90364440ac8d6c0", kill_on_drop: false }` [INFO] [stdout] bb083dc41734455fb64385ed7a3177edcd57bfc1375d8e69a90364440ac8d6c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11d39cfbb5e3114368dc61bf54855d217114daff25ab54186ca677f4995aa4fd [INFO] running `Command { std: "docker" "start" "-a" "11d39cfbb5e3114368dc61bf54855d217114daff25ab54186ca677f4995aa4fd", kill_on_drop: false }` [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling department v0.2.6 (/opt/rustwide/workdir) [INFO] [stdout] error[E0271]: type mismatch resolving `::Metadata == ()` [INFO] [stdout] --> src/base.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | allocate_single, deallocate_single [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `()`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found associated type `::Metadata` [INFO] [stdout] help: consider constraining the associated type `::Metadata` to `()` [INFO] [stdout] | [INFO] [stdout] 21 | fn $create>( [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Metadata == ()` [INFO] [stdout] --> src/base.rs:367:9 [INFO] [stdout] | [INFO] [stdout] 367 | allocate, deallocate [INFO] [stdout] | ^^^^^^^^ expected `()`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found associated type `::Metadata` [INFO] [stdout] help: consider constraining the associated type `::Metadata` to `()` [INFO] [stdout] | [INFO] [stdout] 21 | fn $create>( [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/handles.rs:164:38 [INFO] [stdout] | [INFO] [stdout] 164 | NonNull::from_raw_parts(self.cast(), meta) [INFO] [stdout] | ----------------------- ^^^^ cannot infer type of the type parameter `U` declared on the method `cast` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: Thin` [INFO] [stdout] note: required by a bound in `NonNull::::from_raw_parts` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ptr/non_null.rs:304:5 [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 164 | NonNull::from_raw_parts(self.cast::(), meta) [INFO] [stdout] | +++++ [INFO] [stdout] help: consider removing this method call, as the receiver has type `NonNull` and `NonNull: Thin` trivially holds [INFO] [stdout] | [INFO] [stdout] 164 - NonNull::from_raw_parts(self.cast(), meta) [INFO] [stdout] 164 + NonNull::from_raw_parts(self, meta) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/alloc.rs:117:44 [INFO] [stdout] | [INFO] [stdout] 117 | Ok(NonNull::from_raw_parts(new_ptr.cast(), capacity)) [INFO] [stdout] | ----------------------- ^^^^ cannot infer type of the type parameter `U` declared on the method `cast` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: Thin` [INFO] [stdout] note: required by a bound in `NonNull::::from_raw_parts` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ptr/non_null.rs:304:5 [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 117 | Ok(NonNull::from_raw_parts(new_ptr.cast::(), capacity)) [INFO] [stdout] | +++++ [INFO] [stdout] help: consider removing this method call, as the receiver has type `NonNull<[u8]>` and `NonNull<[u8]>: Thin` trivially holds [INFO] [stdout] | [INFO] [stdout] 117 - Ok(NonNull::from_raw_parts(new_ptr.cast(), capacity)) [INFO] [stdout] 117 + Ok(NonNull::from_raw_parts(new_ptr, capacity)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/alloc.rs:139:44 [INFO] [stdout] | [INFO] [stdout] 139 | Ok(NonNull::from_raw_parts(new_ptr.cast(), capacity)) [INFO] [stdout] | ----------------------- ^^^^ cannot infer type of the type parameter `U` declared on the method `cast` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: Thin` [INFO] [stdout] note: required by a bound in `NonNull::::from_raw_parts` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ptr/non_null.rs:304:5 [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 139 | Ok(NonNull::from_raw_parts(new_ptr.cast::(), capacity)) [INFO] [stdout] | +++++ [INFO] [stdout] help: consider removing this method call, as the receiver has type `NonNull<[u8]>` and `NonNull<[u8]>: Thin` trivially holds [INFO] [stdout] | [INFO] [stdout] 139 - Ok(NonNull::from_raw_parts(new_ptr.cast(), capacity)) [INFO] [stdout] 139 + Ok(NonNull::from_raw_parts(new_ptr, capacity)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `NonNull<_>` [INFO] [stdout] --> src/heap.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let ptr = unsafe { NonNull::new_unchecked(slice_ptr).cast() }; [INFO] [stdout] | ^^^ ---------------------------------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `ptr` an explicit type, where the type for type parameter `U` is specified [INFO] [stdout] | [INFO] [stdout] 229 | let ptr: NonNull = unsafe { NonNull::new_unchecked(slice_ptr).cast() }; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0282, E0283. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `department` (lib) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "11d39cfbb5e3114368dc61bf54855d217114daff25ab54186ca677f4995aa4fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11d39cfbb5e3114368dc61bf54855d217114daff25ab54186ca677f4995aa4fd", kill_on_drop: false }` [INFO] [stdout] 11d39cfbb5e3114368dc61bf54855d217114daff25ab54186ca677f4995aa4fd