[INFO] fetching crate objc-macros 0.1.0... [INFO] checking objc-macros-0.1.0 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate objc-macros 0.1.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate objc-macros 0.1.0 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-0/source/Cargo.toml [INFO] crate crates.io crate objc-macros 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3468e7056cf85cd0a35caf7804a43dddbafe33fef3694166497d05364611fde3 [INFO] running `Command { std: "docker" "start" "-a" "3468e7056cf85cd0a35caf7804a43dddbafe33fef3694166497d05364611fde3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3468e7056cf85cd0a35caf7804a43dddbafe33fef3694166497d05364611fde3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3468e7056cf85cd0a35caf7804a43dddbafe33fef3694166497d05364611fde3", kill_on_drop: false }` [INFO] [stdout] 3468e7056cf85cd0a35caf7804a43dddbafe33fef3694166497d05364611fde3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da1536703e30dbbf17447968dc22e0a9d90b6c4253011f0b71e23d0e206a56e1 [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" "da1536703e30dbbf17447968dc22e0a9d90b6c4253011f0b71e23d0e206a56e1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Checking malloc_buf v0.0.6 [INFO] [stderr] Checking objc v0.2.7 [INFO] [stderr] Checking objc-macros v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/class.rs (8 fixes) [INFO] [stderr] Fixed src/class.rs (2 fixes) [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:87:45 [INFO] [stdout] | [INFO] [stdout] 87 | extern "C" fn obj_method(_obj: &mut Object, _sel: Sel, _i1: i32, _i2: i32) -> i32 { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:87:59 [INFO] [stdout] | [INFO] [stdout] 87 | extern "C" fn obj_method(_obj: &mut Object, _sel: Sel, _i1: i32, _i2: i32) -> i32 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 90 | let my_method: extern "C" fn(&mut Object, Sel, i32, i32) -> i32 = obj_method; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:90:51 [INFO] [stdout] | [INFO] [stdout] 90 | let my_method: extern "C" fn(&mut Object, Sel, i32, i32) -> i32 = obj_method; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ClassDecl` [INFO] [stdout] --> src/class.rs:70:28 [INFO] [stdout] | [INFO] [stdout] 70 | let mut my_class = ClassDecl::new(stringify!($name), superclass).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::declare::ClassDecl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:8:37 [INFO] [stdout] | [INFO] [stdout] 8 | extern "C" fn getter(this: &Object, _cmd: Sel) -> $type { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:8:51 [INFO] [stdout] | [INFO] [stdout] 8 | extern "C" fn getter(this: &Object, _cmd: Sel) -> $type { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | let getter_extern: extern "C" fn(&Object, Sel) -> $type = getter; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:11:51 [INFO] [stdout] | [INFO] [stdout] 11 | let getter_extern: extern "C" fn(&Object, Sel) -> $type = getter; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:15:41 [INFO] [stdout] | [INFO] [stdout] 15 | extern "C" fn setter(this: &mut Object, _cmd: Sel, value: $type) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:15:55 [INFO] [stdout] | [INFO] [stdout] 15 | extern "C" fn setter(this: &mut Object, _cmd: Sel, value: $type) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 20 | let extern_setter: extern "C" fn(&mut Object, Sel, $type) = setter; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:20:55 [INFO] [stdout] | [INFO] [stdout] 20 | let extern_setter: extern "C" fn(&mut Object, Sel, $type) = setter; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:43:47 [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] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:43:61 [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] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:44:53 [INFO] [stdout] | [INFO] [stdout] 44 | let selector_fun_extern: extern "C" fn(&mut Object, Sel, $($sel_type),*) -> $ret_type = selector_fun; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:44:61 [INFO] [stdout] | [INFO] [stdout] 44 | let selector_fun_extern: extern "C" fn(&mut Object, Sel, $($sel_type),*) -> $ret_type = selector_fun; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Class` in this scope [INFO] [stdout] --> src/class.rs:52:43 [INFO] [stdout] | [INFO] [stdout] 52 | extern "C" fn selector_fun($cls: &Class, $sel: Sel, $($sel_local_name:$sel_type),*) -> $ret_type $body [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Class; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:52:56 [INFO] [stdout] | [INFO] [stdout] 52 | extern "C" fn selector_fun($cls: &Class, $sel: Sel, $($sel_local_name:$sel_type),*) -> $ret_type $body [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Class` in this scope [INFO] [stdout] --> src/class.rs:53:49 [INFO] [stdout] | [INFO] [stdout] 53 | let selector_fun_extern: extern "C" fn(&Class, Sel, $($sel_type),*) -> $ret_type = selector_fun; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Class; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:53:56 [INFO] [stdout] | [INFO] [stdout] 53 | let selector_fun_extern: extern "C" fn(&Class, Sel, $($sel_type),*) -> $ret_type = selector_fun; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:104:27 [INFO] [stdout] | [INFO] [stdout] 104 | let obj: *mut Object = msg_send![my_box_class, alloc]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:105:27 [INFO] [stdout] | [INFO] [stdout] 105 | let obj: *mut Object = msg_send![obj, init]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/class.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/class.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | / macro_rules! process_field { [INFO] [stdout] 36 | | ($class_dec:expr, (sel $($sel_name:ident :)* <- $fun_name:expr)) => {{ [INFO] [stdout] 37 | | unsafe { [INFO] [stdout] 38 | | $class_dec.add_method(sel!($($sel_name :)*), $fun_name) [INFO] [stdout] ... | [INFO] [stdout] 61 | | }; [INFO] [stdout] 62 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] error: aborting due to 23 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `objc-macros` due to 24 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:87:45 [INFO] [stdout] | [INFO] [stdout] 87 | extern "C" fn obj_method(_obj: &mut Object, _sel: Sel, _i1: i32, _i2: i32) -> i32 { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Object; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:87:59 [INFO] [stdout] | [INFO] [stdout] 87 | extern "C" fn obj_method(_obj: &mut Object, _sel: Sel, _i1: i32, _i2: i32) -> i32 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Sel; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 90 | let my_method: extern "C" fn(&mut Object, Sel, i32, i32) -> i32 = obj_method; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Object; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:90:51 [INFO] [stdout] | [INFO] [stdout] 90 | let my_method: extern "C" fn(&mut Object, Sel, i32, i32) -> i32 = obj_method; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Sel; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ClassDecl` [INFO] [stdout] --> src/class.rs:70:28 [INFO] [stdout] | [INFO] [stdout] 70 | let mut my_class = ClassDecl::new(stringify!($name), superclass).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `register_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::ClassDecl; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::declare::ClassDecl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:8:37 [INFO] [stdout] | [INFO] [stdout] 8 | extern "C" fn getter(this: &Object, _cmd: Sel) -> $type { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Object; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:8:51 [INFO] [stdout] | [INFO] [stdout] 8 | extern "C" fn getter(this: &Object, _cmd: Sel) -> $type { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Sel; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | let getter_extern: extern "C" fn(&Object, Sel) -> $type = getter; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Object; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:11:51 [INFO] [stdout] | [INFO] [stdout] 11 | let getter_extern: extern "C" fn(&Object, Sel) -> $type = getter; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Sel; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:15:41 [INFO] [stdout] | [INFO] [stdout] 15 | extern "C" fn setter(this: &mut Object, _cmd: Sel, value: $type) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Object; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:15:55 [INFO] [stdout] | [INFO] [stdout] 15 | extern "C" fn setter(this: &mut Object, _cmd: Sel, value: $type) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Sel; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 20 | let extern_setter: extern "C" fn(&mut Object, Sel, $type) = setter; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Object; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:20:55 [INFO] [stdout] | [INFO] [stdout] 20 | let extern_setter: extern "C" fn(&mut Object, Sel, $type) = setter; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `add_pub_ivar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Sel; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:43:47 [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] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Object; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:43:61 [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] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Sel; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:44:53 [INFO] [stdout] | [INFO] [stdout] 44 | let selector_fun_extern: extern "C" fn(&mut Object, Sel, $($sel_type),*) -> $ret_type = selector_fun; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Object; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:44:61 [INFO] [stdout] | [INFO] [stdout] 44 | let selector_fun_extern: extern "C" fn(&mut Object, Sel, $($sel_type),*) -> $ret_type = selector_fun; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Sel; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Class` in this scope [INFO] [stdout] --> src/class.rs:52:43 [INFO] [stdout] | [INFO] [stdout] 52 | extern "C" fn selector_fun($cls: &Class, $sel: Sel, $($sel_local_name:$sel_type),*) -> $ret_type $body [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Class; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Class; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:52:56 [INFO] [stdout] | [INFO] [stdout] 52 | extern "C" fn selector_fun($cls: &Class, $sel: Sel, $($sel_local_name:$sel_type),*) -> $ret_type $body [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Sel; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Class` in this scope [INFO] [stdout] --> src/class.rs:53:49 [INFO] [stdout] | [INFO] [stdout] 53 | let selector_fun_extern: extern "C" fn(&Class, Sel, $($sel_type),*) -> $ret_type = selector_fun; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Class; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Class; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sel` in this scope [INFO] [stdout] --> src/class.rs:53:56 [INFO] [stdout] | [INFO] [stdout] 53 | let selector_fun_extern: extern "C" fn(&Class, Sel, $($sel_type),*) -> $ret_type = selector_fun; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 92 | let my_box_class = register_class!(MyBox:NSObject with { [INFO] [stdout] | ____________________________- [INFO] [stdout] 93 | | (pub width: u32), [INFO] [stdout] 94 | | (priv height: u32), [INFO] [stdout] 95 | | (sel getThing:withOtherThing: <- my_method), [INFO] [stdout] ... | [INFO] [stdout] 101 | | }), [INFO] [stdout] 102 | | }); [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `process_field` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Sel; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Sel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:104:27 [INFO] [stdout] | [INFO] [stdout] 104 | let obj: *mut Object = msg_send![my_box_class, alloc]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Object; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object` in this scope [INFO] [stdout] --> src/class.rs:105:27 [INFO] [stdout] | [INFO] [stdout] 105 | let obj: *mut Object = msg_send![obj, init]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 81 | use crate::Object; [INFO] [stdout] | [INFO] [stdout] 81 | use objc::runtime::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/class.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (8 fixes) [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "da1536703e30dbbf17447968dc22e0a9d90b6c4253011f0b71e23d0e206a56e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da1536703e30dbbf17447968dc22e0a9d90b6c4253011f0b71e23d0e206a56e1", kill_on_drop: false }` [INFO] [stdout] da1536703e30dbbf17447968dc22e0a9d90b6c4253011f0b71e23d0e206a56e1