[INFO] fetching crate rome_rowan 0.0.1... [INFO] checking rome_rowan-0.0.1 against master#35936c4839dd272646394779d151e060d0f6b3ac for pr-122960-1 [INFO] extracting crate rome_rowan 0.0.1 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate rome_rowan 0.0.1 on toolchain 35936c4839dd272646394779d151e060d0f6b3ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rome_rowan 0.0.1 [INFO] finished tweaking crates.io crate rome_rowan 0.0.1 [INFO] tweaked toml for crates.io crate rome_rowan 0.0.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rome_text_edit v0.0.1 [INFO] [stderr] Downloaded iai v0.1.1 [INFO] [stderr] Downloaded countme v3.0.1 [INFO] [stderr] Downloaded rome_text_size v0.0.1 [INFO] [stderr] Downloaded quickcheck_macros v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 53745b98f8ee1a23e819c94f1c92e310bf4ddd9cddee03e491710298faa79f32 [INFO] running `Command { std: "docker" "start" "-a" "53745b98f8ee1a23e819c94f1c92e310bf4ddd9cddee03e491710298faa79f32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "53745b98f8ee1a23e819c94f1c92e310bf4ddd9cddee03e491710298faa79f32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53745b98f8ee1a23e819c94f1c92e310bf4ddd9cddee03e491710298faa79f32", kill_on_drop: false }` [INFO] [stdout] 53745b98f8ee1a23e819c94f1c92e310bf4ddd9cddee03e491710298faa79f32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a29e2d4f8f2271b92c525fdc1c1ad481ee6df5ca11f68424dd7a4129fff653f0 [INFO] running `Command { std: "docker" "start" "-a" "a29e2d4f8f2271b92c525fdc1c1ad481ee6df5ca11f68424dd7a4129fff653f0", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Checking similar v2.5.0 [INFO] [stderr] Checking countme v3.0.1 [INFO] [stderr] Checking iai v0.1.1 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Compiling quickcheck_macros v1.0.0 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Checking serde v1.0.197 [INFO] [stderr] Checking rome_text_size v0.0.1 [INFO] [stderr] Checking serde_json v1.0.115 [INFO] [stderr] Checking rome_text_edit v0.0.1 [INFO] [stderr] Checking rome_rowan v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/green/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/35936c4839dd272646394779d151e060d0f6b3ac/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/green/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/35936c4839dd272646394779d151e060d0f6b3ac/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `GreenTrivia` is imported redundantly [INFO] [stdout] --> src/green.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | use super::*; [INFO] [stdout] | -------- the item `GreenTrivia` is already imported here [INFO] [stdout] 28 | use crate::green::trivia::GreenTrivia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/ast/mod.rs:737:1 [INFO] [stdout] | [INFO] [stdout] 737 | / mod tests { [INFO] [stdout] 738 | | use crate::raw_language::{ [INFO] [stdout] 739 | | LiteralExpression, RawLanguage, RawLanguageKind, RawSyntaxTreeBuilder, [INFO] [stdout] 740 | | SeparatedExpressionList, [INFO] [stdout] ... | [INFO] [stdout] 1066 | | } [INFO] [stdout] 1067 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `tests` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/ast/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use batch::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/ast/mod.rs:737:1 [INFO] [stdout] | [INFO] [stdout] 737 | / mod tests { [INFO] [stdout] 738 | | use crate::raw_language::{ [INFO] [stdout] 739 | | LiteralExpression, RawLanguage, RawLanguageKind, RawSyntaxTreeBuilder, [INFO] [stdout] 740 | | SeparatedExpressionList, [INFO] [stdout] ... | [INFO] [stdout] 1066 | | } [INFO] [stdout] 1067 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting references to a bigger memory layout than the backing allocation is undefined behavior, even if the reference is unused [INFO] [stdout] --> src/green/node.rs:235:35 [INFO] [stdout] | [INFO] [stdout] 234 | let repr: &Repr = &self.ptr; [INFO] [stdout] | -------- backing allocation comes from here [INFO] [stdout] 235 | let repr: &ReprThin = &*(repr as *const Repr as *const ReprThin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: casting from `ThinArc` (8 bytes) to `HeaderSlice` (16 bytes) [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting references to a bigger memory layout than the backing allocation is undefined behavior, even if the reference is unused [INFO] [stdout] --> src/green/token.rs:195:35 [INFO] [stdout] | [INFO] [stdout] 194 | let repr: &Repr = &self.ptr; [INFO] [stdout] | -------- backing allocation comes from here [INFO] [stdout] 195 | let repr: &ReprThin = &*(repr as *const Repr as *const ReprThin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: casting from `ThinArc` (8 bytes) to `HeaderSlice` (32 bytes) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected [INFO] [stdout] --> src/arc.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | this.ptr() == other.ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default [INFO] [stdout] help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses [INFO] [stdout] | [INFO] [stdout] 89 | std::ptr::addr_eq(this.ptr(), other.ptr()) [INFO] [stdout] | ++++++++++++++++++ ~ + [INFO] [stdout] help: use explicit `std::ptr::eq` method to compare metadata and addresses [INFO] [stdout] | [INFO] [stdout] 89 | std::ptr::eq(this.ptr(), other.ptr()) [INFO] [stdout] | +++++++++++++ ~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rome_rowan` (lib) due to 3 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: casting references to a bigger memory layout than the backing allocation is undefined behavior, even if the reference is unused [INFO] [stdout] --> src/green/node.rs:235:35 [INFO] [stdout] | [INFO] [stdout] 234 | let repr: &Repr = &self.ptr; [INFO] [stdout] | -------- backing allocation comes from here [INFO] [stdout] 235 | let repr: &ReprThin = &*(repr as *const Repr as *const ReprThin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: casting from `ThinArc` (8 bytes) to `HeaderSlice` (16 bytes) [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting references to a bigger memory layout than the backing allocation is undefined behavior, even if the reference is unused [INFO] [stdout] --> src/green/token.rs:195:35 [INFO] [stdout] | [INFO] [stdout] 194 | let repr: &Repr = &self.ptr; [INFO] [stdout] | -------- backing allocation comes from here [INFO] [stdout] 195 | let repr: &ReprThin = &*(repr as *const Repr as *const ReprThin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: casting from `ThinArc` (8 bytes) to `HeaderSlice` (32 bytes) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected [INFO] [stdout] --> src/arc.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | this.ptr() == other.ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default [INFO] [stdout] help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses [INFO] [stdout] | [INFO] [stdout] 89 | std::ptr::addr_eq(this.ptr(), other.ptr()) [INFO] [stdout] | ++++++++++++++++++ ~ + [INFO] [stdout] help: use explicit `std::ptr::eq` method to compare metadata and addresses [INFO] [stdout] | [INFO] [stdout] 89 | std::ptr::eq(this.ptr(), other.ptr()) [INFO] [stdout] | +++++++++++++ ~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rome_rowan` (lib test) due to 3 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a29e2d4f8f2271b92c525fdc1c1ad481ee6df5ca11f68424dd7a4129fff653f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a29e2d4f8f2271b92c525fdc1c1ad481ee6df5ca11f68424dd7a4129fff653f0", kill_on_drop: false }` [INFO] [stdout] a29e2d4f8f2271b92c525fdc1c1ad481ee6df5ca11f68424dd7a4129fff653f0 [INFO] checking rome_rowan-0.0.1 against try#9ae1860851f3fbc1435a1698e572252c0076f413 for pr-122960-1 [INFO] extracting crate rome_rowan 0.0.1 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate rome_rowan 0.0.1 on toolchain 9ae1860851f3fbc1435a1698e572252c0076f413 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9ae1860851f3fbc1435a1698e572252c0076f413" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rome_rowan 0.0.1 [INFO] finished tweaking crates.io crate rome_rowan 0.0.1 [INFO] tweaked toml for crates.io crate rome_rowan 0.0.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9ae1860851f3fbc1435a1698e572252c0076f413" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9ae1860851f3fbc1435a1698e572252c0076f413" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+9ae1860851f3fbc1435a1698e572252c0076f413" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e4518f8616c5d87b32d7af60c39a314e01a5814e84edfce733b11be7e17cf7d [INFO] running `Command { std: "docker" "start" "-a" "9e4518f8616c5d87b32d7af60c39a314e01a5814e84edfce733b11be7e17cf7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e4518f8616c5d87b32d7af60c39a314e01a5814e84edfce733b11be7e17cf7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e4518f8616c5d87b32d7af60c39a314e01a5814e84edfce733b11be7e17cf7d", kill_on_drop: false }` [INFO] [stdout] 9e4518f8616c5d87b32d7af60c39a314e01a5814e84edfce733b11be7e17cf7d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+9ae1860851f3fbc1435a1698e572252c0076f413" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 90233493b66795fc759359d34b0e410257a046607acd2ab21a7442abdf2fff5d [INFO] running `Command { std: "docker" "start" "-a" "90233493b66795fc759359d34b0e410257a046607acd2ab21a7442abdf2fff5d", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking similar v2.5.0 [INFO] [stderr] Checking countme v3.0.1 [INFO] [stderr] Checking iai v0.1.1 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Compiling quickcheck_macros v1.0.0 [INFO] [stderr] Checking serde v1.0.197 [INFO] [stderr] Checking rome_text_size v0.0.1 [INFO] [stderr] Checking serde_json v1.0.115 [INFO] [stderr] Checking rome_text_edit v0.0.1 [INFO] [stderr] Checking rome_rowan v0.0.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/green/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/9ae1860851f3fbc1435a1698e572252c0076f413/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `arc::Arc::::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node.rs:293:19 [INFO] [stdout] | [INFO] [stdout] 293 | let arc = Arc::from_raw(&ptr.as_ref().data as *const ReprThin); [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/green/node.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | pub(crate) unsafe fn from_raw(ptr: ptr::NonNull) -> GreenNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::NonNull::::as_ref` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node.rs:293:34 [INFO] [stdout] | [INFO] [stdout] 293 | let arc = Arc::from_raw(&ptr.as_ref().data as *const ReprThin); [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: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node.rs:294:19 [INFO] [stdout] | [INFO] [stdout] 294 | let arc = mem::transmute::, ThinArc>(arc); [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: call to unsafe function `green::token::GreenToken::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node_cache.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | GreenToken::from_raw(NonNull::new(ptr).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/green/node_cache.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | unsafe fn from_raw(ptr: *mut Self::Pointee) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `green::node::GreenNode::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node_cache.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | GreenNode::from_raw(NonNull::new(ptr).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/green/node_cache.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | unsafe fn from_raw(ptr: *mut Self::Pointee) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `green::trivia::GreenTrivia::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node_cache.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 437 | GreenTrivia::from_raw(ptr) [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/green/node_cache.rs:436:5 [INFO] [stdout] | [INFO] [stdout] 436 | unsafe fn from_raw(ptr: *mut Self::Pointee) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `arc::Arc::::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/token.rs:182:19 [INFO] [stdout] | [INFO] [stdout] 182 | let arc = Arc::from_raw(&ptr.as_ref().data as *const ReprThin); [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/green/token.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | pub(crate) unsafe fn from_raw(ptr: ptr::NonNull) -> GreenToken { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::NonNull::::as_ref` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/token.rs:182:34 [INFO] [stdout] | [INFO] [stdout] 182 | let arc = Arc::from_raw(&ptr.as_ref().data as *const ReprThin); [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: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/token.rs:183:19 [INFO] [stdout] | [INFO] [stdout] 183 | let arc = mem::transmute::, ThinArc>(arc); [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: call to unsafe function `std::ptr::mut_ptr::::as_ref` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/trivia.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | if let Some(ptr) = ptr.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/green/trivia.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub(crate) unsafe fn from_raw(ptr: *mut GreenTriviaData) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `arc::Arc::::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/trivia.rs:136:23 [INFO] [stdout] | [INFO] [stdout] 136 | let arc = Arc::from_raw(&ptr.data as *const ReprThin); [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: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/trivia.rs:137:23 [INFO] [stdout] | [INFO] [stdout] 137 | let arc = mem::transmute::, ThinArc>(arc); [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: call to unsafe function `std::ptr::const_ptr::::sub` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/arc.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | let ptr = (ptr as *const u8).sub(offset_of!(ArcInner, data)); [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/arc.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) unsafe fn from_raw(ptr: *const T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/arc.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | p: ptr::NonNull::new_unchecked(ptr as *mut ArcInner), [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: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/arc.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let _ = Box::from_raw(self.ptr()); [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/arc.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | unsafe fn drop_slow(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rome_rowan` (lib) due to 3 previous errors; 17 warnings emitted [INFO] [stdout] error: casting references to a bigger memory layout than the backing allocation is undefined behavior, even if the reference is unused [INFO] [stdout] --> src/green/node.rs:235:35 [INFO] [stdout] | [INFO] [stdout] 234 | let repr: &Repr = &self.ptr; [INFO] [stdout] | -------- backing allocation comes from here [INFO] [stdout] 235 | let repr: &ReprThin = &*(repr as *const Repr as *const ReprThin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: casting from `ThinArc` (8 bytes) to `HeaderSlice` (16 bytes) [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: casting references to a bigger memory layout than the backing allocation is undefined behavior, even if the reference is unused [INFO] [stdout] --> src/green/token.rs:195:35 [INFO] [stdout] | [INFO] [stdout] 194 | let repr: &Repr = &self.ptr; [INFO] [stdout] | -------- backing allocation comes from here [INFO] [stdout] 195 | let repr: &ReprThin = &*(repr as *const Repr as *const ReprThin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: casting from `ThinArc` (8 bytes) to `HeaderSlice` (32 bytes) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected [INFO] [stdout] --> src/arc.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | this.ptr() == other.ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default [INFO] [stdout] help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses [INFO] [stdout] | [INFO] [stdout] 89 | std::ptr::addr_eq(this.ptr(), other.ptr()) [INFO] [stdout] | ++++++++++++++++++ ~ + [INFO] [stdout] help: use explicit `std::ptr::eq` method to compare metadata and addresses [INFO] [stdout] | [INFO] [stdout] 89 | std::ptr::eq(this.ptr(), other.ptr()) [INFO] [stdout] | +++++++++++++ ~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/green/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/9ae1860851f3fbc1435a1698e572252c0076f413/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `GreenTrivia` is imported redundantly [INFO] [stdout] --> src/green.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | use super::*; [INFO] [stdout] | -------- the item `GreenTrivia` is already imported here [INFO] [stdout] 28 | use crate::green::trivia::GreenTrivia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/ast/mod.rs:737:1 [INFO] [stdout] | [INFO] [stdout] 737 | / mod tests { [INFO] [stdout] 738 | | use crate::raw_language::{ [INFO] [stdout] 739 | | LiteralExpression, RawLanguage, RawLanguageKind, RawSyntaxTreeBuilder, [INFO] [stdout] 740 | | SeparatedExpressionList, [INFO] [stdout] ... | [INFO] [stdout] 1066 | | } [INFO] [stdout] 1067 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the name `tests` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/ast/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use batch::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/ast/mod.rs:737:1 [INFO] [stdout] | [INFO] [stdout] 737 | / mod tests { [INFO] [stdout] 738 | | use crate::raw_language::{ [INFO] [stdout] 739 | | LiteralExpression, RawLanguage, RawLanguageKind, RawSyntaxTreeBuilder, [INFO] [stdout] 740 | | SeparatedExpressionList, [INFO] [stdout] ... | [INFO] [stdout] 1066 | | } [INFO] [stdout] 1067 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `arc::Arc::::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node.rs:293:19 [INFO] [stdout] | [INFO] [stdout] 293 | let arc = Arc::from_raw(&ptr.as_ref().data as *const ReprThin); [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/green/node.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | pub(crate) unsafe fn from_raw(ptr: ptr::NonNull) -> GreenNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::NonNull::::as_ref` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node.rs:293:34 [INFO] [stdout] | [INFO] [stdout] 293 | let arc = Arc::from_raw(&ptr.as_ref().data as *const ReprThin); [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: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node.rs:294:19 [INFO] [stdout] | [INFO] [stdout] 294 | let arc = mem::transmute::, ThinArc>(arc); [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: call to unsafe function `green::token::GreenToken::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node_cache.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | GreenToken::from_raw(NonNull::new(ptr).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/green/node_cache.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | unsafe fn from_raw(ptr: *mut Self::Pointee) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `green::node::GreenNode::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node_cache.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | GreenNode::from_raw(NonNull::new(ptr).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/green/node_cache.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | unsafe fn from_raw(ptr: *mut Self::Pointee) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `green::trivia::GreenTrivia::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/node_cache.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 437 | GreenTrivia::from_raw(ptr) [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/green/node_cache.rs:436:5 [INFO] [stdout] | [INFO] [stdout] 436 | unsafe fn from_raw(ptr: *mut Self::Pointee) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `arc::Arc::::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/token.rs:182:19 [INFO] [stdout] | [INFO] [stdout] 182 | let arc = Arc::from_raw(&ptr.as_ref().data as *const ReprThin); [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/green/token.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | pub(crate) unsafe fn from_raw(ptr: ptr::NonNull) -> GreenToken { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::NonNull::::as_ref` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/token.rs:182:34 [INFO] [stdout] | [INFO] [stdout] 182 | let arc = Arc::from_raw(&ptr.as_ref().data as *const ReprThin); [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: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/token.rs:183:19 [INFO] [stdout] | [INFO] [stdout] 183 | let arc = mem::transmute::, ThinArc>(arc); [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: call to unsafe function `std::ptr::mut_ptr::::as_ref` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/trivia.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | if let Some(ptr) = ptr.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/green/trivia.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub(crate) unsafe fn from_raw(ptr: *mut GreenTriviaData) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `arc::Arc::::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/trivia.rs:136:23 [INFO] [stdout] | [INFO] [stdout] 136 | let arc = Arc::from_raw(&ptr.data as *const ReprThin); [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: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/green/trivia.rs:137:23 [INFO] [stdout] | [INFO] [stdout] 137 | let arc = mem::transmute::, ThinArc>(arc); [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: call to unsafe function `std::ptr::const_ptr::::sub` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/arc.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | let ptr = (ptr as *const u8).sub(offset_of!(ArcInner, data)); [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/arc.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) unsafe fn from_raw(ptr: *const T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/arc.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | p: ptr::NonNull::new_unchecked(ptr as *mut ArcInner), [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: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/arc.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let _ = Box::from_raw(self.ptr()); [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/arc.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | unsafe fn drop_slow(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting references to a bigger memory layout than the backing allocation is undefined behavior, even if the reference is unused [INFO] [stdout] --> src/green/node.rs:235:35 [INFO] [stdout] | [INFO] [stdout] 234 | let repr: &Repr = &self.ptr; [INFO] [stdout] | -------- backing allocation comes from here [INFO] [stdout] 235 | let repr: &ReprThin = &*(repr as *const Repr as *const ReprThin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: casting from `ThinArc` (8 bytes) to `HeaderSlice` (16 bytes) [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting references to a bigger memory layout than the backing allocation is undefined behavior, even if the reference is unused [INFO] [stdout] --> src/green/token.rs:195:35 [INFO] [stdout] | [INFO] [stdout] 194 | let repr: &Repr = &self.ptr; [INFO] [stdout] | -------- backing allocation comes from here [INFO] [stdout] 195 | let repr: &ReprThin = &*(repr as *const Repr as *const ReprThin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: casting from `ThinArc` (8 bytes) to `HeaderSlice` (32 bytes) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rome_rowan` (lib test) due to 3 previous errors; 19 warnings emitted [INFO] [stdout] warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected [INFO] [stdout] --> src/arc.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | this.ptr() == other.ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default [INFO] [stdout] help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses [INFO] [stdout] | [INFO] [stdout] 89 | std::ptr::addr_eq(this.ptr(), other.ptr()) [INFO] [stdout] | ++++++++++++++++++ ~ + [INFO] [stdout] help: use explicit `std::ptr::eq` method to compare metadata and addresses [INFO] [stdout] | [INFO] [stdout] 89 | std::ptr::eq(this.ptr(), other.ptr()) [INFO] [stdout] | +++++++++++++ ~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "90233493b66795fc759359d34b0e410257a046607acd2ab21a7442abdf2fff5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90233493b66795fc759359d34b0e410257a046607acd2ab21a7442abdf2fff5d", kill_on_drop: false }` [INFO] [stdout] 90233493b66795fc759359d34b0e410257a046607acd2ab21a7442abdf2fff5d