[INFO] fetching crate libosmium 0.3.1... [INFO] checking libosmium-0.3.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate libosmium 0.3.1 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate libosmium 0.3.1 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 libosmium 0.3.1 [INFO] finished tweaking crates.io crate libosmium 0.3.1 [INFO] tweaked toml for crates.io crate libosmium 0.3.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate libosmium 0.3.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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 378290a02b86089d6bb993d6be88bd6c4387cf68fe708d797f84ba62f7c1dcc7 [INFO] running `Command { std: "docker" "start" "-a" "378290a02b86089d6bb993d6be88bd6c4387cf68fe708d797f84ba62f7c1dcc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "378290a02b86089d6bb993d6be88bd6c4387cf68fe708d797f84ba62f7c1dcc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "378290a02b86089d6bb993d6be88bd6c4387cf68fe708d797f84ba62f7c1dcc7", kill_on_drop: false }` [INFO] [stdout] 378290a02b86089d6bb993d6be88bd6c4387cf68fe708d797f84ba62f7c1dcc7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 3ec76859f72d1e87c5633ae0a6f4e69e737b9379e93c383f6208b414ee5b6936 [INFO] running `Command { std: "docker" "start" "-a" "3ec76859f72d1e87c5633ae0a6f4e69e737b9379e93c383f6208b414ee5b6936", 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] Fixed Cargo.toml (1 fix) [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling libosmium v0.3.1 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `libosmium` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/handler.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/handler.rs:42:23 [INFO] [stderr] | [INFO] [stderr] 42 | ($function:ident, $handler:expr_2021, $file:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/handler.rs:42:43 [INFO] [stderr] | [INFO] [stderr] 42 | ($function:ident, $handler:expr_2021, $file:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/handler.rs:45:23 [INFO] [stderr] | [INFO] [stderr] 45 | ($function:ident, $handler:expr_2021, $file:expr_2021, $($args:expr_2021),*) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/handler.rs:45:43 [INFO] [stderr] | [INFO] [stderr] 45 | ($function:ident, $handler:expr_2021, $file:expr_2021, $($args:expr_2021),*) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/handler.rs:45:62 [INFO] [stderr] | [INFO] [stderr] 45 | ($function:ident, $handler:expr_2021, $file:expr_2021, $($args:expr_2021),*) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/area.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 121 | | fn area_num_rings(area: &Area) -> NumRings; [INFO] [stdout] 122 | | fn area_outer_rings(area: &Area) -> ItemIteratorRange; [INFO] [stdout] 123 | | fn area_inner_rings<'a>(area: &'a Area, outer: &'a OuterRing) -> ItemIteratorRange<'a, Inner>; [INFO] [stdout] 124 | | fn item_iterator_outer_ring_increment(iter: &mut ItemIterator); [INFO] [stdout] 125 | | fn item_iterator_inner_ring_increment(iter: &mut ItemIterator); [INFO] [stdout] 126 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/handler.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 28 | | /// error_buffer is expected to be 256 bytes in size [INFO] [stdout] 29 | | /// and c++ will only write 255, leaving the last one NUL. [INFO] [stdout] 30 | | fn apply(handler: HandlerTable, file: *const c_char, error_buffer: *mut c_char); [INFO] [stdout] ... | [INFO] [stdout] 37 | | ); [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/handler.rs:42:32 [INFO] [stdout] | [INFO] [stdout] 42 | ($function:ident, $handler:expr, $file:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 42 | ($function:ident, $handler:expr_2021, $file:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/handler.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | ($function:ident, $handler:expr, $file:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 42 | ($function:ident, $handler:expr, $file:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/handler.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr, $file:expr, $($args:expr),*) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr_2021, $file:expr, $($args:expr),*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/handler.rs:45:44 [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr, $file:expr, $($args:expr),*) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr, $file:expr_2021, $($args:expr),*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/handler.rs:45:58 [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr, $file:expr, $($args:expr),*) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr, $file:expr, $($args:expr_2021),*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/node.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 45 | | fn node_location(node: &Node) -> Location; [INFO] [stdout] 46 | | fn set_node_location(node: &mut Node, location: &Location); [INFO] [stdout] 47 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/node_ref_list.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 48 | | fn node_ref_list_begin_const(list: &NodeRefList) -> &NodeRef; [INFO] [stdout] 49 | | fn node_ref_list_begin(list: &mut NodeRefList) -> &mut NodeRef; [INFO] [stdout] 50 | | fn node_ref_list_size(list: &NodeRefList) -> usize; [INFO] [stdout] 51 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/object.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 87 | | fn OSMObject_id(object: &OSMObject) -> ObjectId; [INFO] [stdout] 88 | | fn OSMObject_positive_id(object: &OSMObject) -> UnsignedObjectId; [INFO] [stdout] 89 | | fn OSMObject_deleted(object: &OSMObject) -> bool; [INFO] [stdout] ... | [INFO] [stdout] 96 | | fn OSMObject_tags(object: &OSMObject) -> &TagList; [INFO] [stdout] 97 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/tag_list.rs:118:1 [INFO] [stdout] | [INFO] [stdout] 118 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 119 | | fn tag_list_begin(list: &TagList) -> *const c_char; [INFO] [stdout] 120 | | fn tag_list_end(list: &TagList) -> *const c_char; [INFO] [stdout] 121 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/way.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 23 | | fn way_nodes_const(way: &Way) -> &WayNodeList; [INFO] [stdout] 24 | | fn way_nodes(way: &mut Way) -> &mut WayNodeList; [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `area::item_iterator_outer_ring_increment` is unsafe and requires unsafe block [INFO] [stdout] --> src/area.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | item_iterator_outer_ring_increment(iter); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/area.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | unsafe fn increment(iter: &mut ItemIterator) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `area::item_iterator_inner_ring_increment` is unsafe and requires unsafe block [INFO] [stdout] --> src/area.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | item_iterator_inner_ring_increment(iter); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/area.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | unsafe fn increment(iter: &mut ItemIterator) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:112:11 [INFO] [stdout] | [INFO] [stdout] 112 | while *ptr != 0 { [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tag_list.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | unsafe fn after_null(mut ptr: *const c_char) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | ptr = ptr.add(1); [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | ptr.add(1) [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `libosmium` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/handler.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/handler.rs:42:23 [INFO] [stderr] | [INFO] [stderr] 42 | ($function:ident, $handler:expr_2021, $file:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/handler.rs:42:43 [INFO] [stderr] | [INFO] [stderr] 42 | ($function:ident, $handler:expr_2021, $file:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/handler.rs:45:23 [INFO] [stderr] | [INFO] [stderr] 45 | ($function:ident, $handler:expr_2021, $file:expr_2021, $($args:expr_2021),*) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/handler.rs:45:43 [INFO] [stderr] | [INFO] [stderr] 45 | ($function:ident, $handler:expr_2021, $file:expr_2021, $($args:expr_2021),*) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/handler.rs:45:62 [INFO] [stderr] | [INFO] [stderr] 45 | ($function:ident, $handler:expr_2021, $file:expr_2021, $($args:expr_2021),*) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/area.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 121 | | fn area_num_rings(area: &Area) -> NumRings; [INFO] [stdout] 122 | | fn area_outer_rings(area: &Area) -> ItemIteratorRange; [INFO] [stdout] 123 | | fn area_inner_rings<'a>(area: &'a Area, outer: &'a OuterRing) -> ItemIteratorRange<'a, Inner>; [INFO] [stdout] 124 | | fn item_iterator_outer_ring_increment(iter: &mut ItemIterator); [INFO] [stdout] 125 | | fn item_iterator_inner_ring_increment(iter: &mut ItemIterator); [INFO] [stdout] 126 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/handler.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 28 | | /// error_buffer is expected to be 256 bytes in size [INFO] [stdout] 29 | | /// and c++ will only write 255, leaving the last one NUL. [INFO] [stdout] 30 | | fn apply(handler: HandlerTable, file: *const c_char, error_buffer: *mut c_char); [INFO] [stdout] ... | [INFO] [stdout] 37 | | ); [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/handler.rs:42:32 [INFO] [stdout] | [INFO] [stdout] 42 | ($function:ident, $handler:expr, $file:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 42 | ($function:ident, $handler:expr_2021, $file:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/handler.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | ($function:ident, $handler:expr, $file:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 42 | ($function:ident, $handler:expr, $file:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/handler.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr, $file:expr, $($args:expr),*) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr_2021, $file:expr, $($args:expr),*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/handler.rs:45:44 [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr, $file:expr, $($args:expr),*) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr, $file:expr_2021, $($args:expr),*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/handler.rs:45:58 [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr, $file:expr, $($args:expr),*) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 45 | ($function:ident, $handler:expr, $file:expr, $($args:expr_2021),*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/node.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 45 | | fn node_location(node: &Node) -> Location; [INFO] [stdout] 46 | | fn set_node_location(node: &mut Node, location: &Location); [INFO] [stdout] 47 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/node_ref_list.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 48 | | fn node_ref_list_begin_const(list: &NodeRefList) -> &NodeRef; [INFO] [stdout] 49 | | fn node_ref_list_begin(list: &mut NodeRefList) -> &mut NodeRef; [INFO] [stdout] 50 | | fn node_ref_list_size(list: &NodeRefList) -> usize; [INFO] [stdout] 51 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/object.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 87 | | fn OSMObject_id(object: &OSMObject) -> ObjectId; [INFO] [stdout] 88 | | fn OSMObject_positive_id(object: &OSMObject) -> UnsignedObjectId; [INFO] [stdout] 89 | | fn OSMObject_deleted(object: &OSMObject) -> bool; [INFO] [stdout] ... | [INFO] [stdout] 96 | | fn OSMObject_tags(object: &OSMObject) -> &TagList; [INFO] [stdout] 97 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/tag_list.rs:118:1 [INFO] [stdout] | [INFO] [stdout] 118 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 119 | | fn tag_list_begin(list: &TagList) -> *const c_char; [INFO] [stdout] 120 | | fn tag_list_end(list: &TagList) -> *const c_char; [INFO] [stdout] 121 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/way.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 23 | | fn way_nodes_const(way: &Way) -> &WayNodeList; [INFO] [stdout] 24 | | fn way_nodes(way: &mut Way) -> &mut WayNodeList; [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `area::item_iterator_outer_ring_increment` is unsafe and requires unsafe block [INFO] [stdout] --> src/area.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | item_iterator_outer_ring_increment(iter); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/area.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | unsafe fn increment(iter: &mut ItemIterator) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `area::item_iterator_inner_ring_increment` is unsafe and requires unsafe block [INFO] [stdout] --> src/area.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | item_iterator_inner_ring_increment(iter); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/area.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | unsafe fn increment(iter: &mut ItemIterator) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:112:11 [INFO] [stdout] | [INFO] [stdout] 112 | while *ptr != 0 { [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tag_list.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | unsafe fn after_null(mut ptr: *const c_char) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.52s [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | ptr = ptr.add(1); [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | ptr.add(1) [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling libosmium v0.3.1 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/area.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | / extern "C" { [INFO] [stdout] 121 | | fn area_num_rings(area: &Area) -> NumRings; [INFO] [stdout] 122 | | fn area_outer_rings(area: &Area) -> ItemIteratorRange; [INFO] [stdout] 123 | | fn area_inner_rings<'a>(area: &'a Area, outer: &'a OuterRing) -> ItemIteratorRange<'a, Inner>; [INFO] [stdout] 124 | | fn item_iterator_outer_ring_increment(iter: &mut ItemIterator); [INFO] [stdout] 125 | | fn item_iterator_inner_ring_increment(iter: &mut ItemIterator); [INFO] [stdout] 126 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/handler.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | / extern "C" { [INFO] [stdout] 28 | | /// error_buffer is expected to be 256 bytes in size [INFO] [stdout] 29 | | /// and c++ will only write 255, leaving the last one NUL. [INFO] [stdout] 30 | | fn apply(handler: HandlerTable, file: *const c_char, error_buffer: *mut c_char); [INFO] [stdout] ... | [INFO] [stdout] 37 | | ); [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/node.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / extern "C" { [INFO] [stdout] 45 | | fn node_location(node: &Node) -> Location; [INFO] [stdout] 46 | | fn set_node_location(node: &mut Node, location: &Location); [INFO] [stdout] 47 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/node_ref_list.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / extern "C" { [INFO] [stdout] 48 | | fn node_ref_list_begin_const(list: &NodeRefList) -> &NodeRef; [INFO] [stdout] 49 | | fn node_ref_list_begin(list: &mut NodeRefList) -> &mut NodeRef; [INFO] [stdout] 50 | | fn node_ref_list_size(list: &NodeRefList) -> usize; [INFO] [stdout] 51 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/object.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | / extern "C" { [INFO] [stdout] 87 | | fn OSMObject_id(object: &OSMObject) -> ObjectId; [INFO] [stdout] 88 | | fn OSMObject_positive_id(object: &OSMObject) -> UnsignedObjectId; [INFO] [stdout] 89 | | fn OSMObject_deleted(object: &OSMObject) -> bool; [INFO] [stdout] ... | [INFO] [stdout] 96 | | fn OSMObject_tags(object: &OSMObject) -> &TagList; [INFO] [stdout] 97 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/tag_list.rs:118:1 [INFO] [stdout] | [INFO] [stdout] 118 | / extern "C" { [INFO] [stdout] 119 | | fn tag_list_begin(list: &TagList) -> *const c_char; [INFO] [stdout] 120 | | fn tag_list_end(list: &TagList) -> *const c_char; [INFO] [stdout] 121 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/way.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / extern "C" { [INFO] [stdout] 23 | | fn way_nodes_const(way: &Way) -> &WayNodeList; [INFO] [stdout] 24 | | fn way_nodes(way: &mut Way) -> &mut WayNodeList; [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/area.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | / extern "C" { [INFO] [stdout] 121 | | fn area_num_rings(area: &Area) -> NumRings; [INFO] [stdout] 122 | | fn area_outer_rings(area: &Area) -> ItemIteratorRange; [INFO] [stdout] 123 | | fn area_inner_rings<'a>(area: &'a Area, outer: &'a OuterRing) -> ItemIteratorRange<'a, Inner>; [INFO] [stdout] 124 | | fn item_iterator_outer_ring_increment(iter: &mut ItemIterator); [INFO] [stdout] 125 | | fn item_iterator_inner_ring_increment(iter: &mut ItemIterator); [INFO] [stdout] 126 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/handler.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | / extern "C" { [INFO] [stdout] 28 | | /// error_buffer is expected to be 256 bytes in size [INFO] [stdout] 29 | | /// and c++ will only write 255, leaving the last one NUL. [INFO] [stdout] 30 | | fn apply(handler: HandlerTable, file: *const c_char, error_buffer: *mut c_char); [INFO] [stdout] ... | [INFO] [stdout] 37 | | ); [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/node.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / extern "C" { [INFO] [stdout] 45 | | fn node_location(node: &Node) -> Location; [INFO] [stdout] 46 | | fn set_node_location(node: &mut Node, location: &Location); [INFO] [stdout] 47 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/node_ref_list.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / extern "C" { [INFO] [stdout] 48 | | fn node_ref_list_begin_const(list: &NodeRefList) -> &NodeRef; [INFO] [stdout] 49 | | fn node_ref_list_begin(list: &mut NodeRefList) -> &mut NodeRef; [INFO] [stdout] 50 | | fn node_ref_list_size(list: &NodeRefList) -> usize; [INFO] [stdout] 51 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/object.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | / extern "C" { [INFO] [stdout] 87 | | fn OSMObject_id(object: &OSMObject) -> ObjectId; [INFO] [stdout] 88 | | fn OSMObject_positive_id(object: &OSMObject) -> UnsignedObjectId; [INFO] [stdout] 89 | | fn OSMObject_deleted(object: &OSMObject) -> bool; [INFO] [stdout] ... | [INFO] [stdout] 96 | | fn OSMObject_tags(object: &OSMObject) -> &TagList; [INFO] [stdout] 97 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/tag_list.rs:118:1 [INFO] [stdout] | [INFO] [stdout] 118 | / extern "C" { [INFO] [stdout] 119 | | fn tag_list_begin(list: &TagList) -> *const c_char; [INFO] [stdout] 120 | | fn tag_list_end(list: &TagList) -> *const c_char; [INFO] [stdout] 121 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/way.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / extern "C" { [INFO] [stdout] 23 | | fn way_nodes_const(way: &Way) -> &WayNodeList; [INFO] [stdout] 24 | | fn way_nodes(way: &mut Way) -> &mut WayNodeList; [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `area::item_iterator_outer_ring_increment` is unsafe and requires unsafe block [INFO] [stdout] --> src/area.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | item_iterator_outer_ring_increment(iter); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/area.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | unsafe fn increment(iter: &mut ItemIterator) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `area::item_iterator_inner_ring_increment` is unsafe and requires unsafe block [INFO] [stdout] --> src/area.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | item_iterator_inner_ring_increment(iter); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/area.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | unsafe fn increment(iter: &mut ItemIterator) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:112:11 [INFO] [stdout] | [INFO] [stdout] 112 | while *ptr != 0 { [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tag_list.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | unsafe fn after_null(mut ptr: *const c_char) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `area::item_iterator_outer_ring_increment` is unsafe and requires unsafe block [INFO] [stdout] --> src/area.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | item_iterator_outer_ring_increment(iter); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/area.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | unsafe fn increment(iter: &mut ItemIterator) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `area::item_iterator_inner_ring_increment` is unsafe and requires unsafe block [INFO] [stdout] --> src/area.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | item_iterator_inner_ring_increment(iter); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/area.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | unsafe fn increment(iter: &mut ItemIterator) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | ptr = ptr.add(1); [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | ptr.add(1) [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:112:11 [INFO] [stdout] | [INFO] [stdout] 112 | while *ptr != 0 { [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/tag_list.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | unsafe fn after_null(mut ptr: *const c_char) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `libosmium` (lib) due to 8 previous errors; 5 warnings emitted [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | ptr = ptr.add(1); [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/tag_list.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | ptr.add(1) [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `libosmium` (lib test) due to 8 previous errors; 5 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "3ec76859f72d1e87c5633ae0a6f4e69e737b9379e93c383f6208b414ee5b6936", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ec76859f72d1e87c5633ae0a6f4e69e737b9379e93c383f6208b414ee5b6936", kill_on_drop: false }` [INFO] [stdout] 3ec76859f72d1e87c5633ae0a6f4e69e737b9379e93c383f6208b414ee5b6936