[INFO] fetching crate mime-rs 0.3.0... [INFO] checking mime-rs-0.3.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate mime-rs 0.3.0 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate mime-rs 0.3.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mime-rs 0.3.0 [INFO] finished tweaking crates.io crate mime-rs 0.3.0 [INFO] tweaked toml for crates.io crate mime-rs 0.3.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 27 packages to latest compatible versions [INFO] [stderr] Adding unicode-width v0.1.14 (available: v0.2.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ddf01e83e241cd443333c143ac8a4c9b85e4fe01d5413d52148eb699d3eea07 [INFO] running `Command { std: "docker" "start" "-a" "2ddf01e83e241cd443333c143ac8a4c9b85e4fe01d5413d52148eb699d3eea07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ddf01e83e241cd443333c143ac8a4c9b85e4fe01d5413d52148eb699d3eea07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ddf01e83e241cd443333c143ac8a4c9b85e4fe01d5413d52148eb699d3eea07", kill_on_drop: false }` [INFO] [stdout] 2ddf01e83e241cd443333c143ac8a4c9b85e4fe01d5413d52148eb699d3eea07 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f95efb5b7f956a45e79554c80ad42711c63b28638ebc775ff2202bb5b09ae46 [INFO] running `Command { std: "docker" "start" "-a" "6f95efb5b7f956a45e79554c80ad42711c63b28638ebc775ff2202bb5b09ae46", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling link-cplusplus v1.0.9 [INFO] [stderr] Compiling scratch v1.0.7 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling cxxbridge-flags v1.0.128 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling cxx v1.0.128 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling cxx-build v1.0.128 [INFO] [stderr] Compiling cxxbridge-macro v1.0.128 [INFO] [stderr] Compiling mime-rs v0.3.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating mime-rs/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `mime` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * mime-rs/ffi.rs [INFO] [stderr] * mime-rs/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected one of `!`, `+`, `::`, `;`, `where`, or `{`, found keyword `unsafe` [INFO] [stderr] --> mime-rs/ffi.rs:10:52 [INFO] [stderr] | [INFO] [stderr] 4 | unsafe extern "C++" { [INFO] [stderr] | - while parsing this item list starting here [INFO] [stderr] ... [INFO] [stderr] 10 | fn new_buffer() -> UniquePtrunsafe ; [INFO] [stderr] | ^^^^^^ expected one of `!`, `+`, `::`, `;`, `where`, or `{` [INFO] [stderr] ... [INFO] [stderr] 68 | } [INFO] [stderr] | - the item list ends here [INFO] [stderr] [INFO] [stderr] error: expected `;` [INFO] [stderr] --> mime-rs/ffi.rs:10:52 [INFO] [stderr] | [INFO] [stderr] 10 | fn new_buffer() -> UniquePtrunsafe ; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `ffi::cpp` [INFO] [stderr] --> mime-rs/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use ffi::cpp; [INFO] [stderr] | ^^^^^^^^ no `cpp` in `ffi` [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0432`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:10:45 [INFO] [stdout] | [INFO] [stdout] 10 | fn new_buffer() -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:11:62 [INFO] [stdout] | [INFO] [stdout] 11 | fn open_buffer(name: &CxxString) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:13:40 [INFO] [stdout] | [INFO] [stdout] 13 | fn empty(self: &buffer) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:14:40 [INFO] [stdout] | [INFO] [stdout] 14 | fn size(self: &buffer) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:15:43 [INFO] [stdout] | [INFO] [stdout] 15 | fn narrowed(self: &buffer) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | fn save_as(self: &buffer, name: &CxxString); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | fn set_mark(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 20 | fn get_mark(self: &buffer) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:22:62 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_contents_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:24:62 [INFO] [stdout] | [INFO] [stdout] 24 | fn find(self: Pin<&mut buffer>, t: &CxxString) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:27:63 [INFO] [stdout] | [INFO] [stdout] 27 | fn rfind(self: Pin<&mut buffer>, t: &CxxString) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:30:94 [INFO] [stdout] | [INFO] [stdout] 30 | fn replace(self: Pin<&mut buffer>, from: &CxxString, to: &CxxString, n: usize) -> i32; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:33:54 [INFO] [stdout] | [INFO] [stdout] 33 | fn copy_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:34:62 [INFO] [stdout] | [INFO] [stdout] 34 | fn cut_box(self: Pin<&mut buffer>) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | fn paste(self: Pin<&mut buffer>, t: &CxxString); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:37:56 [INFO] [stdout] | [INFO] [stdout] 37 | fn paste_text(self: Pin<&mut buffer>, t: &text); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:39:48 [INFO] [stdout] | [INFO] [stdout] 39 | fn erase_region(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:40:41 [INFO] [stdout] | [INFO] [stdout] 40 | fn clear(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:42:67 [INFO] [stdout] | [INFO] [stdout] 42 | fn del_backward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:43:66 [INFO] [stdout] | [INFO] [stdout] 43 | fn del_forward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:45:55 [INFO] [stdout] | [INFO] [stdout] 45 | fn new_cursor(self: Pin<&mut buffer>) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:46:56 [INFO] [stdout] | [INFO] [stdout] 46 | fn use_cursor(self: Pin<&mut buffer>, c: usize); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:47:43 [INFO] [stdout] | [INFO] [stdout] 47 | fn get_pos(self: &buffer) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:48:62 [INFO] [stdout] | [INFO] [stdout] 48 | fn goto_pos(self: Pin<&mut buffer>, pos: i64) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:50:62 [INFO] [stdout] | [INFO] [stdout] 50 | fn forward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:51:63 [INFO] [stdout] | [INFO] [stdout] 51 | fn backward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:52:64 [INFO] [stdout] | [INFO] [stdout] 52 | fn next_line(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:53:64 [INFO] [stdout] | [INFO] [stdout] 53 | fn prev_line(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:55:51 [INFO] [stdout] | [INFO] [stdout] 55 | fn start_of_buffer(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:56:49 [INFO] [stdout] | [INFO] [stdout] 56 | fn end_of_buffer(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:57:49 [INFO] [stdout] | [INFO] [stdout] 57 | fn start_of_line(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:58:47 [INFO] [stdout] | [INFO] [stdout] 58 | fn end_of_line(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:60:58 [INFO] [stdout] | [INFO] [stdout] 60 | fn start_of_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 61 | fn end_of_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:63:59 [INFO] [stdout] | [INFO] [stdout] 63 | fn narrow_to_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:64:60 [INFO] [stdout] | [INFO] [stdout] 64 | fn narrow_to_region(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:65:41 [INFO] [stdout] | [INFO] [stdout] 65 | fn widen(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 67 | fn text_to_string(t: &text) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | fn new_buffer() -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:22:61 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_contents_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `mime` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * mime-rs/ffi.rs [INFO] [stderr] * mime-rs/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected one of `!`, `+`, `::`, `;`, `where`, or `{`, found keyword `unsafe` [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:10:45 [INFO] [stdout] | [INFO] [stdout] 10 | fn new_buffer() -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> mime-rs/ffi.rs:10:52 [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:11:62 [INFO] [stdout] | [INFO] [stdout] 11 | fn open_buffer(name: &CxxString) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 4 | unsafe extern "C++" { [INFO] [stderr] | - while parsing this item list starting here [INFO] [stderr] ... [INFO] [stderr] 10 | fn new_buffer() -> UniquePtrunsafe ; [INFO] [stderr] | ^^^^^^ expected one of `!`, `+`, `::`, `;`, `where`, or `{` [INFO] [stderr] ... [INFO] [stderr] 68 | } [INFO] [stderr] | - the item list ends here [INFO] [stderr] [INFO] [stderr] error: expected `;` [INFO] [stderr] --> mime-rs/ffi.rs:10:52 [INFO] [stderr] | [INFO] [stderr] 10 | fn new_buffer() -> UniquePtrunsafe ; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `ffi::cpp` [INFO] [stderr] --> mime-rs/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use ffi::cpp; [INFO] [stderr] | ^^^^^^^^ no `cpp` in `ffi` [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0432`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:13:40 [INFO] [stdout] | [INFO] [stdout] 13 | fn empty(self: &buffer) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:14:40 [INFO] [stdout] | [INFO] [stdout] 14 | fn size(self: &buffer) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:15:43 [INFO] [stdout] | [INFO] [stdout] 15 | fn narrowed(self: &buffer) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | fn save_as(self: &buffer, name: &CxxString); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | fn set_mark(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 20 | fn get_mark(self: &buffer) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:22:62 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_contents_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:24:62 [INFO] [stdout] | [INFO] [stdout] 24 | fn find(self: Pin<&mut buffer>, t: &CxxString) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:27:63 [INFO] [stdout] | [INFO] [stdout] 27 | fn rfind(self: Pin<&mut buffer>, t: &CxxString) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:30:94 [INFO] [stdout] | [INFO] [stdout] 30 | fn replace(self: Pin<&mut buffer>, from: &CxxString, to: &CxxString, n: usize) -> i32; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:33:54 [INFO] [stdout] | [INFO] [stdout] 33 | fn copy_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:34:62 [INFO] [stdout] | [INFO] [stdout] 34 | fn cut_box(self: Pin<&mut buffer>) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | fn paste(self: Pin<&mut buffer>, t: &CxxString); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:37:56 [INFO] [stdout] | [INFO] [stdout] 37 | fn paste_text(self: Pin<&mut buffer>, t: &text); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:39:48 [INFO] [stdout] | [INFO] [stdout] 39 | fn erase_region(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:40:41 [INFO] [stdout] | [INFO] [stdout] 40 | fn clear(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:42:67 [INFO] [stdout] | [INFO] [stdout] 42 | fn del_backward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:43:66 [INFO] [stdout] | [INFO] [stdout] 43 | fn del_forward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:45:55 [INFO] [stdout] | [INFO] [stdout] 45 | fn new_cursor(self: Pin<&mut buffer>) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:46:56 [INFO] [stdout] | [INFO] [stdout] 46 | fn use_cursor(self: Pin<&mut buffer>, c: usize); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:47:43 [INFO] [stdout] | [INFO] [stdout] 47 | fn get_pos(self: &buffer) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:48:62 [INFO] [stdout] | [INFO] [stdout] 48 | fn goto_pos(self: Pin<&mut buffer>, pos: i64) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:50:62 [INFO] [stdout] | [INFO] [stdout] 50 | fn forward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:51:63 [INFO] [stdout] | [INFO] [stdout] 51 | fn backward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:52:64 [INFO] [stdout] | [INFO] [stdout] 52 | fn next_line(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:53:64 [INFO] [stdout] | [INFO] [stdout] 53 | fn prev_line(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:55:51 [INFO] [stdout] | [INFO] [stdout] 55 | fn start_of_buffer(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:56:49 [INFO] [stdout] | [INFO] [stdout] 56 | fn end_of_buffer(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:57:49 [INFO] [stdout] | [INFO] [stdout] 57 | fn start_of_line(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:58:47 [INFO] [stdout] | [INFO] [stdout] 58 | fn end_of_line(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:60:58 [INFO] [stdout] | [INFO] [stdout] 60 | fn start_of_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 61 | fn end_of_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:63:59 [INFO] [stdout] | [INFO] [stdout] 63 | fn narrow_to_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:64:60 [INFO] [stdout] | [INFO] [stdout] 64 | fn narrow_to_region(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:65:41 [INFO] [stdout] | [INFO] [stdout] 65 | fn widen(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 67 | fn text_to_string(t: &text) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | fn new_buffer() -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:22:61 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_contents_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.05s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling mime-rs v0.3.0 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:10:45 [INFO] [stdout] | [INFO] [stdout] 10 | fn new_buffer() -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:11:62 [INFO] [stdout] | [INFO] [stdout] 11 | fn open_buffer(name: &CxxString) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:13:40 [INFO] [stdout] | [INFO] [stdout] 13 | fn empty(self: &buffer) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:14:40 [INFO] [stdout] | [INFO] [stdout] 14 | fn size(self: &buffer) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:10:45 [INFO] [stdout] | [INFO] [stdout] 10 | fn new_buffer() -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:15:43 [INFO] [stdout] | [INFO] [stdout] 15 | fn narrowed(self: &buffer) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:11:62 [INFO] [stdout] | [INFO] [stdout] 11 | fn open_buffer(name: &CxxString) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | fn save_as(self: &buffer, name: &CxxString); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:13:40 [INFO] [stdout] | [INFO] [stdout] 13 | fn empty(self: &buffer) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | fn set_mark(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 20 | fn get_mark(self: &buffer) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:14:40 [INFO] [stdout] | [INFO] [stdout] 14 | fn size(self: &buffer) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:22:62 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_contents_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:15:43 [INFO] [stdout] | [INFO] [stdout] 15 | fn narrowed(self: &buffer) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:24:62 [INFO] [stdout] | [INFO] [stdout] 24 | fn find(self: Pin<&mut buffer>, t: &CxxString) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | fn save_as(self: &buffer, name: &CxxString); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:27:63 [INFO] [stdout] | [INFO] [stdout] 27 | fn rfind(self: Pin<&mut buffer>, t: &CxxString) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | fn set_mark(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 20 | fn get_mark(self: &buffer) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:22:62 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_contents_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:30:94 [INFO] [stdout] | [INFO] [stdout] 30 | fn replace(self: Pin<&mut buffer>, from: &CxxString, to: &CxxString, n: usize) -> i32; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:24:62 [INFO] [stdout] | [INFO] [stdout] 24 | fn find(self: Pin<&mut buffer>, t: &CxxString) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:33:54 [INFO] [stdout] | [INFO] [stdout] 33 | fn copy_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:27:63 [INFO] [stdout] | [INFO] [stdout] 27 | fn rfind(self: Pin<&mut buffer>, t: &CxxString) -> i64; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:34:62 [INFO] [stdout] | [INFO] [stdout] 34 | fn cut_box(self: Pin<&mut buffer>) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:30:94 [INFO] [stdout] | [INFO] [stdout] 30 | fn replace(self: Pin<&mut buffer>, from: &CxxString, to: &CxxString, n: usize) -> i32; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | fn paste(self: Pin<&mut buffer>, t: &CxxString); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:37:56 [INFO] [stdout] | [INFO] [stdout] 37 | fn paste_text(self: Pin<&mut buffer>, t: &text); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:33:54 [INFO] [stdout] | [INFO] [stdout] 33 | fn copy_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:39:48 [INFO] [stdout] | [INFO] [stdout] 39 | fn erase_region(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:40:41 [INFO] [stdout] | [INFO] [stdout] 40 | fn clear(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:34:62 [INFO] [stdout] | [INFO] [stdout] 34 | fn cut_box(self: Pin<&mut buffer>) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:42:67 [INFO] [stdout] | [INFO] [stdout] 42 | fn del_backward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | fn paste(self: Pin<&mut buffer>, t: &CxxString); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:37:56 [INFO] [stdout] | [INFO] [stdout] 37 | fn paste_text(self: Pin<&mut buffer>, t: &text); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:43:66 [INFO] [stdout] | [INFO] [stdout] 43 | fn del_forward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:45:55 [INFO] [stdout] | [INFO] [stdout] 45 | fn new_cursor(self: Pin<&mut buffer>) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:39:48 [INFO] [stdout] | [INFO] [stdout] 39 | fn erase_region(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:46:56 [INFO] [stdout] | [INFO] [stdout] 46 | fn use_cursor(self: Pin<&mut buffer>, c: usize); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:40:41 [INFO] [stdout] | [INFO] [stdout] 40 | fn clear(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:47:43 [INFO] [stdout] | [INFO] [stdout] 47 | fn get_pos(self: &buffer) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:48:62 [INFO] [stdout] | [INFO] [stdout] 48 | fn goto_pos(self: Pin<&mut buffer>, pos: i64) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:42:67 [INFO] [stdout] | [INFO] [stdout] 42 | fn del_backward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:50:62 [INFO] [stdout] | [INFO] [stdout] 50 | fn forward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:43:66 [INFO] [stdout] | [INFO] [stdout] 43 | fn del_forward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:51:63 [INFO] [stdout] | [INFO] [stdout] 51 | fn backward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:52:64 [INFO] [stdout] | [INFO] [stdout] 52 | fn next_line(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:45:55 [INFO] [stdout] | [INFO] [stdout] 45 | fn new_cursor(self: Pin<&mut buffer>) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:53:64 [INFO] [stdout] | [INFO] [stdout] 53 | fn prev_line(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:46:56 [INFO] [stdout] | [INFO] [stdout] 46 | fn use_cursor(self: Pin<&mut buffer>, c: usize); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:55:51 [INFO] [stdout] | [INFO] [stdout] 55 | fn start_of_buffer(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:47:43 [INFO] [stdout] | [INFO] [stdout] 47 | fn get_pos(self: &buffer) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:56:49 [INFO] [stdout] | [INFO] [stdout] 56 | fn end_of_buffer(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:48:62 [INFO] [stdout] | [INFO] [stdout] 48 | fn goto_pos(self: Pin<&mut buffer>, pos: i64) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:57:49 [INFO] [stdout] | [INFO] [stdout] 57 | fn start_of_line(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:50:62 [INFO] [stdout] | [INFO] [stdout] 50 | fn forward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:58:47 [INFO] [stdout] | [INFO] [stdout] 58 | fn end_of_line(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:51:63 [INFO] [stdout] | [INFO] [stdout] 51 | fn backward(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:60:58 [INFO] [stdout] | [INFO] [stdout] 60 | fn start_of_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:52:64 [INFO] [stdout] | [INFO] [stdout] 52 | fn next_line(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 61 | fn end_of_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:53:64 [INFO] [stdout] | [INFO] [stdout] 53 | fn prev_line(self: Pin<&mut buffer>, n: usize) -> usize; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:55:51 [INFO] [stdout] | [INFO] [stdout] 55 | fn start_of_buffer(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:63:59 [INFO] [stdout] | [INFO] [stdout] 63 | fn narrow_to_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:56:49 [INFO] [stdout] | [INFO] [stdout] 56 | fn end_of_buffer(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:64:60 [INFO] [stdout] | [INFO] [stdout] 64 | fn narrow_to_region(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:65:41 [INFO] [stdout] | [INFO] [stdout] 65 | fn widen(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 67 | fn text_to_string(t: &text) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | fn new_buffer() -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:22:61 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_contents_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:57:49 [INFO] [stdout] | [INFO] [stdout] 57 | fn start_of_line(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:58:47 [INFO] [stdout] | [INFO] [stdout] 58 | fn end_of_line(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:60:58 [INFO] [stdout] | [INFO] [stdout] 60 | fn start_of_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 61 | fn end_of_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:63:59 [INFO] [stdout] | [INFO] [stdout] 63 | fn narrow_to_block(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:64:60 [INFO] [stdout] | [INFO] [stdout] 64 | fn narrow_to_region(self: Pin<&mut buffer>) -> bool; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:65:41 [INFO] [stdout] | [INFO] [stdout] 65 | fn widen(self: Pin<&mut buffer>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 67 | fn text_to_string(t: &text) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | fn new_buffer() -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> mime-rs/ffi.rs:22:61 [INFO] [stdout] | [INFO] [stdout] 22 | fn get_contents_box(self: &buffer) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 40 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 40 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mime-rs` (lib) due to 41 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `mime-rs` (lib test) due to 41 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "6f95efb5b7f956a45e79554c80ad42711c63b28638ebc775ff2202bb5b09ae46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f95efb5b7f956a45e79554c80ad42711c63b28638ebc775ff2202bb5b09ae46", kill_on_drop: false }` [INFO] [stdout] 6f95efb5b7f956a45e79554c80ad42711c63b28638ebc775ff2202bb5b09ae46