[INFO] fetching crate rutie 0.9.0... [INFO] checking rutie-0.9.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate rutie 0.9.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate rutie 0.9.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rutie 0.9.0 [INFO] finished tweaking crates.io crate rutie 0.9.0 [INFO] tweaked toml for crates.io crate rutie 0.9.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate crates.io crate rutie 0.9.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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 02887a57365a572638751293cdc2a44c367a539bf926e143bd4cc128409c3679 [INFO] running `Command { std: "docker" "start" "-a" "02887a57365a572638751293cdc2a44c367a539bf926e143bd4cc128409c3679", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02887a57365a572638751293cdc2a44c367a539bf926e143bd4cc128409c3679", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02887a57365a572638751293cdc2a44c367a539bf926e143bd4cc128409c3679", kill_on_drop: false }` [INFO] [stdout] 02887a57365a572638751293cdc2a44c367a539bf926e143bd4cc128409c3679 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92cdc63e974385e596b6420f294c78a5ac25b3ec2fab2c47e83df09f6100257a [INFO] running `Command { std: "docker" "start" "-a" "92cdc63e974385e596b6420f294c78a5ac25b3ec2fab2c47e83df09f6100257a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling rutie v0.9.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rutie` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/class/traits/object.rs [INFO] [stderr] * src/dsl.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:688:71 [INFO] [stderr] | [INFO] [stderr] 688 | (@mark_function_definition $struct_name: ty, mark($object: ident) $body: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:773:6 [INFO] [stderr] | [INFO] [stderr] 773 | ($string_arg:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:776:6 [INFO] [stderr] | [INFO] [stderr] 776 | ($string_arg:expr_2021, $binding_arg:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:776:29 [INFO] [stderr] | [INFO] [stderr] 776 | ($string_arg:expr_2021, $binding_arg:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:783:6 [INFO] [stderr] | [INFO] [stderr] 783 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:783:29 [INFO] [stderr] | [INFO] [stderr] 783 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:783:53 [INFO] [stderr] | [INFO] [stderr] 783 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:791:6 [INFO] [stderr] | [INFO] [stderr] 791 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021, $linenumber:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/class/traits/object.rs:207:74 [INFO] [stdout] | [INFO] [stdout] 207 | fn get_data<'a, T>(&'a self, wrapper: &'a dyn DataTypeWrapper) -> &T { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/class/traits/object.rs:212:82 [INFO] [stdout] | [INFO] [stdout] 212 | fn get_data_mut<'a, T>(&'a mut self, wrapper: &'a dyn DataTypeWrapper) -> &mut T { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:791:29 [INFO] [stderr] | [INFO] [stderr] 791 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021, $linenumber:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:791:53 [INFO] [stderr] | [INFO] [stderr] 791 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021, $linenumber:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:791:74 [INFO] [stderr] | [INFO] [stderr] 791 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021, $linenumber:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/class/traits/object.rs:207:74 [INFO] [stderr] | [INFO] [stderr] 207 | fn get_data<'a, T>(&'a self, wrapper: &'a dyn DataTypeWrapper) -> &T { [INFO] [stderr] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/class/traits/object.rs:212:82 [INFO] [stderr] | [INFO] [stderr] 212 | fn get_data_mut<'a, T>(&'a mut self, wrapper: &'a dyn DataTypeWrapper) -> &mut T { [INFO] [stderr] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stderr] [INFO] [stderr] error: aborting due to 11 previous errors; 2 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/array.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 10 | | // VALUE [INFO] [stdout] 11 | | // rb_ary_concat(VALUE x, VALUE y) [INFO] [stdout] 12 | | pub fn rb_ary_concat(array: Value, other_array: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 57 | | pub fn rb_ary_unshift(array: Value, item: Value) -> Value; [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/class.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_class_new_instance(int argc, const VALUE *argv, VALUE klass) [INFO] [stdout] 6 | | pub fn rb_class_new_instance(argc: Argc, argv: *const Value, klass: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 99 | | pub fn rb_scan_args(argc: Argc, argv: *const Value, fmt: *const c_char, ...) -> c_int; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/encoding.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 20 | | // VALUE [INFO] [stdout] 21 | | // rb_enc_associate(VALUE obj, rb_encoding *enc) [INFO] [stdout] 22 | | pub fn rb_enc_associate(obj: Value, enc: EncodingType) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 99 | | ) -> size_t; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/fixnum.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_int2inum(intptr_t n) [INFO] [stdout] 6 | | pub fn rb_int2inum(num: libc::intptr_t) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 40 | | pub fn rb_num2ull(num: Value) -> libc::c_ulonglong; [INFO] [stdout] 41 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/float.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_float_new(double d) [INFO] [stdout] 6 | | pub fn rb_float_new(num: f64) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub fn rb_to_float(num: Value) -> Value; [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/gc.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // void [INFO] [stdout] 5 | | // rb_gc_adjust_memory_usage(ssize_t diff) [INFO] [stdout] 6 | | pub fn rb_gc_adjust_memory_usage(diff: ssize_t); [INFO] [stdout] ... | [INFO] [stdout] 42 | | pub fn rb_objspace_marked_object_p(obj: Value) -> c_int; [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/hash.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_hash_aref(VALUE hash, VALUE key) [INFO] [stdout] 6 | | pub fn rb_hash_aref(hash: Value, key: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 27 | | pub fn rb_hash_size(hash: Value) -> Value; [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/rproc.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 10 | | // VALUE [INFO] [stdout] 11 | | // rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE passed_procval) [INFO] [stdout] 12 | | pub fn rb_proc_call_with_block( [INFO] [stdout] ... | [INFO] [stdout] 22 | | pub fn rb_obj_is_method(obj: Value) -> Value; [INFO] [stdout] 23 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/string.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 15 | | // VALUE [INFO] [stdout] 16 | | // rb_str_new(const char *ptr, long len) [INFO] [stdout] 17 | | pub fn rb_str_new(str: *const c_char, len: c_long) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 74 | | pub fn rb_str_new_frozen(orig: Value) -> Value; [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/symbol.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_id2sym(ID x) [INFO] [stdout] 6 | | pub fn rb_id2sym(id: Id) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 18 | | pub fn rb_intern2(name: *const c_char, len: c_long) -> Id; [INFO] [stdout] 19 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/thread.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 91 | | // void * [INFO] [stdout] 92 | | // rb_thread_call_without_gvl(void *(*func)(void *data), void *data1, [INFO] [stdout] 93 | | // rb_unblock_function_t *ubf, void *data2) [INFO] [stdout] ... | [INFO] [stdout] 158 | | pub fn rb_thread_interrupted(thread: Value) -> c_int; [INFO] [stdout] 159 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/typed_data.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // void * [INFO] [stdout] 5 | | // rb_check_typeddata(VALUE obj, const rb_data_type_t *data_type) [INFO] [stdout] 6 | | pub fn rb_check_typeddata(object: Value, data_type: *const RbDataType) -> *mut c_void; [INFO] [stdout] ... | [INFO] [stdout] 19 | | ) -> Value; [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/vm.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // void [INFO] [stdout] 5 | | // ruby_init(void) [INFO] [stdout] 6 | | pub fn ruby_init(); [INFO] [stdout] ... | [INFO] [stdout] 80 | | pub fn rb_call_super(argc: Argc, argv: *const Value) -> Value; [INFO] [stdout] 81 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/mod.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 23 | | pub static rb_cObject: Value; [INFO] [stdout] 24 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:688:78 [INFO] [stdout] | [INFO] [stdout] 688 | (@mark_function_definition $struct_name: ty, mark($object: ident) $body: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 688 | (@mark_function_definition $struct_name: ty, mark($object: ident) $body: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:773:18 [INFO] [stdout] | [INFO] [stdout] 773 | ($string_arg:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 773 | ($string_arg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:776:18 [INFO] [stdout] | [INFO] [stdout] 776 | ($string_arg:expr, $binding_arg:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 776 | ($string_arg:expr_2021, $binding_arg:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:776:37 [INFO] [stdout] | [INFO] [stdout] 776 | ($string_arg:expr, $binding_arg:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 776 | ($string_arg:expr, $binding_arg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:783:18 [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr, $binding_arg:expr, $filename:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr_2021, $binding_arg:expr, $filename:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:783:37 [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr, $binding_arg:expr, $filename:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr, $binding_arg:expr_2021, $filename:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:783:53 [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr, $binding_arg:expr, $filename:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr, $binding_arg:expr, $filename:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:791:18 [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr_2021, $binding_arg:expr, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:791:37 [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr_2021, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:791:53 [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr_2021, $linenumber:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:791:71 [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr, $linenumber:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::gc::rb_objspace_marked_object_p` is unsafe and requires unsafe block [INFO] [stdout] --> src/binding/gc.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | let int = gc::rb_objspace_marked_object_p(obj); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/binding/gc.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn is_marked(obj: Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `binding::gc::is_marked` is unsafe and requires unsafe block [INFO] [stdout] --> src/class/gc.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | gc::is_marked(object.value()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/class/gc.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub unsafe fn is_marked(object: &impl Object) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `class::traits::object::Object::send` is unsafe and requires unsafe block [INFO] [stdout] --> src/class/vm.rs:669:9 [INFO] [stdout] | [INFO] [stdout] 669 | Class::from_existing("Process").send("exit!", arguments.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/class/vm.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | pub unsafe fn exit_bang(arguments: &[AnyObject]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | let rarray: *const RArray = mem::transmute(value.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/array.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | pub unsafe fn rb_ary_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let flags = (*rarray).basic.flags; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | (*rarray).as_.heap.len [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:103:30 [INFO] [stdout] | [INFO] [stdout] 103 | let basic: *mut RBasic = mem::transmute(obj.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/encoding.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | pub unsafe fn coderange_set(obj: Value, code_range: InternalValue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | (*basic).flags = ((*basic).flags & !(ENC_CODERANGE_MASK as InternalValue)) | code_range [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:104:23 [INFO] [stdout] | [INFO] [stdout] 104 | (*basic).flags = ((*basic).flags & !(ENC_CODERANGE_MASK as InternalValue)) | code_range [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::encoding::coderange_set` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | coderange_set(obj, 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/encoding.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | pub unsafe fn coderange_clear(obj: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:117:35 [INFO] [stdout] | [INFO] [stdout] 117 | let rstring: *const RString = mem::transmute(value.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | unsafe fn rstring_and_flags(value: Value) -> (*const RString, InternalValue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | let flags = (*rstring).basic.flags; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | let (_rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:127:1 [INFO] [stdout] | [INFO] [stdout] 127 | pub unsafe fn rstring_embed_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | pub unsafe fn rstring_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_embed_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | rstring_embed_len(value) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | (*rstring).as_.heap.len [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | (*rstring).as_.heap.len [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:145:28 [INFO] [stdout] | [INFO] [stdout] 145 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn rstring_ptr(value: Value) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | (*rstring).as_.ary.as_ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | (*rstring).as_.ary.as_ptr() [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | (*rstring).as_.heap.ptr [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | (*rstring).as_.heap.ptr [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:155:28 [INFO] [stdout] | [INFO] [stdout] 155 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub unsafe fn rstring_end(value: Value) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / (*rstring) [INFO] [stdout] 159 | | .as_ [INFO] [stdout] 160 | | .ary [INFO] [stdout] 161 | | .as_ptr() [INFO] [stdout] 162 | | .add(rstring_embed_len(value) as usize) [INFO] [stdout] | |___________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / (*rstring) [INFO] [stdout] 159 | | .as_ [INFO] [stdout] 160 | | .ary [INFO] [stdout] | |________________^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | (*rstring) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_embed_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | .add(rstring_embed_len(value) as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | / (*rstring) [INFO] [stdout] 165 | | .as_ [INFO] [stdout] 166 | | .heap [INFO] [stdout] 167 | | .ptr [INFO] [stdout] 168 | | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | / (*rstring) [INFO] [stdout] 165 | | .as_ [INFO] [stdout] 166 | | .heap [INFO] [stdout] | |_________________^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | (*rstring) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:188:29 [INFO] [stdout] | [INFO] [stdout] 188 | let (_rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | pub unsafe fn is_lockedtmp(value: Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | CStr::from_ptr(str).to_string_lossy().into_owned() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub unsafe fn cstr_to_string(str: *const c_char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | CStr::from_ptr(str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub unsafe fn cstr_to_str<'a>(str: *const c_char) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:107:6 [INFO] [stdout] | [INFO] [stdout] 107 | *Box::from_raw(ptr as *mut R) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn ptr_to_data(ptr: *mut c_void) -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/binding/thread.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | let ptr = if let Some(ubf) = unblock_func { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/binding/thread.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 35 ~ let ptr = match unblock_func { Some(ubf) => { [INFO] [stdout] 36 | thread::rb_thread_call_without_gvl( [INFO] [stdout] ... [INFO] [stdout] 41 | ) [INFO] [stdout] 42 ~ } _ => { [INFO] [stdout] 43 | thread::rb_thread_call_without_gvl( [INFO] [stdout] ... [INFO] [stdout] 48 | ) [INFO] [stdout] 49 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/binding/thread.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | let ptr = if let Some(ubf) = unblock_func { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/binding/thread.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 61 ~ let ptr = match unblock_func { Some(ubf) => { [INFO] [stdout] 62 | thread::rb_thread_call_without_gvl2( [INFO] [stdout] ... [INFO] [stdout] 67 | ) [INFO] [stdout] 68 ~ } _ => { [INFO] [stdout] 69 | thread::rb_thread_call_without_gvl2( [INFO] [stdout] ... [INFO] [stdout] 74 | ) [INFO] [stdout] 75 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/binding/vm.rs:116:22 [INFO] [stdout] | [INFO] [stdout] 116 | let ptr = if let Some(ubf) = unblock_func { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/binding/vm.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 116 ~ let ptr = match unblock_func { Some(ubf) => { [INFO] [stdout] 117 | thread::rb_thread_call_without_gvl( [INFO] [stdout] ... [INFO] [stdout] 122 | ) [INFO] [stdout] 123 ~ } _ => { [INFO] [stdout] 124 | thread::rb_thread_call_without_gvl( [INFO] [stdout] ... [INFO] [stdout] 129 | ) [INFO] [stdout] 130 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/binding/vm.rs:142:22 [INFO] [stdout] | [INFO] [stdout] 142 | let ptr = if let Some(ubf) = unblock_func { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/binding/vm.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 142 ~ let ptr = match unblock_func { Some(ubf) => { [INFO] [stdout] 143 | thread::rb_thread_call_without_gvl2( [INFO] [stdout] ... [INFO] [stdout] 148 | ) [INFO] [stdout] 149 ~ } _ => { [INFO] [stdout] 150 | thread::rb_thread_call_without_gvl2( [INFO] [stdout] ... [INFO] [stdout] 155 | ) [INFO] [stdout] 156 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 70 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating examples/eval.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rutie` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/class/integer.rs [INFO] [stderr] * src/class/traits/object.rs [INFO] [stderr] * src/dsl.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:688:71 [INFO] [stderr] | [INFO] [stderr] 688 | (@mark_function_definition $struct_name: ty, mark($object: ident) $body: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:773:6 [INFO] [stderr] | [INFO] [stderr] 773 | ($string_arg:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:776:6 [INFO] [stderr] | [INFO] [stderr] 776 | ($string_arg:expr_2021, $binding_arg:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:776:29 [INFO] [stderr] | [INFO] [stderr] 776 | ($string_arg:expr_2021, $binding_arg:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:783:6 [INFO] [stderr] | [INFO] [stderr] 783 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:783:29 [INFO] [stderr] | [INFO] [stderr] 783 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:783:53 [INFO] [stdout] warning: unexpected `cfg` condition value: `darwin` [INFO] [stdout] --> src/class/integer.rs:238:11 [INFO] [stdout] | [INFO] [stdout] 238 | #[cfg(target_os = "darwin")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 783 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/class/traits/object.rs:207:74 [INFO] [stdout] | [INFO] [stdout] 207 | fn get_data<'a, T>(&'a self, wrapper: &'a dyn DataTypeWrapper) -> &T { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/dsl.rs:791:6 [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/class/traits/object.rs:212:82 [INFO] [stdout] | [INFO] [stdout] 212 | fn get_data_mut<'a, T>(&'a mut self, wrapper: &'a dyn DataTypeWrapper) -> &mut T { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 791 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021, $linenumber:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:791:29 [INFO] [stderr] | [INFO] [stderr] 791 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021, $linenumber:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:791:53 [INFO] [stderr] | [INFO] [stderr] 791 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021, $linenumber:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dsl.rs:791:74 [INFO] [stderr] | [INFO] [stderr] 791 | ($string_arg:expr_2021, $binding_arg:expr_2021, $filename:expr_2021, $linenumber:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `darwin` [INFO] [stderr] --> src/class/integer.rs:238:11 [INFO] [stderr] | [INFO] [stderr] 238 | #[cfg(target_os = "darwin")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/class/traits/object.rs:207:74 [INFO] [stderr] | [INFO] [stderr] 207 | fn get_data<'a, T>(&'a self, wrapper: &'a dyn DataTypeWrapper) -> &T { [INFO] [stderr] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/class/traits/object.rs:212:82 [INFO] [stderr] | [INFO] [stderr] 212 | fn get_data_mut<'a, T>(&'a mut self, wrapper: &'a dyn DataTypeWrapper) -> &mut T { [INFO] [stderr] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stderr] [INFO] [stderr] error: aborting due to 11 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/array.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 10 | | // VALUE [INFO] [stdout] 11 | | // rb_ary_concat(VALUE x, VALUE y) [INFO] [stdout] 12 | | pub fn rb_ary_concat(array: Value, other_array: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 57 | | pub fn rb_ary_unshift(array: Value, item: Value) -> Value; [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/class.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_class_new_instance(int argc, const VALUE *argv, VALUE klass) [INFO] [stdout] 6 | | pub fn rb_class_new_instance(argc: Argc, argv: *const Value, klass: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 99 | | pub fn rb_scan_args(argc: Argc, argv: *const Value, fmt: *const c_char, ...) -> c_int; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/encoding.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 20 | | // VALUE [INFO] [stdout] 21 | | // rb_enc_associate(VALUE obj, rb_encoding *enc) [INFO] [stdout] 22 | | pub fn rb_enc_associate(obj: Value, enc: EncodingType) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 99 | | ) -> size_t; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/fixnum.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_int2inum(intptr_t n) [INFO] [stdout] 6 | | pub fn rb_int2inum(num: libc::intptr_t) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 40 | | pub fn rb_num2ull(num: Value) -> libc::c_ulonglong; [INFO] [stdout] 41 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/float.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_float_new(double d) [INFO] [stdout] 6 | | pub fn rb_float_new(num: f64) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub fn rb_to_float(num: Value) -> Value; [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/gc.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // void [INFO] [stdout] 5 | | // rb_gc_adjust_memory_usage(ssize_t diff) [INFO] [stdout] 6 | | pub fn rb_gc_adjust_memory_usage(diff: ssize_t); [INFO] [stdout] ... | [INFO] [stdout] 42 | | pub fn rb_objspace_marked_object_p(obj: Value) -> c_int; [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/hash.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_hash_aref(VALUE hash, VALUE key) [INFO] [stdout] 6 | | pub fn rb_hash_aref(hash: Value, key: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 27 | | pub fn rb_hash_size(hash: Value) -> Value; [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/rproc.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 10 | | // VALUE [INFO] [stdout] 11 | | // rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE passed_procval) [INFO] [stdout] 12 | | pub fn rb_proc_call_with_block( [INFO] [stdout] ... | [INFO] [stdout] 22 | | pub fn rb_obj_is_method(obj: Value) -> Value; [INFO] [stdout] 23 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/string.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 15 | | // VALUE [INFO] [stdout] 16 | | // rb_str_new(const char *ptr, long len) [INFO] [stdout] 17 | | pub fn rb_str_new(str: *const c_char, len: c_long) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 74 | | pub fn rb_str_new_frozen(orig: Value) -> Value; [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/symbol.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_id2sym(ID x) [INFO] [stdout] 6 | | pub fn rb_id2sym(id: Id) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 18 | | pub fn rb_intern2(name: *const c_char, len: c_long) -> Id; [INFO] [stdout] 19 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/thread.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 91 | | // void * [INFO] [stdout] 92 | | // rb_thread_call_without_gvl(void *(*func)(void *data), void *data1, [INFO] [stdout] 93 | | // rb_unblock_function_t *ubf, void *data2) [INFO] [stdout] ... | [INFO] [stdout] 158 | | pub fn rb_thread_interrupted(thread: Value) -> c_int; [INFO] [stdout] 159 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/typed_data.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // void * [INFO] [stdout] 5 | | // rb_check_typeddata(VALUE obj, const rb_data_type_t *data_type) [INFO] [stdout] 6 | | pub fn rb_check_typeddata(object: Value, data_type: *const RbDataType) -> *mut c_void; [INFO] [stdout] ... | [INFO] [stdout] 19 | | ) -> Value; [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/vm.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 4 | | // void [INFO] [stdout] 5 | | // ruby_init(void) [INFO] [stdout] 6 | | pub fn ruby_init(); [INFO] [stdout] ... | [INFO] [stdout] 80 | | pub fn rb_call_super(argc: Argc, argv: *const Value) -> Value; [INFO] [stdout] 81 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/rubysys/mod.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 23 | | pub static rb_cObject: Value; [INFO] [stdout] 24 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:688:78 [INFO] [stdout] | [INFO] [stdout] 688 | (@mark_function_definition $struct_name: ty, mark($object: ident) $body: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 688 | (@mark_function_definition $struct_name: ty, mark($object: ident) $body: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:773:18 [INFO] [stdout] | [INFO] [stdout] 773 | ($string_arg:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 773 | ($string_arg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:776:18 [INFO] [stdout] | [INFO] [stdout] 776 | ($string_arg:expr, $binding_arg:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 776 | ($string_arg:expr_2021, $binding_arg:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:776:37 [INFO] [stdout] | [INFO] [stdout] 776 | ($string_arg:expr, $binding_arg:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 776 | ($string_arg:expr, $binding_arg:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:783:18 [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr, $binding_arg:expr, $filename:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr_2021, $binding_arg:expr, $filename:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:783:37 [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr, $binding_arg:expr, $filename:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr, $binding_arg:expr_2021, $filename:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:783:53 [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr, $binding_arg:expr, $filename:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 783 | ($string_arg:expr, $binding_arg:expr, $filename:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:791:18 [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr_2021, $binding_arg:expr, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:791:37 [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr_2021, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:791:53 [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr_2021, $linenumber:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dsl.rs:791:71 [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr, $linenumber:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 791 | ($string_arg:expr, $binding_arg:expr, $filename:expr, $linenumber:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::gc::rb_objspace_marked_object_p` is unsafe and requires unsafe block [INFO] [stdout] --> src/binding/gc.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | let int = gc::rb_objspace_marked_object_p(obj); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/binding/gc.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn is_marked(obj: Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `binding::gc::is_marked` is unsafe and requires unsafe block [INFO] [stdout] --> src/class/gc.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | gc::is_marked(object.value()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/class/gc.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub unsafe fn is_marked(object: &impl Object) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `class::traits::object::Object::send` is unsafe and requires unsafe block [INFO] [stdout] --> src/class/vm.rs:669:9 [INFO] [stdout] | [INFO] [stdout] 669 | Class::from_existing("Process").send("exit!", arguments.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/class/vm.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | pub unsafe fn exit_bang(arguments: &[AnyObject]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | let rarray: *const RArray = mem::transmute(value.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/array.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | pub unsafe fn rb_ary_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let flags = (*rarray).basic.flags; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | (*rarray).as_.heap.len [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:103:30 [INFO] [stdout] | [INFO] [stdout] 103 | let basic: *mut RBasic = mem::transmute(obj.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/encoding.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | pub unsafe fn coderange_set(obj: Value, code_range: InternalValue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | (*basic).flags = ((*basic).flags & !(ENC_CODERANGE_MASK as InternalValue)) | code_range [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:104:23 [INFO] [stdout] | [INFO] [stdout] 104 | (*basic).flags = ((*basic).flags & !(ENC_CODERANGE_MASK as InternalValue)) | code_range [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::encoding::coderange_set` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | coderange_set(obj, 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/encoding.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | pub unsafe fn coderange_clear(obj: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:117:35 [INFO] [stdout] | [INFO] [stdout] 117 | let rstring: *const RString = mem::transmute(value.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | unsafe fn rstring_and_flags(value: Value) -> (*const RString, InternalValue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | let flags = (*rstring).basic.flags; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | let (_rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:127:1 [INFO] [stdout] | [INFO] [stdout] 127 | pub unsafe fn rstring_embed_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | pub unsafe fn rstring_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_embed_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | rstring_embed_len(value) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | (*rstring).as_.heap.len [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | (*rstring).as_.heap.len [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:145:28 [INFO] [stdout] | [INFO] [stdout] 145 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn rstring_ptr(value: Value) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | (*rstring).as_.ary.as_ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | (*rstring).as_.ary.as_ptr() [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | (*rstring).as_.heap.ptr [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | (*rstring).as_.heap.ptr [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:155:28 [INFO] [stdout] | [INFO] [stdout] 155 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub unsafe fn rstring_end(value: Value) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / (*rstring) [INFO] [stdout] 159 | | .as_ [INFO] [stdout] 160 | | .ary [INFO] [stdout] 161 | | .as_ptr() [INFO] [stdout] 162 | | .add(rstring_embed_len(value) as usize) [INFO] [stdout] | |___________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / (*rstring) [INFO] [stdout] 159 | | .as_ [INFO] [stdout] 160 | | .ary [INFO] [stdout] | |________________^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | (*rstring) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_embed_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | .add(rstring_embed_len(value) as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | / (*rstring) [INFO] [stdout] 165 | | .as_ [INFO] [stdout] 166 | | .heap [INFO] [stdout] 167 | | .ptr [INFO] [stdout] 168 | | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | / (*rstring) [INFO] [stdout] 165 | | .as_ [INFO] [stdout] 166 | | .heap [INFO] [stdout] | |_________________^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | (*rstring) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:188:29 [INFO] [stdout] | [INFO] [stdout] 188 | let (_rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | pub unsafe fn is_lockedtmp(value: Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | CStr::from_ptr(str).to_string_lossy().into_owned() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub unsafe fn cstr_to_string(str: *const c_char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | CStr::from_ptr(str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub unsafe fn cstr_to_str<'a>(str: *const c_char) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:107:6 [INFO] [stdout] | [INFO] [stdout] 107 | *Box::from_raw(ptr as *mut R) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn ptr_to_data(ptr: *mut c_void) -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/binding/thread.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | let ptr = if let Some(ubf) = unblock_func { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/binding/thread.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 35 ~ let ptr = match unblock_func { Some(ubf) => { [INFO] [stdout] 36 | thread::rb_thread_call_without_gvl( [INFO] [stdout] ... [INFO] [stdout] 41 | ) [INFO] [stdout] 42 ~ } _ => { [INFO] [stdout] 43 | thread::rb_thread_call_without_gvl( [INFO] [stdout] ... [INFO] [stdout] 48 | ) [INFO] [stdout] 49 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/binding/thread.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | let ptr = if let Some(ubf) = unblock_func { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/binding/thread.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 61 ~ let ptr = match unblock_func { Some(ubf) => { [INFO] [stdout] 62 | thread::rb_thread_call_without_gvl2( [INFO] [stdout] ... [INFO] [stdout] 67 | ) [INFO] [stdout] 68 ~ } _ => { [INFO] [stdout] 69 | thread::rb_thread_call_without_gvl2( [INFO] [stdout] ... [INFO] [stdout] 74 | ) [INFO] [stdout] 75 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/binding/vm.rs:116:22 [INFO] [stdout] | [INFO] [stdout] 116 | let ptr = if let Some(ubf) = unblock_func { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/binding/vm.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 116 ~ let ptr = match unblock_func { Some(ubf) => { [INFO] [stdout] 117 | thread::rb_thread_call_without_gvl( [INFO] [stdout] ... [INFO] [stdout] 122 | ) [INFO] [stdout] 123 ~ } _ => { [INFO] [stdout] 124 | thread::rb_thread_call_without_gvl( [INFO] [stdout] ... [INFO] [stdout] 129 | ) [INFO] [stdout] 130 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/binding/vm.rs:142:22 [INFO] [stdout] | [INFO] [stdout] 142 | let ptr = if let Some(ubf) = unblock_func { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/binding/vm.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 142 ~ let ptr = match unblock_func { Some(ubf) => { [INFO] [stdout] 143 | thread::rb_thread_call_without_gvl2( [INFO] [stdout] ... [INFO] [stdout] 148 | ) [INFO] [stdout] 149 ~ } _ => { [INFO] [stdout] 150 | thread::rb_thread_call_without_gvl2( [INFO] [stdout] ... [INFO] [stdout] 155 | ) [INFO] [stdout] 156 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 71 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.68s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling rutie v0.9.0 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/array.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / extern "C" { [INFO] [stdout] 10 | | // VALUE [INFO] [stdout] 11 | | // rb_ary_concat(VALUE x, VALUE y) [INFO] [stdout] 12 | | pub fn rb_ary_concat(array: Value, other_array: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 57 | | pub fn rb_ary_unshift(array: Value, item: Value) -> Value; [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/class.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_class_new_instance(int argc, const VALUE *argv, VALUE klass) [INFO] [stdout] 6 | | pub fn rb_class_new_instance(argc: Argc, argv: *const Value, klass: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 99 | | pub fn rb_scan_args(argc: Argc, argv: *const Value, fmt: *const c_char, ...) -> c_int; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/encoding.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / extern "C" { [INFO] [stdout] 20 | | // VALUE [INFO] [stdout] 21 | | // rb_enc_associate(VALUE obj, rb_encoding *enc) [INFO] [stdout] 22 | | pub fn rb_enc_associate(obj: Value, enc: EncodingType) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 99 | | ) -> size_t; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/fixnum.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_int2inum(intptr_t n) [INFO] [stdout] 6 | | pub fn rb_int2inum(num: libc::intptr_t) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 40 | | pub fn rb_num2ull(num: Value) -> libc::c_ulonglong; [INFO] [stdout] 41 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/float.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_float_new(double d) [INFO] [stdout] 6 | | pub fn rb_float_new(num: f64) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub fn rb_to_float(num: Value) -> Value; [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/gc.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // void [INFO] [stdout] 5 | | // rb_gc_adjust_memory_usage(ssize_t diff) [INFO] [stdout] 6 | | pub fn rb_gc_adjust_memory_usage(diff: ssize_t); [INFO] [stdout] ... | [INFO] [stdout] 42 | | pub fn rb_objspace_marked_object_p(obj: Value) -> c_int; [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/hash.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_hash_aref(VALUE hash, VALUE key) [INFO] [stdout] 6 | | pub fn rb_hash_aref(hash: Value, key: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 27 | | pub fn rb_hash_size(hash: Value) -> Value; [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/rproc.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / extern "C" { [INFO] [stdout] 10 | | // VALUE [INFO] [stdout] 11 | | // rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE passed_procval) [INFO] [stdout] 12 | | pub fn rb_proc_call_with_block( [INFO] [stdout] ... | [INFO] [stdout] 22 | | pub fn rb_obj_is_method(obj: Value) -> Value; [INFO] [stdout] 23 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/string.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / extern "C" { [INFO] [stdout] 15 | | // VALUE [INFO] [stdout] 16 | | // rb_str_new(const char *ptr, long len) [INFO] [stdout] 17 | | pub fn rb_str_new(str: *const c_char, len: c_long) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 74 | | pub fn rb_str_new_frozen(orig: Value) -> Value; [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/symbol.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_id2sym(ID x) [INFO] [stdout] 6 | | pub fn rb_id2sym(id: Id) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 18 | | pub fn rb_intern2(name: *const c_char, len: c_long) -> Id; [INFO] [stdout] 19 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/thread.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | / extern "C" { [INFO] [stdout] 91 | | // void * [INFO] [stdout] 92 | | // rb_thread_call_without_gvl(void *(*func)(void *data), void *data1, [INFO] [stdout] 93 | | // rb_unblock_function_t *ubf, void *data2) [INFO] [stdout] ... | [INFO] [stdout] 158 | | pub fn rb_thread_interrupted(thread: Value) -> c_int; [INFO] [stdout] 159 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/typed_data.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // void * [INFO] [stdout] 5 | | // rb_check_typeddata(VALUE obj, const rb_data_type_t *data_type) [INFO] [stdout] 6 | | pub fn rb_check_typeddata(object: Value, data_type: *const RbDataType) -> *mut c_void; [INFO] [stdout] ... | [INFO] [stdout] 19 | | ) -> Value; [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/vm.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // void [INFO] [stdout] 5 | | // ruby_init(void) [INFO] [stdout] 6 | | pub fn ruby_init(); [INFO] [stdout] ... | [INFO] [stdout] 80 | | pub fn rb_call_super(argc: Argc, argv: *const Value) -> Value; [INFO] [stdout] 81 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/mod.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / extern "C" { [INFO] [stdout] 23 | | pub static rb_cObject: Value; [INFO] [stdout] 24 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/array.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / extern "C" { [INFO] [stdout] 10 | | // VALUE [INFO] [stdout] 11 | | // rb_ary_concat(VALUE x, VALUE y) [INFO] [stdout] 12 | | pub fn rb_ary_concat(array: Value, other_array: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 57 | | pub fn rb_ary_unshift(array: Value, item: Value) -> Value; [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/class.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_class_new_instance(int argc, const VALUE *argv, VALUE klass) [INFO] [stdout] 6 | | pub fn rb_class_new_instance(argc: Argc, argv: *const Value, klass: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 99 | | pub fn rb_scan_args(argc: Argc, argv: *const Value, fmt: *const c_char, ...) -> c_int; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/encoding.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / extern "C" { [INFO] [stdout] 20 | | // VALUE [INFO] [stdout] 21 | | // rb_enc_associate(VALUE obj, rb_encoding *enc) [INFO] [stdout] 22 | | pub fn rb_enc_associate(obj: Value, enc: EncodingType) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 99 | | ) -> size_t; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/fixnum.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_int2inum(intptr_t n) [INFO] [stdout] 6 | | pub fn rb_int2inum(num: libc::intptr_t) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 40 | | pub fn rb_num2ull(num: Value) -> libc::c_ulonglong; [INFO] [stdout] 41 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/float.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_float_new(double d) [INFO] [stdout] 6 | | pub fn rb_float_new(num: f64) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub fn rb_to_float(num: Value) -> Value; [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/gc.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // void [INFO] [stdout] 5 | | // rb_gc_adjust_memory_usage(ssize_t diff) [INFO] [stdout] 6 | | pub fn rb_gc_adjust_memory_usage(diff: ssize_t); [INFO] [stdout] ... | [INFO] [stdout] 42 | | pub fn rb_objspace_marked_object_p(obj: Value) -> c_int; [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/hash.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_hash_aref(VALUE hash, VALUE key) [INFO] [stdout] 6 | | pub fn rb_hash_aref(hash: Value, key: Value) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 27 | | pub fn rb_hash_size(hash: Value) -> Value; [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/rproc.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / extern "C" { [INFO] [stdout] 10 | | // VALUE [INFO] [stdout] 11 | | // rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE passed_procval) [INFO] [stdout] 12 | | pub fn rb_proc_call_with_block( [INFO] [stdout] ... | [INFO] [stdout] 22 | | pub fn rb_obj_is_method(obj: Value) -> Value; [INFO] [stdout] 23 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/string.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / extern "C" { [INFO] [stdout] 15 | | // VALUE [INFO] [stdout] 16 | | // rb_str_new(const char *ptr, long len) [INFO] [stdout] 17 | | pub fn rb_str_new(str: *const c_char, len: c_long) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 74 | | pub fn rb_str_new_frozen(orig: Value) -> Value; [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/symbol.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // VALUE [INFO] [stdout] 5 | | // rb_id2sym(ID x) [INFO] [stdout] 6 | | pub fn rb_id2sym(id: Id) -> Value; [INFO] [stdout] ... | [INFO] [stdout] 18 | | pub fn rb_intern2(name: *const c_char, len: c_long) -> Id; [INFO] [stdout] 19 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/thread.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | / extern "C" { [INFO] [stdout] 91 | | // void * [INFO] [stdout] 92 | | // rb_thread_call_without_gvl(void *(*func)(void *data), void *data1, [INFO] [stdout] 93 | | // rb_unblock_function_t *ubf, void *data2) [INFO] [stdout] ... | [INFO] [stdout] 158 | | pub fn rb_thread_interrupted(thread: Value) -> c_int; [INFO] [stdout] 159 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/typed_data.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // void * [INFO] [stdout] 5 | | // rb_check_typeddata(VALUE obj, const rb_data_type_t *data_type) [INFO] [stdout] 6 | | pub fn rb_check_typeddata(object: Value, data_type: *const RbDataType) -> *mut c_void; [INFO] [stdout] ... | [INFO] [stdout] 19 | | ) -> Value; [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/vm.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / extern "C" { [INFO] [stdout] 4 | | // void [INFO] [stdout] 5 | | // ruby_init(void) [INFO] [stdout] 6 | | pub fn ruby_init(); [INFO] [stdout] ... | [INFO] [stdout] 80 | | pub fn rb_call_super(argc: Argc, argv: *const Value) -> Value; [INFO] [stdout] 81 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/rubysys/mod.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / extern "C" { [INFO] [stdout] 23 | | pub static rb_cObject: Value; [INFO] [stdout] 24 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/class/traits/object.rs:207:74 [INFO] [stdout] | [INFO] [stdout] 207 | fn get_data<'a, T>(&'a self, wrapper: &'a dyn DataTypeWrapper) -> &T { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/class/traits/object.rs:212:82 [INFO] [stdout] | [INFO] [stdout] 212 | fn get_data_mut<'a, T>(&'a mut self, wrapper: &'a dyn DataTypeWrapper) -> &mut T { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `darwin` [INFO] [stdout] --> src/class/integer.rs:238:11 [INFO] [stdout] | [INFO] [stdout] 238 | #[cfg(target_os = "darwin")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, and `vxworks` and 5 more [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/class/traits/object.rs:207:74 [INFO] [stdout] | [INFO] [stdout] 207 | fn get_data<'a, T>(&'a self, wrapper: &'a dyn DataTypeWrapper) -> &T { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/class/traits/object.rs:212:82 [INFO] [stdout] | [INFO] [stdout] 212 | fn get_data_mut<'a, T>(&'a mut self, wrapper: &'a dyn DataTypeWrapper) -> &mut T { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::gc::rb_objspace_marked_object_p` is unsafe and requires unsafe block [INFO] [stdout] --> src/binding/gc.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | let int = gc::rb_objspace_marked_object_p(obj); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/binding/gc.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn is_marked(obj: Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::gc::rb_objspace_marked_object_p` is unsafe and requires unsafe block [INFO] [stdout] --> src/binding/gc.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | let int = gc::rb_objspace_marked_object_p(obj); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/binding/gc.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn is_marked(obj: Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `binding::gc::is_marked` is unsafe and requires unsafe block [INFO] [stdout] --> src/class/gc.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | gc::is_marked(object.value()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/class/gc.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub unsafe fn is_marked(object: &impl Object) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `binding::gc::is_marked` is unsafe and requires unsafe block [INFO] [stdout] --> src/class/gc.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | gc::is_marked(object.value()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/class/gc.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub unsafe fn is_marked(object: &impl Object) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `class::traits::object::Object::send` is unsafe and requires unsafe block [INFO] [stdout] --> src/class/vm.rs:669:9 [INFO] [stdout] | [INFO] [stdout] 669 | Class::from_existing("Process").send("exit!", arguments.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/class/vm.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | pub unsafe fn exit_bang(arguments: &[AnyObject]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `class::traits::object::Object::send` is unsafe and requires unsafe block [INFO] [stdout] --> src/class/vm.rs:669:9 [INFO] [stdout] | [INFO] [stdout] 669 | Class::from_existing("Process").send("exit!", arguments.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/class/vm.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | pub unsafe fn exit_bang(arguments: &[AnyObject]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | let rarray: *const RArray = mem::transmute(value.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/array.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | pub unsafe fn rb_ary_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let flags = (*rarray).basic.flags; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | (*rarray).as_.heap.len [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:103:30 [INFO] [stdout] | [INFO] [stdout] 103 | let basic: *mut RBasic = mem::transmute(obj.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/encoding.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | pub unsafe fn coderange_set(obj: Value, code_range: InternalValue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | (*basic).flags = ((*basic).flags & !(ENC_CODERANGE_MASK as InternalValue)) | code_range [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:104:23 [INFO] [stdout] | [INFO] [stdout] 104 | (*basic).flags = ((*basic).flags & !(ENC_CODERANGE_MASK as InternalValue)) | code_range [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::encoding::coderange_set` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | coderange_set(obj, 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/encoding.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | pub unsafe fn coderange_clear(obj: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | let rarray: *const RArray = mem::transmute(value.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/array.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | pub unsafe fn rb_ary_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let flags = (*rarray).basic.flags; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/array.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | (*rarray).as_.heap.len [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:103:30 [INFO] [stdout] | [INFO] [stdout] 103 | let basic: *mut RBasic = mem::transmute(obj.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/encoding.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | pub unsafe fn coderange_set(obj: Value, code_range: InternalValue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | (*basic).flags = ((*basic).flags & !(ENC_CODERANGE_MASK as InternalValue)) | code_range [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:104:23 [INFO] [stdout] | [INFO] [stdout] 104 | (*basic).flags = ((*basic).flags & !(ENC_CODERANGE_MASK as InternalValue)) | code_range [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::encoding::coderange_set` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/encoding.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | coderange_set(obj, 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/encoding.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | pub unsafe fn coderange_clear(obj: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:117:35 [INFO] [stdout] | [INFO] [stdout] 117 | let rstring: *const RString = mem::transmute(value.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | unsafe fn rstring_and_flags(value: Value) -> (*const RString, InternalValue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | let flags = (*rstring).basic.flags; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | let (_rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:127:1 [INFO] [stdout] | [INFO] [stdout] 127 | pub unsafe fn rstring_embed_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | pub unsafe fn rstring_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_embed_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | rstring_embed_len(value) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | (*rstring).as_.heap.len [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | (*rstring).as_.heap.len [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:145:28 [INFO] [stdout] | [INFO] [stdout] 145 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn rstring_ptr(value: Value) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | (*rstring).as_.ary.as_ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | (*rstring).as_.ary.as_ptr() [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | (*rstring).as_.heap.ptr [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | (*rstring).as_.heap.ptr [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:117:35 [INFO] [stdout] | [INFO] [stdout] 117 | let rstring: *const RString = mem::transmute(value.value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | unsafe fn rstring_and_flags(value: Value) -> (*const RString, InternalValue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:155:28 [INFO] [stdout] | [INFO] [stdout] 155 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub unsafe fn rstring_end(value: Value) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | let flags = (*rstring).basic.flags; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | let (_rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:127:1 [INFO] [stdout] | [INFO] [stdout] 127 | pub unsafe fn rstring_embed_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / (*rstring) [INFO] [stdout] 159 | | .as_ [INFO] [stdout] 160 | | .ary [INFO] [stdout] 161 | | .as_ptr() [INFO] [stdout] 162 | | .add(rstring_embed_len(value) as usize) [INFO] [stdout] | |___________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / (*rstring) [INFO] [stdout] 159 | | .as_ [INFO] [stdout] 160 | | .ary [INFO] [stdout] | |________________^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | (*rstring) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_embed_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | .add(rstring_embed_len(value) as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | / (*rstring) [INFO] [stdout] 165 | | .as_ [INFO] [stdout] 166 | | .heap [INFO] [stdout] 167 | | .ptr [INFO] [stdout] 168 | | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | pub unsafe fn rstring_len(value: Value) -> c_long { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | / (*rstring) [INFO] [stdout] 165 | | .as_ [INFO] [stdout] 166 | | .heap [INFO] [stdout] | |_________________^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | (*rstring) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_embed_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | rstring_embed_len(value) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | (*rstring).as_.heap.len [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | (*rstring).as_.heap.len [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:188:29 [INFO] [stdout] | [INFO] [stdout] 188 | let (_rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | pub unsafe fn is_lockedtmp(value: Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:145:28 [INFO] [stdout] | [INFO] [stdout] 145 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn rstring_ptr(value: Value) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | (*rstring).as_.ary.as_ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | (*rstring).as_.ary.as_ptr() [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | (*rstring).as_.heap.ptr [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | (*rstring).as_.heap.ptr [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:155:28 [INFO] [stdout] | [INFO] [stdout] 155 | let (rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub unsafe fn rstring_end(value: Value) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::embed_check` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | if embed_check(flags) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / (*rstring) [INFO] [stdout] 159 | | .as_ [INFO] [stdout] 160 | | .ary [INFO] [stdout] 161 | | .as_ptr() [INFO] [stdout] 162 | | .add(rstring_embed_len(value) as usize) [INFO] [stdout] | |___________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / (*rstring) [INFO] [stdout] 159 | | .as_ [INFO] [stdout] 160 | | .ary [INFO] [stdout] | |________________^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | (*rstring) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_embed_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | .add(rstring_embed_len(value) as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | / (*rstring) [INFO] [stdout] 165 | | .as_ [INFO] [stdout] 166 | | .heap [INFO] [stdout] 167 | | .ptr [INFO] [stdout] 168 | | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | |__________________________________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | / (*rstring) [INFO] [stdout] 165 | | .as_ [INFO] [stdout] 166 | | .heap [INFO] [stdout] | |_________________^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | (*rstring) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 168 | .add((*rstring).as_.heap.len as usize) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `rubysys::string::rstring_and_flags` is unsafe and requires unsafe block [INFO] [stdout] --> src/rubysys/string.rs:188:29 [INFO] [stdout] | [INFO] [stdout] 188 | let (_rstring, flags) = rstring_and_flags(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/rubysys/string.rs:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | pub unsafe fn is_lockedtmp(value: Value) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | CStr::from_ptr(str).to_string_lossy().into_owned() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub unsafe fn cstr_to_string(str: *const c_char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | CStr::from_ptr(str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub unsafe fn cstr_to_str<'a>(str: *const c_char) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | CStr::from_ptr(str).to_string_lossy().into_owned() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub unsafe fn cstr_to_string(str: *const c_char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | CStr::from_ptr(str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub unsafe fn cstr_to_str<'a>(str: *const c_char) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:107:6 [INFO] [stdout] | [INFO] [stdout] 107 | *Box::from_raw(ptr as *mut R) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn ptr_to_data(ptr: *mut c_void) -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/util.rs:107:6 [INFO] [stdout] | [INFO] [stdout] 107 | *Box::from_raw(ptr as *mut R) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/util.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn ptr_to_data(ptr: *mut c_void) -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rutie` (lib test) due to 15 previous errors; 42 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rutie` (lib) due to 15 previous errors; 41 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "92cdc63e974385e596b6420f294c78a5ac25b3ec2fab2c47e83df09f6100257a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92cdc63e974385e596b6420f294c78a5ac25b3ec2fab2c47e83df09f6100257a", kill_on_drop: false }` [INFO] [stdout] 92cdc63e974385e596b6420f294c78a5ac25b3ec2fab2c47e83df09f6100257a