[INFO] fetching crate onig 6.5.1... [INFO] testing onig-6.5.1 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate onig 6.5.1 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate onig 6.5.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate onig 6.5.1 [INFO] tweaked toml for crates.io crate onig 6.5.1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate onig 6.5.1 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate onig 6.5.1 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.2.24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6ee21988020670c31b6b158c8624e79272f84a46052ee8478b4f47ce566fe9c0 [INFO] running `Command { std: "docker" "start" "-a" "6ee21988020670c31b6b158c8624e79272f84a46052ee8478b4f47ce566fe9c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6ee21988020670c31b6b158c8624e79272f84a46052ee8478b4f47ce566fe9c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ee21988020670c31b6b158c8624e79272f84a46052ee8478b4f47ce566fe9c0", kill_on_drop: false }` [INFO] [stdout] 6ee21988020670c31b6b158c8624e79272f84a46052ee8478b4f47ce566fe9c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8911d856ea6251e4e6e3860b20f8fc6f9b9f061f53894cf22b125662f3b975f4 [INFO] running `Command { std: "docker" "start" "-a" "8911d856ea6251e4e6e3860b20f8fc6f9b9f061f53894cf22b125662f3b975f4", kill_on_drop: false }` [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling prettyplease v0.2.32 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling bindgen v0.71.1 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling cc v1.2.24 [INFO] [stderr] Compiling libloading v0.8.7 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling onig_sys v69.9.1 [INFO] [stderr] Compiling onig v6.5.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe { &mut onig_sys::OnigEncodingUTF8 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 26 | unsafe { &raw mut onig_sys::OnigEncodingUTF8 } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | enc: unsafe { &mut onig_sys::OnigEncodingASCII }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 92 | enc: unsafe { &raw mut onig_sys::OnigEncodingASCII }, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/replace.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | fn reg_replace(&mut self, caps: &Captures) -> Cow; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 14 | fn reg_replace(&mut self, caps: &Captures) -> Cow<'_, str>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/replace.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | fn reg_replace(&mut self, _: &Captures) -> Cow { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 19 | fn reg_replace(&mut self, _: &Captures) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | unsafe { transmute(&onig_sys::OnigSyntaxPython) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 38 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPython) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | unsafe { transmute(&onig_sys::OnigSyntaxASIS) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 42 | unsafe { transmute(&raw const onig_sys::OnigSyntaxASIS) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { transmute(&onig_sys::OnigSyntaxPosixBasic) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPosixBasic) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:52:28 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { transmute(&onig_sys::OnigSyntaxPosixExtended) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPosixExtended) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | unsafe { transmute(&onig_sys::OnigSyntaxEmacs) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 57 | unsafe { transmute(&raw const onig_sys::OnigSyntaxEmacs) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe { transmute(&onig_sys::OnigSyntaxGrep) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | unsafe { transmute(&raw const onig_sys::OnigSyntaxGrep) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:67:28 [INFO] [stdout] | [INFO] [stdout] 67 | unsafe { transmute(&onig_sys::OnigSyntaxGnuRegex) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 67 | unsafe { transmute(&raw const onig_sys::OnigSyntaxGnuRegex) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:72:28 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { transmute(&onig_sys::OnigSyntaxJava) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { transmute(&raw const onig_sys::OnigSyntaxJava) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | unsafe { transmute(&onig_sys::OnigSyntaxPerl) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 77 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPerl) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { transmute(&onig_sys::OnigSyntaxPerl_NG) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPerl_NG) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe { transmute(&onig_sys::OnigSyntaxRuby) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 87 | unsafe { transmute(&raw const onig_sys::OnigSyntaxRuby) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 92 | unsafe { transmute(&onig_sys::OnigSyntaxOniguruma) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 92 | unsafe { transmute(&raw const onig_sys::OnigSyntaxOniguruma) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.43s [INFO] running `Command { std: "docker" "inspect" "8911d856ea6251e4e6e3860b20f8fc6f9b9f061f53894cf22b125662f3b975f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8911d856ea6251e4e6e3860b20f8fc6f9b9f061f53894cf22b125662f3b975f4", kill_on_drop: false }` [INFO] [stdout] 8911d856ea6251e4e6e3860b20f8fc6f9b9f061f53894cf22b125662f3b975f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 388e865500e31ac38b49646c0c05fc95242c661c1bbb7da56deb0d09ed78fd73 [INFO] running `Command { std: "docker" "start" "-a" "388e865500e31ac38b49646c0c05fc95242c661c1bbb7da56deb0d09ed78fd73", kill_on_drop: false }` [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe { &mut onig_sys::OnigEncodingUTF8 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 26 | unsafe { &raw mut onig_sys::OnigEncodingUTF8 } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | enc: unsafe { &mut onig_sys::OnigEncodingASCII }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 92 | enc: unsafe { &raw mut onig_sys::OnigEncodingASCII }, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/replace.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | fn reg_replace(&mut self, caps: &Captures) -> Cow; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 14 | fn reg_replace(&mut self, caps: &Captures) -> Cow<'_, str>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/replace.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | fn reg_replace(&mut self, _: &Captures) -> Cow { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 19 | fn reg_replace(&mut self, _: &Captures) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | unsafe { transmute(&onig_sys::OnigSyntaxPython) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 38 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPython) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling onig v6.5.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | unsafe { transmute(&onig_sys::OnigSyntaxASIS) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 42 | unsafe { transmute(&raw const onig_sys::OnigSyntaxASIS) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { transmute(&onig_sys::OnigSyntaxPosixBasic) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPosixBasic) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:52:28 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { transmute(&onig_sys::OnigSyntaxPosixExtended) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPosixExtended) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | unsafe { transmute(&onig_sys::OnigSyntaxEmacs) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 57 | unsafe { transmute(&raw const onig_sys::OnigSyntaxEmacs) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe { transmute(&onig_sys::OnigSyntaxGrep) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | unsafe { transmute(&raw const onig_sys::OnigSyntaxGrep) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:67:28 [INFO] [stdout] | [INFO] [stdout] 67 | unsafe { transmute(&onig_sys::OnigSyntaxGnuRegex) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 67 | unsafe { transmute(&raw const onig_sys::OnigSyntaxGnuRegex) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:72:28 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { transmute(&onig_sys::OnigSyntaxJava) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { transmute(&raw const onig_sys::OnigSyntaxJava) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | unsafe { transmute(&onig_sys::OnigSyntaxPerl) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 77 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPerl) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { transmute(&onig_sys::OnigSyntaxPerl_NG) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPerl_NG) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe { transmute(&onig_sys::OnigSyntaxRuby) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 87 | unsafe { transmute(&raw const onig_sys::OnigSyntaxRuby) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 92 | unsafe { transmute(&onig_sys::OnigSyntaxOniguruma) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 92 | unsafe { transmute(&raw const onig_sys::OnigSyntaxOniguruma) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> examples/dollar.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | fn reg_replace(&mut self, caps: &Captures) -> Cow { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | fn reg_replace(&mut self, caps: &Captures) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe { &mut onig_sys::OnigEncodingUTF8 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 26 | unsafe { &raw mut onig_sys::OnigEncodingUTF8 } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | enc: unsafe { &mut onig_sys::OnigEncodingASCII }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 92 | enc: unsafe { &raw mut onig_sys::OnigEncodingASCII }, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | unsafe { &mut onig_sys::OnigEncodingUTF8 } as onig_sys::OnigEncoding, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 123 | unsafe { &raw mut onig_sys::OnigEncodingUTF8 } as onig_sys::OnigEncoding, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | unsafe { &mut onig_sys::OnigEncodingUTF8 } as onig_sys::OnigEncoding, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 129 | unsafe { &raw mut onig_sys::OnigEncodingUTF8 } as onig_sys::OnigEncoding, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:139:22 [INFO] [stdout] | [INFO] [stdout] 139 | unsafe { &mut onig_sys::OnigEncodingASCII } as onig_sys::OnigEncoding, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 139 | unsafe { &raw mut onig_sys::OnigEncodingASCII } as onig_sys::OnigEncoding, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:167:53 [INFO] [stdout] | [INFO] [stdout] 167 | EncodedBytes::from_parts(buff, unsafe { &mut onig_sys::OnigEncodingASCII }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 167 | EncodedBytes::from_parts(buff, unsafe { &raw mut onig_sys::OnigEncodingASCII }); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/buffers.rs:169:22 [INFO] [stdout] | [INFO] [stdout] 169 | unsafe { &mut onig_sys::OnigEncodingASCII } as onig_sys::OnigEncoding, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 169 | unsafe { &raw mut onig_sys::OnigEncodingASCII } as onig_sys::OnigEncoding, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/replace.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | fn reg_replace(&mut self, caps: &Captures) -> Cow; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 14 | fn reg_replace(&mut self, caps: &Captures) -> Cow<'_, str>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/replace.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | fn reg_replace(&mut self, _: &Captures) -> Cow { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 19 | fn reg_replace(&mut self, _: &Captures) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | unsafe { transmute(&onig_sys::OnigSyntaxPython) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 38 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPython) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | unsafe { transmute(&onig_sys::OnigSyntaxASIS) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 42 | unsafe { transmute(&raw const onig_sys::OnigSyntaxASIS) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { transmute(&onig_sys::OnigSyntaxPosixBasic) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPosixBasic) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:52:28 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { transmute(&onig_sys::OnigSyntaxPosixExtended) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPosixExtended) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | unsafe { transmute(&onig_sys::OnigSyntaxEmacs) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 57 | unsafe { transmute(&raw const onig_sys::OnigSyntaxEmacs) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe { transmute(&onig_sys::OnigSyntaxGrep) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | unsafe { transmute(&raw const onig_sys::OnigSyntaxGrep) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:67:28 [INFO] [stdout] | [INFO] [stdout] 67 | unsafe { transmute(&onig_sys::OnigSyntaxGnuRegex) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 67 | unsafe { transmute(&raw const onig_sys::OnigSyntaxGnuRegex) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:72:28 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { transmute(&onig_sys::OnigSyntaxJava) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { transmute(&raw const onig_sys::OnigSyntaxJava) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | unsafe { transmute(&onig_sys::OnigSyntaxPerl) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 77 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPerl) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { transmute(&onig_sys::OnigSyntaxPerl_NG) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPerl_NG) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe { transmute(&onig_sys::OnigSyntaxRuby) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 87 | unsafe { transmute(&raw const onig_sys::OnigSyntaxRuby) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/syntax.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 92 | unsafe { transmute(&onig_sys::OnigSyntaxOniguruma) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 92 | unsafe { transmute(&raw const onig_sys::OnigSyntaxOniguruma) } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.80s [INFO] running `Command { std: "docker" "inspect" "388e865500e31ac38b49646c0c05fc95242c661c1bbb7da56deb0d09ed78fd73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "388e865500e31ac38b49646c0c05fc95242c661c1bbb7da56deb0d09ed78fd73", kill_on_drop: false }` [INFO] [stdout] 388e865500e31ac38b49646c0c05fc95242c661c1bbb7da56deb0d09ed78fd73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f8b775ed3d6acbe53d50725d1cc04fa21402d26f39571ebd31e9ee32968cb6f6 [INFO] running `Command { std: "docker" "start" "-a" "f8b775ed3d6acbe53d50725d1cc04fa21402d26f39571ebd31e9ee32968cb6f6", kill_on_drop: false }` [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/buffers.rs:26:18 [INFO] [stderr] | [INFO] [stderr] 26 | unsafe { &mut onig_sys::OnigEncodingUTF8 } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 26 | unsafe { &raw mut onig_sys::OnigEncodingUTF8 } [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/buffers.rs:92:27 [INFO] [stderr] | [INFO] [stderr] 92 | enc: unsafe { &mut onig_sys::OnigEncodingASCII }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 92 | enc: unsafe { &raw mut onig_sys::OnigEncodingASCII }, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/replace.rs:14:20 [INFO] [stderr] | [INFO] [stderr] 14 | fn reg_replace(&mut self, caps: &Captures) -> Cow; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 14 | fn reg_replace(&mut self, caps: &Captures) -> Cow<'_, str>; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/replace.rs:19:20 [INFO] [stderr] | [INFO] [stderr] 19 | fn reg_replace(&mut self, _: &Captures) -> Cow { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 19 | fn reg_replace(&mut self, _: &Captures) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:38:28 [INFO] [stderr] | [INFO] [stderr] 38 | unsafe { transmute(&onig_sys::OnigSyntaxPython) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 38 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPython) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:42:28 [INFO] [stderr] | [INFO] [stderr] 42 | unsafe { transmute(&onig_sys::OnigSyntaxASIS) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 42 | unsafe { transmute(&raw const onig_sys::OnigSyntaxASIS) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:47:28 [INFO] [stderr] | [INFO] [stderr] 47 | unsafe { transmute(&onig_sys::OnigSyntaxPosixBasic) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 47 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPosixBasic) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:52:28 [INFO] [stderr] | [INFO] [stderr] 52 | unsafe { transmute(&onig_sys::OnigSyntaxPosixExtended) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 52 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPosixExtended) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:57:28 [INFO] [stderr] | [INFO] [stderr] 57 | unsafe { transmute(&onig_sys::OnigSyntaxEmacs) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 57 | unsafe { transmute(&raw const onig_sys::OnigSyntaxEmacs) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:62:28 [INFO] [stderr] | [INFO] [stderr] 62 | unsafe { transmute(&onig_sys::OnigSyntaxGrep) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 62 | unsafe { transmute(&raw const onig_sys::OnigSyntaxGrep) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:67:28 [INFO] [stderr] | [INFO] [stderr] 67 | unsafe { transmute(&onig_sys::OnigSyntaxGnuRegex) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 67 | unsafe { transmute(&raw const onig_sys::OnigSyntaxGnuRegex) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:72:28 [INFO] [stderr] | [INFO] [stderr] 72 | unsafe { transmute(&onig_sys::OnigSyntaxJava) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 72 | unsafe { transmute(&raw const onig_sys::OnigSyntaxJava) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:77:28 [INFO] [stderr] | [INFO] [stderr] 77 | unsafe { transmute(&onig_sys::OnigSyntaxPerl) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 77 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPerl) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:82:28 [INFO] [stderr] | [INFO] [stderr] 82 | unsafe { transmute(&onig_sys::OnigSyntaxPerl_NG) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 82 | unsafe { transmute(&raw const onig_sys::OnigSyntaxPerl_NG) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:87:28 [INFO] [stderr] | [INFO] [stderr] 87 | unsafe { transmute(&onig_sys::OnigSyntaxRuby) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 87 | unsafe { transmute(&raw const onig_sys::OnigSyntaxRuby) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/syntax.rs:92:28 [INFO] [stderr] | [INFO] [stderr] 92 | unsafe { transmute(&onig_sys::OnigSyntaxOniguruma) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 92 | unsafe { transmute(&raw const onig_sys::OnigSyntaxOniguruma) } [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/buffers.rs:123:22 [INFO] [stderr] | [INFO] [stderr] 123 | unsafe { &mut onig_sys::OnigEncodingUTF8 } as onig_sys::OnigEncoding, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 123 | unsafe { &raw mut onig_sys::OnigEncodingUTF8 } as onig_sys::OnigEncoding, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/buffers.rs:129:22 [INFO] [stderr] | [INFO] [stderr] 129 | unsafe { &mut onig_sys::OnigEncodingUTF8 } as onig_sys::OnigEncoding, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 129 | unsafe { &raw mut onig_sys::OnigEncodingUTF8 } as onig_sys::OnigEncoding, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/buffers.rs:139:22 [INFO] [stderr] | [INFO] [stderr] 139 | unsafe { &mut onig_sys::OnigEncodingASCII } as onig_sys::OnigEncoding, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 139 | unsafe { &raw mut onig_sys::OnigEncodingASCII } as onig_sys::OnigEncoding, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/buffers.rs:167:53 [INFO] [stderr] | [INFO] [stderr] 167 | EncodedBytes::from_parts(buff, unsafe { &mut onig_sys::OnigEncodingASCII }); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 167 | EncodedBytes::from_parts(buff, unsafe { &raw mut onig_sys::OnigEncodingASCII }); [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/buffers.rs:169:22 [INFO] [stderr] | [INFO] [stderr] 169 | unsafe { &mut onig_sys::OnigEncodingASCII } as onig_sys::OnigEncoding, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 169 | unsafe { &raw mut onig_sys::OnigEncodingASCII } as onig_sys::OnigEncoding, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `onig` (lib) generated 16 warnings (run `cargo fix --lib -p onig` to apply 2 suggestions) [INFO] [stderr] warning: `onig` (lib test) generated 21 warnings (16 duplicates) [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> examples/dollar.rs:17:20 [INFO] [stderr] | [INFO] [stderr] 17 | fn reg_replace(&mut self, caps: &Captures) -> Cow { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 17 | fn reg_replace(&mut self, caps: &Captures) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `onig` (example "dollar") generated 1 warning (run `cargo fix --example "dollar"` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/onig-f8ca2bc8cda3bf12) [INFO] [stdout] [INFO] [stdout] running 48 tests [INFO] [stdout] test buffers::tests::byte_buffer_create ... ok [INFO] [stdout] test buffers::tests::rust_bytes_ptr_offsets_are_valid ... ok [INFO] [stdout] test buffers::tests::rust_string_encoding_is_utf8 ... ok [INFO] [stdout] test buffers::tests::rust_bytes_encoding_is_ascii ... ok [INFO] [stdout] test buffers::tests::rust_string_ptr_offsets_are_valid ... ok [INFO] [stdout] test find::tests::test_captures_iter ... ok [INFO] [stdout] test find::tests::test_find_iter ... ok [INFO] [stdout] test find::tests::test_captures_stores_match_offset ... ok [INFO] [stdout] test find::tests::test_find_iter_many_zero_length ... ok [INFO] [stdout] test find::tests::test_find_iter_empty_after_match ... ok [INFO] [stdout] test find::tests::test_find_iter_one_zero_length ... ok [INFO] [stdout] test find::tests::test_regex_captures ... ok [INFO] [stdout] test find::tests::test_regex_subcaptures ... ok [INFO] [stdout] test find::tests::test_regex_subcapturespos ... ok [INFO] [stdout] test find::tests::test_zero_length_matches_jumps_past_match_location ... ok [INFO] [stdout] test match_param::test::create_default_match_param ... ok [INFO] [stdout] test match_param::test::set_max_stack_size_limit ... ok [INFO] [stdout] test match_param::test::set_retry_limit_in_match ... ok [INFO] [stdout] test names::tests::test_regex_names ... ok [INFO] [stdout] test names::tests::test_regex_names_len ... ok [INFO] [stdout] test region::tests::test_region_all_iteration_options ... ok [INFO] [stdout] test region::tests::test_region_copy ... ok [INFO] [stdout] test region::tests::test_region_clear ... ok [INFO] [stdout] test region::tests::test_region_empty_iterate ... ok [INFO] [stdout] test region::tests::test_region_iter_returns_iterator ... ok [INFO] [stdout] test region::tests::test_region_create ... ok [INFO] [stdout] test region::tests::test_region_resize ... ok [INFO] [stdout] test region::tests::test_region_iterate_with_captures ... ok [INFO] [stdout] test syntax::test::round_trip_bits ... ok [INFO] [stdout] test tests::test_failed_match ... ok [INFO] [stdout] test tests::test_match_with_invalid_range ... ok [INFO] [stdout] test tests::test_is_match_chooses_longest_alternation ... ok [INFO] [stdout] test tests::test_regex_captures_len ... ok [INFO] [stdout] test tests::test_regex_invalid ... ok [INFO] [stdout] test tests::test_regex_is_match ... ok [INFO] [stdout] test tests::test_regex_create ... ok [INFO] [stdout] test tests::test_regex_find ... ok [INFO] [stdout] test tests::test_regex_match_with_options ... ok [INFO] [stdout] test tests::test_regex_search_with_options ... ok [INFO] [stdout] test tests::test_search_with_invalid_range ... ok [INFO] [stdout] test tree::tests::test_regex_search_with_region_tree ... ok [INFO] [stdout] test utils::tests::utils_get_copyright_is_not_emtpy ... ok [INFO] [stdout] test tests::test_match_with_invalid_range_panic ... ok [INFO] [stdout] test tests::test_search_with_invalid_range_panic ... ok [INFO] [stdout] test tests::test_regex_error_find ... ok [INFO] [stdout] test tests::test_regex_panic_is_match ... ok [INFO] [stdout] test tests::test_regex_panic_find ... ok [INFO] [stdout] test tests::test_regex_error_is_match ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 48 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.34s [INFO] [stdout] [INFO] [stderr] Doc-tests onig [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test src/lib.rs - Regex::match_with_options (line 387) ... ok [INFO] [stdout] test src/find.rs - find::Regex::find_iter (line 32) ... ok [INFO] [stdout] test src/find.rs - find::Regex::captures_iter (line 65) ... ok [INFO] [stdout] test src/lib.rs - Regex::with_options_and_encoding (line 313) ... ok [INFO] [stdout] test src/lib.rs - Regex::search_with_options (line 573) ... ok [INFO] [stdout] test src/lib.rs - (line 6) ... ok [INFO] [stdout] test src/lib.rs - Regex::match_with_param (line 491) ... ok [INFO] [stdout] test src/find.rs - find::Regex::split (line 100) ... ok [INFO] [stdout] test src/lib.rs - Regex::search_with_param (line 683) ... ok [INFO] [stdout] test src/lib.rs - Regex::with_options (line 279) ... ok [INFO] [stdout] test src/find.rs - find::Regex::splitn (line 129) ... ok [INFO] [stdout] test src/lib.rs - Regex::search_with_encoding (line 622) ... ok [INFO] [stdout] test src/lib.rs - (line 30) ... ok [INFO] [stdout] test src/lib.rs - Regex::with_encoding (line 246) ... ok [INFO] [stdout] test src/lib.rs - Regex::new (line 225) ... ok [INFO] [stdout] test src/lib.rs - Regex::match_with_encoding (line 433) ... ok [INFO] [stdout] test src/replace.rs - replace::Regex::replace (line 59) ... ok [INFO] [stdout] test src/replace.rs - replace::Regex::replace (line 46) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.54s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f8b775ed3d6acbe53d50725d1cc04fa21402d26f39571ebd31e9ee32968cb6f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8b775ed3d6acbe53d50725d1cc04fa21402d26f39571ebd31e9ee32968cb6f6", kill_on_drop: false }` [INFO] [stdout] f8b775ed3d6acbe53d50725d1cc04fa21402d26f39571ebd31e9ee32968cb6f6