[INFO] fetching crate memory_slice 0.1.0-preview3... [INFO] checking memory_slice-0.1.0-preview3 against master#936f2600b6c903b04387f74ed5cbce88bb06d243 for pr-91141 [INFO] extracting crate memory_slice 0.1.0-preview3 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate memory_slice 0.1.0-preview3 on toolchain 936f2600b6c903b04387f74ed5cbce88bb06d243 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate memory_slice 0.1.0-preview3 [INFO] finished tweaking crates.io crate memory_slice 0.1.0-preview3 [INFO] tweaked toml for crates.io crate memory_slice 0.1.0-preview3 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9420ca3e34a0da73e470db7caf963c1dc736065274a9dac5e332dcac2c7f08b1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9420ca3e34a0da73e470db7caf963c1dc736065274a9dac5e332dcac2c7f08b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9420ca3e34a0da73e470db7caf963c1dc736065274a9dac5e332dcac2c7f08b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9420ca3e34a0da73e470db7caf963c1dc736065274a9dac5e332dcac2c7f08b1", kill_on_drop: false }` [INFO] [stdout] 9420ca3e34a0da73e470db7caf963c1dc736065274a9dac5e332dcac2c7f08b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dfad2084eb51216aa3a8ccc8a74b31e64d24b1b6fd1717ea74b7e1b839585241 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "dfad2084eb51216aa3a8ccc8a74b31e64d24b1b6fd1717ea74b7e1b839585241", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking galvanic-assert v0.8.7 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rstest v0.6.4 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling contracts v0.6.2 [INFO] [stderr] Checking memory_slice v0.1.0-preview3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements [INFO] [stdout] --> src/lib.rs:223:32 [INFO] [stdout] | [INFO] [stdout] 223 | let (l,r) = self.inner.split_at(mid); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the anonymous lifetime #1 defined here... [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | #[test_ensures(self.len() == ret.0.len() + ret.1.len())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...so that reference does not outlive borrowed content [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | #[test_ensures(self.len() == ret.0.len() + ret.1.len())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: but, the lifetime must be valid for the anonymous lifetime defined here... [INFO] [stdout] --> src/lib.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn split_at(&self, mid: usize) -> (&Self, &Self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | #[test_ensures(self.len() == ret.0.len() + ret.1.len())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected `(&Memory, &Memory)` [INFO] [stdout] found `(&Memory, &Memory)` [INFO] [stdout] = note: this error originates in the attribute macro `test_ensures` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements [INFO] [stdout] --> src/lib.rs:333:32 [INFO] [stdout] | [INFO] [stdout] 333 | let (pad, rest) = self.split_at(s0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the anonymous lifetime #1 defined here... [INFO] [stdout] --> src/lib.rs:315:5 [INFO] [stdout] | [INFO] [stdout] 315 | #[test_ensures(ret.0.len() src/lib.rs:315:5 [INFO] [stdout] | [INFO] [stdout] 315 | #[test_ensures(ret.0.len() src/lib.rs:331:22 [INFO] [stdout] | [INFO] [stdout] 331 | pub fn align_for(&self, layout: Layout) -> (&Self, &Self, &Self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/lib.rs:315:5 [INFO] [stdout] | [INFO] [stdout] 315 | #[test_ensures(ret.0.len() src/lib.rs:348:14 [INFO] [stdout] | [INFO] [stdout] 348 | self.align_for(unsafe { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the anonymous lifetime #1 defined here... [INFO] [stdout] --> src/lib.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 338 | #[test_ensures(ret.1.len()())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...so that reference does not outlive borrowed content [INFO] [stdout] --> src/lib.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 338 | #[test_ensures(ret.1.len()())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: but, the lifetime must be valid for the anonymous lifetime defined here... [INFO] [stdout] --> src/lib.rs:347:30 [INFO] [stdout] | [INFO] [stdout] 347 | pub fn align_for_type(&self) -> (&Self, &Self, &Self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/lib.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 338 | #[test_ensures(ret.1.len()())] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected `(&Memory, &Memory, &Memory)` [INFO] [stdout] found `(&Memory, &Memory, &Memory)` [INFO] [stdout] = note: this error originates in the attribute macro `test_ensures` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements [INFO] [stdout] --> src/lib.rs:363:14 [INFO] [stdout] | [INFO] [stdout] 363 | self.align_for(Layout::for_value(v)) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the anonymous lifetime #1 defined here... [INFO] [stdout] --> src/lib.rs:353:5 [INFO] [stdout] | [INFO] [stdout] 353 | #[test_ensures(ret.1.len() src/lib.rs:353:5 [INFO] [stdout] | [INFO] [stdout] 353 | #[test_ensures(ret.1.len() src/lib.rs:362:37 [INFO] [stdout] | [INFO] [stdout] 362 | pub fn align_for_val(&self, v: &T) -> (&Self, &Self, &Self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/lib.rs:353:5 [INFO] [stdout] | [INFO] [stdout] 353 | #[test_ensures(ret.1.len()