[INFO] fetching crate objc-macros 0.1.0... [INFO] testing objc-macros-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate objc-macros 0.1.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate objc-macros 0.1.0 [INFO] finished tweaking crates.io crate objc-macros 0.1.0 [INFO] tweaked toml for crates.io crate objc-macros 0.1.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate objc-macros 0.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate objc-macros 0.1.0 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de0d59255e38901743e4bc85424fd31833303f6ce5684fccfd9f1fc75536d03e [INFO] running `Command { std: "docker" "start" "-a" "de0d59255e38901743e4bc85424fd31833303f6ce5684fccfd9f1fc75536d03e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de0d59255e38901743e4bc85424fd31833303f6ce5684fccfd9f1fc75536d03e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de0d59255e38901743e4bc85424fd31833303f6ce5684fccfd9f1fc75536d03e", kill_on_drop: false }` [INFO] [stdout] de0d59255e38901743e4bc85424fd31833303f6ce5684fccfd9f1fc75536d03e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94b49e17c7650701159e575bcb296e8db43e4ab93de9467e4b388e367e4c0c87 [INFO] running `Command { std: "docker" "start" "-a" "94b49e17c7650701159e575bcb296e8db43e4ab93de9467e4b388e367e4c0c87", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling malloc_buf v0.0.6 [INFO] [stderr] Compiling objc v0.2.7 [INFO] [stderr] Compiling objc-macros v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `objc::declare::ClassDecl` [INFO] [stdout] --> src/class.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use objc::declare::ClassDecl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Class`, `Object`, and `Sel` [INFO] [stdout] --> src/class.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use objc::runtime::{Class, Object, Sel}; [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `process_field` [INFO] [stdout] --> src/class.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 35 | macro_rules! process_field { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `objc::declare::ClassDecl` [INFO] [stdout] --> src/class.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use objc::declare::ClassDecl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Class`, `Object`, and `Sel` [INFO] [stdout] --> src/class.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use objc::runtime::{Class, Object, Sel}; [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ________________________^ [INFO] [stdout] 23 | | (pub width: u32), [INFO] [stdout] 24 | | (priv height: u32), [INFO] [stdout] 25 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 28 | | }), [INFO] [stdout] 29 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `class` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `class` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `class` which comes from the expansion of the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ________________________^ [INFO] [stdout] 23 | | (pub width: u32), [INFO] [stdout] 24 | | (priv height: u32), [INFO] [stdout] 25 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 28 | | }), [INFO] [stdout] 29 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `sel_impl` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `sel_impl` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `sel_impl` which comes from the expansion of the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ________________________^ [INFO] [stdout] 23 | | (pub width: u32), [INFO] [stdout] 24 | | (priv height: u32), [INFO] [stdout] 25 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 28 | | }), [INFO] [stdout] 29 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `sel_impl` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `sel_impl` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `sel_impl` which comes from the expansion of the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ________________________^ [INFO] [stdout] 23 | | (pub width: u32), [INFO] [stdout] 24 | | (priv height: u32), [INFO] [stdout] 25 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 28 | | }), [INFO] [stdout] 29 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `sel_impl` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `sel_impl` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `sel_impl` which comes from the expansion of the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ________________________^ [INFO] [stdout] 23 | | (pub width: u32), [INFO] [stdout] 24 | | (priv height: u32), [INFO] [stdout] 25 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 28 | | }), [INFO] [stdout] 29 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `sel_impl` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `sel_impl` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `sel_impl` which comes from the expansion of the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | let x: i32 = unsafe { msg_send![*obj, getThing:5i32 withOtherThing:6i32] }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `sel_impl` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `sel_impl` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `sel_impl` which comes from the expansion of the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 46 | let obj: *mut Object = msg_send![cls, alloc]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `sel_impl` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `sel_impl` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `sel_impl` which comes from the expansion of the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 47 | let obj: *mut Object = msg_send![obj, init]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `sel_impl` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `sel_impl` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `sel_impl` which comes from the expansion of the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | let hash_sel = sel!(hash); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `sel_impl` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `sel_impl` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `sel_impl` which comes from the expansion of the macro `sel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:64:32 [INFO] [stdout] | [INFO] [stdout] 64 | let hash: usize = unsafe { msg_send![*obj, hash] }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `sel_impl` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `sel_impl` may come from an old version of the `objc` crate, try updating your dependency with `cargo update -p objc` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `sel_impl` which comes from the expansion of the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/main.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | extern "C" fn obj_method(obj: &mut Object, sel: Sel, i1: i32, i2: i32) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sel` [INFO] [stdout] --> src/main.rs:17:48 [INFO] [stdout] | [INFO] [stdout] 17 | extern "C" fn obj_method(obj: &mut Object, sel: Sel, i1: i32, i2: i32) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i1` [INFO] [stdout] --> src/main.rs:17:58 [INFO] [stdout] | [INFO] [stdout] 17 | extern "C" fn obj_method(obj: &mut Object, sel: Sel, i1: i32, i2: i32) -> i32 { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_i1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i2` [INFO] [stdout] --> src/main.rs:17:67 [INFO] [stdout] | [INFO] [stdout] 17 | extern "C" fn obj_method(obj: &mut Object, sel: Sel, i1: i32, i2: i32) -> i32 { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_i2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/main.rs:26:68 [INFO] [stdout] | [INFO] [stdout] 26 | (sel getThing2:(u32)t1 withOtherThing:(u32)t2 -> u32 with |obj, sel| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: `obj` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/class.rs:43:36 [INFO] [stdout] | [INFO] [stdout] 43 | extern "C" fn selector_fun($obj: &mut Object, $sel: Sel, $($sel_local_name:$sel_type),*) -> $ret_type $body [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ________________________- [INFO] [stdout] 23 | | (pub width: u32), [INFO] [stdout] 24 | | (priv height: u32), [INFO] [stdout] 25 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 28 | | }), [INFO] [stdout] 29 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `process_field` which comes from the expansion of the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sel` [INFO] [stdout] --> src/main.rs:26:73 [INFO] [stdout] | [INFO] [stdout] 26 | (sel getThing2:(u32)t1 withOtherThing:(u32)t2 -> u32 with |obj, sel| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: `sel` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/class.rs:43:55 [INFO] [stdout] | [INFO] [stdout] 43 | extern "C" fn selector_fun($obj: &mut Object, $sel: Sel, $($sel_local_name:$sel_type),*) -> $ret_type $body [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ________________________- [INFO] [stdout] 23 | | (pub width: u32), [INFO] [stdout] 24 | | (priv height: u32), [INFO] [stdout] 25 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 28 | | }), [INFO] [stdout] 29 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `process_field` which comes from the expansion of the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t1` [INFO] [stdout] --> src/main.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | (sel getThing2:(u32)t1 withOtherThing:(u32)t2 -> u32 with |obj, sel| { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: `t1` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/class.rs:43:68 [INFO] [stdout] | [INFO] [stdout] 43 | extern "C" fn selector_fun($obj: &mut Object, $sel: Sel, $($sel_local_name:$sel_type),*) -> $ret_type $body [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ________________________- [INFO] [stdout] 23 | | (pub width: u32), [INFO] [stdout] 24 | | (priv height: u32), [INFO] [stdout] 25 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 28 | | }), [INFO] [stdout] 29 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `process_field` which comes from the expansion of the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t2` [INFO] [stdout] --> src/main.rs:26:52 [INFO] [stdout] | [INFO] [stdout] 26 | (sel getThing2:(u32)t1 withOtherThing:(u32)t2 -> u32 with |obj, sel| { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: `t2` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/class.rs:43:68 [INFO] [stdout] | [INFO] [stdout] 43 | extern "C" fn selector_fun($obj: &mut Object, $sel: Sel, $($sel_local_name:$sel_type),*) -> $ret_type $body [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ________________________- [INFO] [stdout] 23 | | (pub width: u32), [INFO] [stdout] 24 | | (priv height: u32), [INFO] [stdout] 25 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 28 | | }), [INFO] [stdout] 29 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `process_field` which comes from the expansion of the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustcOUxbdg/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libobjc-f5df6dd3e5b9a9b0,libmalloc_buf-51218c1ed07f661c,liblibc-3b1aa47335e647f6}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lobjc" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcOUxbdg/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/objc_macros-7ce2ebc34beddd89" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: undefined symbol: object_getClass [INFO] [stdout] >>> referenced by runtime.rs:464 (src/runtime.rs:464) [INFO] [stdout] >>> objc-f5df6dd3e5b9a9b0.objc.1a07b49d033761d2-cgu.0.rcgu.o:(objc::runtime::Object::class::hed5658de28c29b6f) in archive /opt/rustwide/target/debug/deps/libobjc-f5df6dd3e5b9a9b0.rlib [INFO] [stdout] >>> did you mean: object_setClass [INFO] [stdout] >>> defined in: /usr/lib/gcc/x86_64-linux-gnu/13/libobjc.so [INFO] [stdout] [INFO] [stdout] rust-lld: error: undefined symbol: objc_release [INFO] [stdout] >>> referenced by strong.rs:48 (src/rc/strong.rs:48) [INFO] [stdout] >>> objc-f5df6dd3e5b9a9b0.objc.1a07b49d033761d2-cgu.1.rcgu.o:(_$LT$objc..rc..strong..StrongPtr$u20$as$u20$core..ops..drop..Drop$GT$::drop::h63aa614bb9a1cf49) in archive /opt/rustwide/target/debug/deps/libobjc-f5df6dd3e5b9a9b0.rlib [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `objc-macros` (bin "objc-macros") due to 1 previous error; 20 warnings emitted [INFO] running `Command { std: "docker" "inspect" "94b49e17c7650701159e575bcb296e8db43e4ab93de9467e4b388e367e4c0c87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94b49e17c7650701159e575bcb296e8db43e4ab93de9467e4b388e367e4c0c87", kill_on_drop: false }` [INFO] [stdout] 94b49e17c7650701159e575bcb296e8db43e4ab93de9467e4b388e367e4c0c87