[INFO] fetching crate department 0.2.6... [INFO] checking department-0.2.6 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate department 0.2.6 into /workspace/builds/worker-5-tc1/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-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate department 0.2.6 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5415bc42ce75f3d6b6aa903d408a95cab858472f6f96c359f091d22a0b2ca439 [INFO] running `Command { std: "docker" "start" "-a" "5415bc42ce75f3d6b6aa903d408a95cab858472f6f96c359f091d22a0b2ca439", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5415bc42ce75f3d6b6aa903d408a95cab858472f6f96c359f091d22a0b2ca439", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5415bc42ce75f3d6b6aa903d408a95cab858472f6f96c359f091d22a0b2ca439", kill_on_drop: false }` [INFO] [stdout] 5415bc42ce75f3d6b6aa903d408a95cab858472f6f96c359f091d22a0b2ca439 [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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a9f0dc371debdd39dddff244a76ae05abf4656f03fd8e3a30a8a19b36f80505 [INFO] running `Command { std: "docker" "start" "-a" "9a9f0dc371debdd39dddff244a76ae05abf4656f03fd8e3a30a8a19b36f80505", kill_on_drop: false }` [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking 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: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[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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ptr/non_null.rs:297: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/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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ptr/non_null.rs:297: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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ptr/non_null.rs:297: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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ptr/non_null.rs:297: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[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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ptr/non_null.rs:297: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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ptr/non_null.rs:297: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] 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] [stderr] warning: build failed, waiting for other jobs to finish... [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 test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "9a9f0dc371debdd39dddff244a76ae05abf4656f03fd8e3a30a8a19b36f80505", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a9f0dc371debdd39dddff244a76ae05abf4656f03fd8e3a30a8a19b36f80505", kill_on_drop: false }` [INFO] [stdout] 9a9f0dc371debdd39dddff244a76ae05abf4656f03fd8e3a30a8a19b36f80505