[INFO] fetching crate slicec 0.3.2... [INFO] checking slicec-0.3.2 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate slicec 0.3.2 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate slicec 0.3.2 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 slicec 0.3.2 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate slicec 0.3.2 [INFO] tweaked toml for crates.io crate slicec 0.3.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate crates.io crate slicec 0.3.2 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] dcaa08048f82f99c41efec8fdde1fa9e2e840a3923089e0c3ade6aab3d92fca0 [INFO] running `Command { std: "docker" "start" "-a" "dcaa08048f82f99c41efec8fdde1fa9e2e840a3923089e0c3ade6aab3d92fca0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dcaa08048f82f99c41efec8fdde1fa9e2e840a3923089e0c3ade6aab3d92fca0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcaa08048f82f99c41efec8fdde1fa9e2e840a3923089e0c3ade6aab3d92fca0", kill_on_drop: false }` [INFO] [stdout] dcaa08048f82f99c41efec8fdde1fa9e2e840a3923089e0c3ade6aab3d92fca0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 78e9b748c7a45d2d326d77b0d2e7b7baf8d97b9db8d53c12b6697ffa31a75f71 [INFO] running `Command { std: "docker" "start" "-a" "78e9b748c7a45d2d326d77b0d2e7b7baf8d97b9db8d53c12b6697ffa31a75f71", 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.158 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Compiling unicode-xid v0.2.5 [INFO] [stderr] Compiling lalrpop-util v0.20.2 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Checking clap_lex v0.5.1 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking in_definite v1.0.0 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Checking clap_builder v4.3.20 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling test-case-core v3.3.1 [INFO] [stderr] Compiling lalrpop v0.20.2 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling clap_derive v4.3.12 [INFO] [stderr] Compiling test-case-macros v3.3.1 [INFO] [stderr] Checking test-case v3.3.1 [INFO] [stderr] Checking clap v4.3.20 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Compiling slicec v0.3.2 (/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 `slicec` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/diagnostics/mod.rs [INFO] [stderr] * src/parsers/comments/grammar.rs [INFO] [stderr] * src/parsers/slice/grammar.rs [INFO] [stderr] * src/patchers/comment_link_patcher.rs [INFO] [stderr] * src/utils/ptr_util.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/diagnostics/mod.rs:24:28 [INFO] [stderr] | [INFO] [stderr] 24 | (Lint, $(($kind:ident, $message:expr_2021 $(, $variant:ident)* )),*) => { [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/diagnostics/mod.rs:51:44 [INFO] [stderr] | [INFO] [stderr] 51 | (Error, $(($code:literal, $kind:ident, $message:expr_2021 $(, $variant:ident)* )),*) => { [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/utils/ptr_util.rs:172:6 [INFO] [stderr] | [INFO] [stderr] 172 | ($owned:expr_2021, $new_type:ty) => { [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/utils/ptr_util.rs:179:6 [INFO] [stderr] | [INFO] [stderr] 179 | ($owned:expr_2021, $new_type:ty) => {{ [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/utils/ptr_util.rs:187:6 [INFO] [stderr] | [INFO] [stderr] 187 | ($weak:expr_2021, $new_type:ty) => {{ [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/parsers/comments/grammar.rs:22:36 [INFO] [stderr] | [INFO] [stderr] 22 | ($comment:ident, $field:ident, $block: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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/diagnostics/mod.rs:24:37 [INFO] [stdout] | [INFO] [stdout] 24 | (Lint, $(($kind:ident, $message:expr $(, $variant:ident)* )),*) => { [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] 24 | (Lint, $(($kind:ident, $message:expr_2021 $(, $variant:ident)* )),*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/diagnostics/mod.rs:51:53 [INFO] [stdout] | [INFO] [stdout] 51 | (Error, $(($code:literal, $kind:ident, $message:expr $(, $variant:ident)* )),*) => { [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] 51 | (Error, $(($code:literal, $kind:ident, $message:expr_2021 $(, $variant:ident)* )),*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/parsers/slice/grammar.rs:32:6 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/utils/ptr_util.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | ($owned:expr, $new_type:ty) => { [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] 172 | ($owned:expr_2021, $new_type:ty) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/utils/ptr_util.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | ($owned:expr, $new_type:ty) => {{ [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] 179 | ($owned:expr_2021, $new_type:ty) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 32 | ($parent_ptr:expr_2021, $weak_parent_ptr:expr_2021, $children:ident, $parser:expr_2021) => {{ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/utils/ptr_util.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | ($weak:expr, $new_type:ty) => {{ [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] 187 | ($weak:expr_2021, $new_type:ty) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/comments/grammar.rs:22:43 [INFO] [stdout] | [INFO] [stdout] 22 | ($comment:ident, $field:ident, $block: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] 22 | ($comment:ident, $field:ident, $block:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | ($parent_ptr:expr, $weak_parent_ptr:expr, $children:ident, $parser: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] 32 | ($parent_ptr:expr_2021, $weak_parent_ptr:expr, $children:ident, $parser:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | ($parent_ptr:expr, $weak_parent_ptr:expr, $children:ident, $parser: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] 32 | ($parent_ptr:expr, $weak_parent_ptr:expr_2021, $children:ident, $parser:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:32:72 [INFO] [stdout] | [INFO] [stdout] 32 | ($parent_ptr:expr, $weak_parent_ptr:expr, $children:ident, $parser: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] 32 | ($parent_ptr:expr, $weak_parent_ptr:expr, $children:ident, $parser:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | ($parent_ptr:expr, $children:ident, $parser: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] 44 | ($parent_ptr:expr_2021, $children:ident, $parser:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | ($parent_ptr:expr, $children:ident, $parser: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] 44 | ($parent_ptr:expr, $children:ident, $parser:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | ($parent_ptr:expr, $children:ident, $parser: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] 50 | ($parent_ptr:expr_2021, $children:ident, $parser:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/parsers/slice/grammar.rs:32:29 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:50:49 [INFO] [stdout] | [INFO] [stdout] 50 | ($parent_ptr:expr, $children:ident, $parser: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] 50 | ($parent_ptr:expr, $children:ident, $parser:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | ($self:ident, $tag: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] 12 | ($self:ident, $tag:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 32 | ($parent_ptr:expr_2021, $weak_parent_ptr:expr_2021, $children:ident, $parser:expr_2021) => {{ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | ($element_ptr:expr, $patcher: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] 21 | ($element_ptr:expr_2021, $patcher:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:21:34 [INFO] [stdout] | [INFO] [stdout] 21 | ($element_ptr:expr, $patcher: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] 21 | ($element_ptr:expr, $patcher:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/compilation_state.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | function(self); [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/compilation_state.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub unsafe fn apply_unsafe(&mut self, function: unsafe fn(&mut Self)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 53 | Node::Struct(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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/patchers/comment_link_patcher.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 54 | Node::Class(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [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/parsers/slice/grammar.rs:32:74 [INFO] [stderr] | [INFO] [stderr] 32 | ($parent_ptr:expr_2021, $weak_parent_ptr:expr_2021, $children:ident, $parser: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/parsers/slice/grammar.rs:44:6 [INFO] [stderr] | [INFO] [stderr] 44 | ($parent_ptr:expr_2021, $children:ident, $parser:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 55 | Node::Exception(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 56 | Node::Field(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [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] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 57 | Node::Interface(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/parsers/slice/grammar.rs:44:46 [INFO] [stderr] | [INFO] [stderr] 44 | ($parent_ptr:expr_2021, $children:ident, $parser: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/parsers/slice/grammar.rs:50:6 [INFO] [stderr] | [INFO] [stderr] 50 | ($parent_ptr:expr_2021, $children:ident, $parser: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] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 58 | Node::Operation(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/parsers/slice/grammar.rs:50:46 [INFO] [stderr] | [INFO] [stderr] 50 | ($parent_ptr:expr_2021, $children:ident, $parser: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] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 59 | Node::Enum(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 60 | Node::Enumerator(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 61 | Node::CustomType(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/patchers/comment_link_patcher.rs:12:19 [INFO] [stderr] | [INFO] [stderr] 12 | ($self:ident, $tag: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/patchers/comment_link_patcher.rs:21:6 [INFO] [stderr] | [INFO] [stderr] 21 | ($element_ptr:expr_2021, $patcher: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/patchers/comment_link_patcher.rs:21:30 [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 62 | Node::TypeAlias(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 21 | ($element_ptr:expr_2021, $patcher: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: aborting due to 16 previous errors [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[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | struct_ptr.borrow_mut().supported_encodings = Some(encodings); [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/patchers/encoding_patcher.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | class_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | exception_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | interface_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | enum_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | custom_type_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | type_alias_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `patchers::type_ref_patcher::TypeRefPatcher::<'_>::apply_patches` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | patcher.apply_patches(&mut compilation_state.ast); [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/patchers/type_ref_patcher.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:110:42 [INFO] [stdout] | [INFO] [stdout] 110 | let base_class_ref = class_ptr.borrow_mut().base.as_mut().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/patchers/type_ref_patcher.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe fn apply_patches(self, ast: &mut Ast) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:115:46 [INFO] [stdout] | [INFO] [stdout] 115 | let base_exception_ref = exception_ptr.borrow_mut().base.as_mut().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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:126:55 [INFO] [stdout] | [INFO] [stdout] 126 | let base_interface_ref = &mut interface_ptr.borrow_mut().bases[j]; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:132:47 [INFO] [stdout] | [INFO] [stdout] 132 | let field_type_ref = &mut field_ptr.borrow_mut().data_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:137:51 [INFO] [stdout] | [INFO] [stdout] 137 | let parameter_type_ref = &mut parameter_ptr.borrow_mut().data_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:142:56 [INFO] [stdout] | [INFO] [stdout] 142 | let exception_specification = &mut operation_ptr.borrow_mut().exception_specification; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:155:52 [INFO] [stdout] | [INFO] [stdout] 155 | let enum_underlying_type_ref = enum_ptr.borrow_mut().underlying.as_mut().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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:160:63 [INFO] [stdout] | [INFO] [stdout] 160 | let type_alias_underlying_type_ref = &mut type_alias_ptr.borrow_mut().underlying; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | result_ptr.borrow_mut().success_type.patch(success_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:169:25 [INFO] [stdout] | [INFO] [stdout] 169 | result_ptr.borrow_mut().failure_type.patch(failure_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:174:49 [INFO] [stdout] | [INFO] [stdout] 174 | let element_type_ref = &mut sequence_ptr.borrow_mut().element_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | dictionary_ptr.borrow_mut().key_type.patch(key_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | dictionary_ptr.borrow_mut().value_type.patch(value_type_ptr, attributes); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | compilation_state.apply_unsafe(attribute_patcher); [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/patchers/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | compilation_state.apply_unsafe(type_ref_patcher::patch_ast); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | compilation_state.apply_unsafe(encoding_patcher::patch_ast); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | compilation_state.apply_unsafe(comment_link_patcher::patch_ast); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 25 | let attribute_patcher = crate::patch_attributes!("", Allow, Compress, Deprecated, Oneway, SlicedFormat); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | let attribute = attribute_ptr.borrow_mut(); [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/patchers/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 25 | let attribute_patcher = crate::patch_attributes!("", Allow, Compress, Deprecated, Oneway, SlicedFormat); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 35 | unsafe fn _patch_attributes_impl(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `crate::patch_attributes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/diagnostics/diagnostic.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | if let DiagnosticKind::Lint(lint) = &diagnostic.kind { [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/diagnostics/diagnostic.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | } [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] 175 ~ match &diagnostic.kind { DiagnosticKind::Lint(lint) => { [INFO] [stdout] 176 | // Check if the lint is allowed by an `--allow` flag passed on the command line. [INFO] [stdout] ... [INFO] [stdout] 196 | } [INFO] [stdout] 197 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parsers/preprocessor/parser.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl Iterator>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parsers/preprocessor/parser.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'a> Preprocessor<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parsers/slice/lexer.rs:417:16 [INFO] [stdout] | [INFO] [stdout] 417 | if let Some(next_source_block) = self.source_blocks.next() { [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/parsers/slice/lexer.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | } 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] 417 ~ match self.source_blocks.next() { Some(next_source_block) => { [INFO] [stdout] 418 | // Drop the current source block and replace it with the next source block. [INFO] [stdout] ... [INFO] [stdout] 421 | self.cursor = self.current_block.start; [INFO] [stdout] 422 ~ } _ => { [INFO] [stdout] 423 | // There are no more source blocks to parse, the lexer has hit end of input. [INFO] [stdout] 424 | return None; [INFO] [stdout] 425 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/validators/dictionary.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | if let Some(e) = check_dictionary_key_type(&dictionary.key_type) { [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/validators/dictionary.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 11 ~ match check_dictionary_key_type(&dictionary.key_type) { Some(e) => { [INFO] [stdout] 12 | e.push_into(diagnostics) [INFO] [stdout] 13 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/result_tests.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `slicec` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/diagnostics/mod.rs [INFO] [stderr] * src/parsers/comments/grammar.rs [INFO] [stderr] * src/parsers/slice/grammar.rs [INFO] [stderr] * src/patchers/comment_link_patcher.rs [INFO] [stderr] * src/utils/ptr_util.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/diagnostics/mod.rs:24:28 [INFO] [stderr] | [INFO] [stderr] 24 | (Lint, $(($kind:ident, $message:expr_2021 $(, $variant:ident)* )),*) => { [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/diagnostics/mod.rs:51:44 [INFO] [stderr] | [INFO] [stderr] 51 | (Error, $(($code:literal, $kind:ident, $message:expr_2021 $(, $variant:ident)* )),*) => { [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/utils/ptr_util.rs:172:6 [INFO] [stderr] | [INFO] [stderr] 172 | ($owned:expr_2021, $new_type:ty) => { [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/utils/ptr_util.rs:179:6 [INFO] [stderr] | [INFO] [stderr] 179 | ($owned:expr_2021, $new_type:ty) => {{ [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/utils/ptr_util.rs:187:6 [INFO] [stderr] | [INFO] [stderr] 187 | ($weak:expr_2021, $new_type:ty) => {{ [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/parsers/comments/grammar.rs:22:36 [INFO] [stderr] | [INFO] [stderr] 22 | ($comment:ident, $field:ident, $block: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/parsers/slice/grammar.rs:32:6 [INFO] [stderr] | [INFO] [stderr] 32 | ($parent_ptr:expr_2021, $weak_parent_ptr:expr_2021, $children:ident, $parser: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/parsers/slice/grammar.rs:32:29 [INFO] [stderr] | [INFO] [stderr] 32 | ($parent_ptr:expr_2021, $weak_parent_ptr:expr_2021, $children:ident, $parser: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/parsers/slice/grammar.rs:32:74 [INFO] [stderr] | [INFO] [stderr] 32 | ($parent_ptr:expr_2021, $weak_parent_ptr:expr_2021, $children:ident, $parser: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/parsers/slice/grammar.rs:44:6 [INFO] [stderr] | [INFO] [stderr] 44 | ($parent_ptr:expr_2021, $children:ident, $parser: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/parsers/slice/grammar.rs:44:46 [INFO] [stderr] | [INFO] [stderr] 44 | ($parent_ptr:expr_2021, $children:ident, $parser: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/parsers/slice/grammar.rs:50:6 [INFO] [stderr] | [INFO] [stderr] 50 | ($parent_ptr:expr_2021, $children:ident, $parser: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/parsers/slice/grammar.rs:50:46 [INFO] [stderr] | [INFO] [stderr] 50 | ($parent_ptr:expr_2021, $children:ident, $parser: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/patchers/comment_link_patcher.rs:12:19 [INFO] [stderr] | [INFO] [stderr] 12 | ($self:ident, $tag: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/patchers/comment_link_patcher.rs:21:6 [INFO] [stderr] | [INFO] [stderr] 21 | ($element_ptr:expr_2021, $patcher:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/diagnostics/mod.rs:24:37 [INFO] [stdout] | [INFO] [stdout] 24 | (Lint, $(($kind:ident, $message:expr $(, $variant:ident)* )),*) => { [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] 24 | (Lint, $(($kind:ident, $message:expr_2021 $(, $variant:ident)* )),*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/diagnostics/mod.rs:51:53 [INFO] [stdout] | [INFO] [stdout] 51 | (Error, $(($code:literal, $kind:ident, $message:expr $(, $variant:ident)* )),*) => { [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] 51 | (Error, $(($code:literal, $kind:ident, $message:expr_2021 $(, $variant:ident)* )),*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/utils/ptr_util.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | ($owned:expr, $new_type:ty) => { [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] 172 | ($owned:expr_2021, $new_type:ty) => { [INFO] [stdout] | ~~~~~~~~~ [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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/utils/ptr_util.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | ($owned:expr, $new_type:ty) => {{ [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] 179 | ($owned:expr_2021, $new_type:ty) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/utils/ptr_util.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | ($weak:expr, $new_type:ty) => {{ [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] 187 | ($weak:expr_2021, $new_type:ty) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/comments/grammar.rs:22:43 [INFO] [stdout] | [INFO] [stdout] 22 | ($comment:ident, $field:ident, $block: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] 22 | ($comment:ident, $field:ident, $block:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/patchers/comment_link_patcher.rs:21:30 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | ($parent_ptr:expr, $weak_parent_ptr:expr, $children:ident, $parser: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] 32 | ($parent_ptr:expr_2021, $weak_parent_ptr:expr, $children:ident, $parser:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | ($parent_ptr:expr, $weak_parent_ptr:expr, $children:ident, $parser: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] 32 | ($parent_ptr:expr, $weak_parent_ptr:expr_2021, $children:ident, $parser:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 21 | ($element_ptr:expr_2021, $patcher:expr_2021) => {{ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:32:72 [INFO] [stdout] | [INFO] [stdout] 32 | ($parent_ptr:expr, $weak_parent_ptr:expr, $children:ident, $parser: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] 32 | ($parent_ptr:expr, $weak_parent_ptr:expr, $children:ident, $parser:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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: aborting due to 16 previous errors [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: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parsers/slice/grammar.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | ($parent_ptr:expr, $children:ident, $parser: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] 44 | ($parent_ptr:expr_2021, $children:ident, $parser: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/parsers/slice/grammar.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | ($parent_ptr:expr, $children:ident, $parser: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] 44 | ($parent_ptr:expr, $children:ident, $parser: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/parsers/slice/grammar.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | ($parent_ptr:expr, $children:ident, $parser: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] 50 | ($parent_ptr:expr_2021, $children:ident, $parser: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/parsers/slice/grammar.rs:50:49 [INFO] [stdout] | [INFO] [stdout] 50 | ($parent_ptr:expr, $children:ident, $parser: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] 50 | ($parent_ptr:expr, $children:ident, $parser: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/patchers/comment_link_patcher.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | ($self:ident, $tag: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] 12 | ($self:ident, $tag: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/patchers/comment_link_patcher.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | ($element_ptr:expr, $patcher: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] 21 | ($element_ptr:expr_2021, $patcher: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/patchers/comment_link_patcher.rs:21:34 [INFO] [stdout] | [INFO] [stdout] 21 | ($element_ptr:expr, $patcher: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] 21 | ($element_ptr:expr, $patcher:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/compilation_state.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | function(self); [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/compilation_state.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub unsafe fn apply_unsafe(&mut self, function: unsafe fn(&mut Self)) { [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 53 | Node::Struct(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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/patchers/comment_link_patcher.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 54 | Node::Class(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 55 | Node::Exception(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 56 | Node::Field(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 57 | Node::Interface(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 58 | Node::Operation(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 59 | Node::Enum(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 60 | Node::Enumerator(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 61 | Node::CustomType(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 62 | Node::TypeAlias(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | struct_ptr.borrow_mut().supported_encodings = Some(encodings); [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/patchers/encoding_patcher.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | class_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | exception_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | interface_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | enum_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | custom_type_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | type_alias_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `patchers::type_ref_patcher::TypeRefPatcher::<'_>::apply_patches` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | patcher.apply_patches(&mut compilation_state.ast); [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/patchers/type_ref_patcher.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:110:42 [INFO] [stdout] | [INFO] [stdout] 110 | let base_class_ref = class_ptr.borrow_mut().base.as_mut().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/patchers/type_ref_patcher.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe fn apply_patches(self, ast: &mut Ast) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:115:46 [INFO] [stdout] | [INFO] [stdout] 115 | let base_exception_ref = exception_ptr.borrow_mut().base.as_mut().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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:126:55 [INFO] [stdout] | [INFO] [stdout] 126 | let base_interface_ref = &mut interface_ptr.borrow_mut().bases[j]; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:132:47 [INFO] [stdout] | [INFO] [stdout] 132 | let field_type_ref = &mut field_ptr.borrow_mut().data_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:137:51 [INFO] [stdout] | [INFO] [stdout] 137 | let parameter_type_ref = &mut parameter_ptr.borrow_mut().data_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:142:56 [INFO] [stdout] | [INFO] [stdout] 142 | let exception_specification = &mut operation_ptr.borrow_mut().exception_specification; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:155:52 [INFO] [stdout] | [INFO] [stdout] 155 | let enum_underlying_type_ref = enum_ptr.borrow_mut().underlying.as_mut().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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:160:63 [INFO] [stdout] | [INFO] [stdout] 160 | let type_alias_underlying_type_ref = &mut type_alias_ptr.borrow_mut().underlying; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | result_ptr.borrow_mut().success_type.patch(success_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:169:25 [INFO] [stdout] | [INFO] [stdout] 169 | result_ptr.borrow_mut().failure_type.patch(failure_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:174:49 [INFO] [stdout] | [INFO] [stdout] 174 | let element_type_ref = &mut sequence_ptr.borrow_mut().element_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | dictionary_ptr.borrow_mut().key_type.patch(key_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | dictionary_ptr.borrow_mut().value_type.patch(value_type_ptr, attributes); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | compilation_state.apply_unsafe(attribute_patcher); [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/patchers/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | compilation_state.apply_unsafe(type_ref_patcher::patch_ast); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | compilation_state.apply_unsafe(encoding_patcher::patch_ast); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | compilation_state.apply_unsafe(comment_link_patcher::patch_ast); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 25 | let attribute_patcher = crate::patch_attributes!("", Allow, Compress, Deprecated, Oneway, SlicedFormat); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | let attribute = attribute_ptr.borrow_mut(); [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/patchers/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 25 | let attribute_patcher = crate::patch_attributes!("", Allow, Compress, Deprecated, Oneway, SlicedFormat); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 35 | unsafe fn _patch_attributes_impl(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `crate::patch_attributes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/diagnostics/diagnostic.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | if let DiagnosticKind::Lint(lint) = &diagnostic.kind { [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/diagnostics/diagnostic.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | } [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] 175 ~ match &diagnostic.kind { DiagnosticKind::Lint(lint) => { [INFO] [stdout] 176 | // Check if the lint is allowed by an `--allow` flag passed on the command line. [INFO] [stdout] ... [INFO] [stdout] 196 | } [INFO] [stdout] 197 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parsers/preprocessor/parser.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl Iterator>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parsers/preprocessor/parser.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | impl<'a> Preprocessor<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parsers/slice/lexer.rs:417:16 [INFO] [stdout] | [INFO] [stdout] 417 | if let Some(next_source_block) = self.source_blocks.next() { [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/parsers/slice/lexer.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | } 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] 417 ~ match self.source_blocks.next() { Some(next_source_block) => { [INFO] [stdout] 418 | // Drop the current source block and replace it with the next source block. [INFO] [stdout] ... [INFO] [stdout] 421 | self.cursor = self.current_block.start; [INFO] [stdout] 422 ~ } _ => { [INFO] [stdout] 423 | // There are no more source blocks to parse, the lexer has hit end of input. [INFO] [stdout] 424 | return None; [INFO] [stdout] 425 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/validators/dictionary.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | if let Some(e) = check_dictionary_key_type(&dictionary.key_type) { [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/validators/dictionary.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 11 ~ match check_dictionary_key_type(&dictionary.key_type) { Some(e) => { [INFO] [stdout] 12 | e.push_into(diagnostics) [INFO] [stdout] 13 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/typealias_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/mixed_encoding_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/optional_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/parser_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/class_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/custom_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/dicionary_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/scope_resolution_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/parse.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/struct_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/primitive_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test_helpers.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/exception_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/identifier_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/cycle_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/enum_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/attribute_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/preprocessor_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/comment_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/interface_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/module_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/redefinition_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/compilation_mode_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/tag_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/diagnostic_output_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/file_tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/sequence_tests.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.60s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling slicec v0.3.2 (/tmp/fixit) [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/compilation_state.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | function(self); [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/compilation_state.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub unsafe fn apply_unsafe(&mut self, function: unsafe fn(&mut Self)) { [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 is unsafe and requires unsafe block [INFO] [stdout] --> src/compilation_state.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | function(self); [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/compilation_state.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub unsafe fn apply_unsafe(&mut self, function: unsafe fn(&mut Self)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*diagnostics` as mutable more than once at a time [INFO] [stdout] --> src/parsers/mod.rs:38:56 [INFO] [stdout] | [INFO] [stdout] 34 | let preprocessor = Preprocessor::new(&file.relative_path, &mut symbols, diagnostics); [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 38 | let parser = Parser::new(&file.relative_path, ast, diagnostics); [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] 39 | let Ok((mode, attributes, module, definitions)) = parser.parse_slice_file(preprocessed_text) else { return }; [INFO] [stdout] | ----------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*diagnostics` as mutable more than once at a time [INFO] [stdout] --> src/parsers/mod.rs:38:56 [INFO] [stdout] | [INFO] [stdout] 34 | let preprocessor = Preprocessor::new(&file.relative_path, &mut symbols, diagnostics); [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 38 | let parser = Parser::new(&file.relative_path, ast, diagnostics); [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] 39 | let Ok((mode, attributes, module, definitions)) = parser.parse_slice_file(preprocessed_text) else { return }; [INFO] [stdout] | ----------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 53 | Node::Struct(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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/patchers/comment_link_patcher.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 53 | Node::Struct(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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/patchers/comment_link_patcher.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 54 | Node::Class(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 54 | Node::Class(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 55 | Node::Exception(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 55 | Node::Exception(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 56 | Node::Field(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 56 | Node::Field(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 57 | Node::Interface(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 57 | Node::Interface(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 58 | Node::Operation(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 58 | Node::Operation(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 59 | Node::Enum(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 59 | Node::Enum(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 60 | Node::Enumerator(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 60 | Node::Enumerator(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 61 | Node::CustomType(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 61 | Node::CustomType(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 62 | Node::TypeAlias(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/comment_link_patcher.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let element_ref = $element_ptr.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 62 | Node::TypeAlias(ptr) => patch_element!(ptr, patcher), [INFO] [stdout] | ---------------------------- in this macro invocation [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: this warning originates in the macro `patch_element` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | struct_ptr.borrow_mut().supported_encodings = Some(encodings); [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/patchers/encoding_patcher.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | class_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | exception_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | interface_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | enum_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | custom_type_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | struct_ptr.borrow_mut().supported_encodings = Some(encodings); [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/patchers/encoding_patcher.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | type_alias_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | class_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | exception_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | interface_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | enum_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | custom_type_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/encoding_patcher.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | type_alias_ptr.borrow_mut().supported_encodings = Some(encodings); [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 `patchers::type_ref_patcher::TypeRefPatcher::<'_>::apply_patches` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | patcher.apply_patches(&mut compilation_state.ast); [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/patchers/type_ref_patcher.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `patchers::type_ref_patcher::TypeRefPatcher::<'_>::apply_patches` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | patcher.apply_patches(&mut compilation_state.ast); [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/patchers/type_ref_patcher.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:110:42 [INFO] [stdout] | [INFO] [stdout] 110 | let base_class_ref = class_ptr.borrow_mut().base.as_mut().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/patchers/type_ref_patcher.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe fn apply_patches(self, ast: &mut Ast) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:115:46 [INFO] [stdout] | [INFO] [stdout] 115 | let base_exception_ref = exception_ptr.borrow_mut().base.as_mut().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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:126:55 [INFO] [stdout] | [INFO] [stdout] 126 | let base_interface_ref = &mut interface_ptr.borrow_mut().bases[j]; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:132:47 [INFO] [stdout] | [INFO] [stdout] 132 | let field_type_ref = &mut field_ptr.borrow_mut().data_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:137:51 [INFO] [stdout] | [INFO] [stdout] 137 | let parameter_type_ref = &mut parameter_ptr.borrow_mut().data_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:142:56 [INFO] [stdout] | [INFO] [stdout] 142 | let exception_specification = &mut operation_ptr.borrow_mut().exception_specification; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:155:52 [INFO] [stdout] | [INFO] [stdout] 155 | let enum_underlying_type_ref = enum_ptr.borrow_mut().underlying.as_mut().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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:160:63 [INFO] [stdout] | [INFO] [stdout] 160 | let type_alias_underlying_type_ref = &mut type_alias_ptr.borrow_mut().underlying; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | result_ptr.borrow_mut().success_type.patch(success_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:110:42 [INFO] [stdout] | [INFO] [stdout] 110 | let base_class_ref = class_ptr.borrow_mut().base.as_mut().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/patchers/type_ref_patcher.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe fn apply_patches(self, ast: &mut Ast) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:169:25 [INFO] [stdout] | [INFO] [stdout] 169 | result_ptr.borrow_mut().failure_type.patch(failure_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:174:49 [INFO] [stdout] | [INFO] [stdout] 174 | let element_type_ref = &mut sequence_ptr.borrow_mut().element_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:115:46 [INFO] [stdout] | [INFO] [stdout] 115 | let base_exception_ref = exception_ptr.borrow_mut().base.as_mut().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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | dictionary_ptr.borrow_mut().key_type.patch(key_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:126:55 [INFO] [stdout] | [INFO] [stdout] 126 | let base_interface_ref = &mut interface_ptr.borrow_mut().bases[j]; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | dictionary_ptr.borrow_mut().value_type.patch(value_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:132:47 [INFO] [stdout] | [INFO] [stdout] 132 | let field_type_ref = &mut field_ptr.borrow_mut().data_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:137:51 [INFO] [stdout] | [INFO] [stdout] 137 | let parameter_type_ref = &mut parameter_ptr.borrow_mut().data_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:142:56 [INFO] [stdout] | [INFO] [stdout] 142 | let exception_specification = &mut operation_ptr.borrow_mut().exception_specification; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:155:52 [INFO] [stdout] | [INFO] [stdout] 155 | let enum_underlying_type_ref = enum_ptr.borrow_mut().underlying.as_mut().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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:160:63 [INFO] [stdout] | [INFO] [stdout] 160 | let type_alias_underlying_type_ref = &mut type_alias_ptr.borrow_mut().underlying; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | result_ptr.borrow_mut().success_type.patch(success_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:169:25 [INFO] [stdout] | [INFO] [stdout] 169 | result_ptr.borrow_mut().failure_type.patch(failure_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:174:49 [INFO] [stdout] | [INFO] [stdout] 174 | let element_type_ref = &mut sequence_ptr.borrow_mut().element_type; [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | dictionary_ptr.borrow_mut().key_type.patch(key_type_ptr, attributes); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/type_ref_patcher.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | dictionary_ptr.borrow_mut().value_type.patch(value_type_ptr, attributes); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | compilation_state.apply_unsafe(attribute_patcher); [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/patchers/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | compilation_state.apply_unsafe(type_ref_patcher::patch_ast); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | compilation_state.apply_unsafe(encoding_patcher::patch_ast); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | compilation_state.apply_unsafe(comment_link_patcher::patch_ast); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 25 | let attribute_patcher = crate::patch_attributes!("", Allow, Compress, Deprecated, Oneway, SlicedFormat); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | let attribute = attribute_ptr.borrow_mut(); [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/patchers/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 25 | let attribute_patcher = crate::patch_attributes!("", Allow, Compress, Deprecated, Oneway, SlicedFormat); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 35 | unsafe fn _patch_attributes_impl(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `crate::patch_attributes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | compilation_state.apply_unsafe(attribute_patcher); [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/patchers/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub unsafe fn patch_ast(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | compilation_state.apply_unsafe(type_ref_patcher::patch_ast); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | compilation_state.apply_unsafe(encoding_patcher::patch_ast); [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 `compilation_state::CompilationState::apply_unsafe` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | compilation_state.apply_unsafe(comment_link_patcher::patch_ast); [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 `utils::ptr_util::OwnedPtr::::borrow_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/patchers/mod.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 25 | let attribute_patcher = crate::patch_attributes!("", Allow, Compress, Deprecated, Oneway, SlicedFormat); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | let attribute = attribute_ptr.borrow_mut(); [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/patchers/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 25 | let attribute_patcher = crate::patch_attributes!("", Allow, Compress, Deprecated, Oneway, SlicedFormat); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 35 | unsafe fn _patch_attributes_impl(compilation_state: &mut CompilationState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `crate::patch_attributes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0499. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0499. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `slicec` (lib) due to 2 previous errors; 37 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `slicec` (lib test) due to 2 previous errors; 37 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" "78e9b748c7a45d2d326d77b0d2e7b7baf8d97b9db8d53c12b6697ffa31a75f71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78e9b748c7a45d2d326d77b0d2e7b7baf8d97b9db8d53c12b6697ffa31a75f71", kill_on_drop: false }` [INFO] [stdout] 78e9b748c7a45d2d326d77b0d2e7b7baf8d97b9db8d53c12b6697ffa31a75f71