[INFO] fetching crate objc2 0.4.1... [INFO] checking objc2-0.4.1 against master#35936c4839dd272646394779d151e060d0f6b3ac for pr-122960-1 [INFO] extracting crate objc2 0.4.1 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate objc2 0.4.1 on toolchain 35936c4839dd272646394779d151e060d0f6b3ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate objc2 0.4.1 [INFO] finished tweaking crates.io crate objc2 0.4.1 [INFO] tweaked toml for crates.io crate objc2 0.4.1 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate objc2 0.4.1 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" "+35936c4839dd272646394779d151e060d0f6b3ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded objc-sys v0.3.1 [INFO] [stderr] Downloaded iai v0.1.1 [INFO] [stderr] Downloaded objc2-proc-macros v0.1.1 [INFO] [stderr] Downloaded objc2-encode v3.0.0 [INFO] [stderr] Downloaded malloc_buf v1.0.0 [INFO] [stderr] Downloaded libc v0.2.144 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 58ac8d15e4fce0061efbb979f92d0d6eedc935a8bf9f505699b80de7c8a99dad [INFO] running `Command { std: "docker" "start" "-a" "58ac8d15e4fce0061efbb979f92d0d6eedc935a8bf9f505699b80de7c8a99dad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58ac8d15e4fce0061efbb979f92d0d6eedc935a8bf9f505699b80de7c8a99dad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58ac8d15e4fce0061efbb979f92d0d6eedc935a8bf9f505699b80de7c8a99dad", kill_on_drop: false }` [INFO] [stdout] 58ac8d15e4fce0061efbb979f92d0d6eedc935a8bf9f505699b80de7c8a99dad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4fb0f6577f75a91add5e96169a715864cbcb07e066410417d760bd308717bd75 [INFO] running `Command { std: "docker" "start" "-a" "4fb0f6577f75a91add5e96169a715864cbcb07e066410417d760bd308717bd75", kill_on_drop: false }` [INFO] [stderr] Compiling objc-sys v0.3.1 [INFO] [stderr] Checking objc2-encode v3.0.0 [INFO] [stderr] Checking iai v0.1.1 [INFO] [stderr] Checking objc2 v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `ptr` is imported redundantly [INFO] [stdout] --> src/__macro_helpers/mod.rs:610:9 [INFO] [stdout] | [INFO] [stdout] 607 | use super::*; [INFO] [stdout] | -------- the item `ptr` is already imported here [INFO] [stdout] ... [INFO] [stdout] 610 | use core::ptr; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `mem` is imported redundantly [INFO] [stdout] --> src/declare/ivar.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | use core::mem; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | use super::*; [INFO] [stdout] | -------- the item `mem` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Id` is imported redundantly [INFO] [stdout] --> src/message/mod.rs:666:9 [INFO] [stdout] | [INFO] [stdout] 664 | use super::*; [INFO] [stdout] | -------- the item `Id` is already imported here [INFO] [stdout] 665 | use crate::mutability; [INFO] [stdout] 666 | use crate::rc::Id; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Unpin` is imported redundantly [INFO] [stdout] --> src/rc/autorelease.rs:521:9 [INFO] [stdout] | [INFO] [stdout] 521 | use core::marker::Unpin; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/35936c4839dd272646394779d151e060d0f6b3ac/library/core/src/prelude/mod.rs:38:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Unpin` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Allocated` is imported redundantly [INFO] [stdout] --> src/rc/test_object.rs:324:38 [INFO] [stdout] | [INFO] [stdout] 323 | use super::*; [INFO] [stdout] | -------- the item `Allocated` is already imported here [INFO] [stdout] 324 | use crate::rc::{autoreleasepool, Allocated}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `NSObjectProtocol` is imported redundantly [INFO] [stdout] --> src/runtime/protocol_object.rs:201:36 [INFO] [stdout] | [INFO] [stdout] 199 | use super::*; [INFO] [stdout] | -------- the item `NSObjectProtocol` is already imported here [INFO] [stdout] 200 | use crate::mutability::Mutable; [INFO] [stdout] 201 | use crate::runtime::{NSObject, NSObjectProtocol}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0455]: link kind `framework` is only supported on Apple targets [INFO] [stdout] --> src/lib.rs:226:38 [INFO] [stdout] | [INFO] [stdout] 226 | link(name = "Foundation", kind = "framework") [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0455`. [INFO] [stdout] [INFO] [stderr] error: could not compile `objc2` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: trait `Abc` is never used [INFO] [stdout] --> src/__macro_helpers/mod.rs:934:15 [INFO] [stdout] | [INFO] [stdout] 934 | trait Abc { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/rc/id_traits.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | struct Iter<'a>(&'a Collection); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 153 | struct Iter<'a>(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/rc/id_traits.rs:171:24 [INFO] [stdout] | [INFO] [stdout] 171 | struct IterMut<'a>(&'a mut Collection); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 171 | struct IterMut<'a>(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/rc/id_traits.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | struct IntoIter(Id); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 190 | struct IntoIter(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `foo_class` and `foo_instance` are never used [INFO] [stdout] --> src/runtime/protocol_object.rs:207:16 [INFO] [stdout] | [INFO] [stdout] 205 | unsafe trait Foo { [INFO] [stdout] | --- associated items in this trait [INFO] [stdout] 206 | #[method(foo)] [INFO] [stdout] 207 | fn foo_class(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn foo_instance(&self); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::__extern_protocol_rewrite_methods` which comes from the expansion of the macro `extern_protocol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `bar_class` and `bar_instance` are never used [INFO] [stdout] --> src/runtime/protocol_object.rs:219:16 [INFO] [stdout] | [INFO] [stdout] 217 | unsafe trait Bar: NSObjectProtocol { [INFO] [stdout] | --- associated items in this trait [INFO] [stdout] 218 | #[method(bar)] [INFO] [stdout] 219 | fn bar_class(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | fn bar_instance(&self); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::__extern_protocol_rewrite_methods` which comes from the expansion of the macro `extern_protocol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `foobar_class` and `foobar_instance` are never used [INFO] [stdout] --> src/runtime/protocol_object.rs:231:16 [INFO] [stdout] | [INFO] [stdout] 229 | unsafe trait FooBar: Foo + Bar { [INFO] [stdout] | ------ associated items in this trait [INFO] [stdout] 230 | #[method(foobar)] [INFO] [stdout] 231 | fn foobar_class(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | fn foobar_instance(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::__extern_protocol_rewrite_methods` which comes from the expansion of the macro `extern_protocol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `foofoobar_class` and `foofoobar_instance` are never used [INFO] [stdout] --> src/runtime/protocol_object.rs:243:16 [INFO] [stdout] | [INFO] [stdout] 241 | unsafe trait FooFooBar: Foo + FooBar { [INFO] [stdout] | --------- associated items in this trait [INFO] [stdout] 242 | #[method(foofoobar)] [INFO] [stdout] 243 | fn foofoobar_class(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | fn foofoobar_instance(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::__extern_protocol_rewrite_methods` which comes from the expansion of the macro `extern_protocol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0455]: link kind `framework` is only supported on Apple targets [INFO] [stdout] --> src/lib.rs:226:38 [INFO] [stdout] | [INFO] [stdout] 226 | link(name = "Foundation", kind = "framework") [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0455`. [INFO] [stdout] [INFO] [stderr] error: could not compile `objc2` (lib test) due to 2 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4fb0f6577f75a91add5e96169a715864cbcb07e066410417d760bd308717bd75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fb0f6577f75a91add5e96169a715864cbcb07e066410417d760bd308717bd75", kill_on_drop: false }` [INFO] [stdout] 4fb0f6577f75a91add5e96169a715864cbcb07e066410417d760bd308717bd75