[INFO] cloning repository https://github.com/duckdb/extension-template-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/duckdb/extension-template-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduckdb%2Fextension-template-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduckdb%2Fextension-template-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f36762f8703f8db63d206c6376b0793f51c6c864 [INFO] checking duckdb/extension-template-rs/f36762f8703f8db63d206c6376b0793f51c6c864 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduckdb%2Fextension-template-rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/duckdb/extension-template-rs on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/duckdb/extension-template-rs [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/duckdb/extension-template-rs [INFO] tweaked toml for git repo https://github.com/duckdb/extension-template-rs written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/duckdb/extension-template-rs 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" "+65132f36b923285d5da381c2fbafee6ce899e841" "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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b089f23d18edc9b6f3c21cd2de31cd70e832a27c000e6de44c4728a89aa9e07 [INFO] running `Command { std: "docker" "start" "-a" "7b089f23d18edc9b6f3c21cd2de31cd70e832a27c000e6de44c4728a89aa9e07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b089f23d18edc9b6f3c21cd2de31cd70e832a27c000e6de44c4728a89aa9e07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b089f23d18edc9b6f3c21cd2de31cd70e832a27c000e6de44c4728a89aa9e07", kill_on_drop: false }` [INFO] [stdout] 7b089f23d18edc9b6f3c21cd2de31cd70e832a27c000e6de44c4728a89aa9e07 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3bfd72ae5f3bc60b92e1662159c992b14f3f329aa5fae85a6e7f370ba4b03512 [INFO] running `Command { std: "docker" "start" "-a" "3bfd72ae5f3bc60b92e1662159c992b14f3f329aa5fae85a6e7f370ba4b03512", 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 autocfg v1.4.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Checking arrow-schema v53.1.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking lexical-util v1.0.3 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling prettyplease v0.2.22 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Checking lexical-write-integer v1.0.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking lexical-parse-integer v1.0.2 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Checking lexical-parse-float v1.0.2 [INFO] [stderr] Checking lexical-write-float v1.0.2 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking arrow-buffer v53.1.0 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking lexical-core v1.0.2 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling xattr v1.3.1 [INFO] [stderr] Compiling tar v0.4.42 [INFO] [stderr] Checking arrow-data v53.1.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Checking fallible-iterator v0.3.0 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking arrow-array v53.1.0 [INFO] [stderr] Checking fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Checking regex v1.11.0 [INFO] [stderr] Checking arrow-select v53.1.0 [INFO] [stderr] Checking arrow-row v53.1.0 [INFO] [stderr] Checking arrow-arith v53.1.0 [INFO] [stderr] Checking arrow-ord v53.1.0 [INFO] [stderr] Checking arrow-string v53.1.0 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Checking comfy-table v7.1.1 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling duckdb-loadable-macros v0.1.3 [INFO] [stderr] Checking arrow-cast v53.1.0 [INFO] [stderr] Checking arrow v53.1.0 [INFO] [stderr] Compiling libduckdb-sys v1.1.1 [INFO] [stderr] Checking duckdb v1.1.1 [INFO] [stderr] Checking rusty_quack v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/wasm_lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rusty_quack` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/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 item after attributes [INFO] [stderr] --> src/lib.rs:90:1 [INFO] [stderr] | [INFO] [stderr] 90 | #[duckdb_entrypoint_c_api(ext_name = "rusty_quack", min_duckdb_version = "v0.0.1")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ usage of unsafe attribute [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 #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 91 ~ unsafe(pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | Ok(()) [INFO] [stdout] 95 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libduckdb_sys::duckdb_rs_extension_api_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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 `duckdb::Connection::open_from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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 `extension_entrypoint` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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] 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 `rusty_quack` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/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 item after attributes [INFO] [stderr] --> src/lib.rs:90:1 [INFO] [stderr] | [INFO] [stderr] 90 | #[duckdb_entrypoint_c_api(ext_name = "rusty_quack", min_duckdb_version = "v0.0.1")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ usage of unsafe attribute [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 #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 91 ~ unsafe(pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | Ok(()) [INFO] [stdout] 95 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `lib::libduckdb_sys::duckdb_rs_extension_api_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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 `lib::duckdb::Connection::open_from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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 `lib::extension_entrypoint` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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] 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 `rusty_quack` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/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 item after attributes [INFO] [stderr] --> src/lib.rs:90:1 [INFO] [stderr] | [INFO] [stderr] 90 | #[duckdb_entrypoint_c_api(ext_name = "rusty_quack", min_duckdb_version = "v0.0.1")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ usage of unsafe attribute [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 #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 91 ~ unsafe(pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | Ok(()) [INFO] [stdout] 95 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libduckdb_sys::duckdb_rs_extension_api_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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 `duckdb::Connection::open_from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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 `extension_entrypoint` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.28s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rusty_quack v0.1.0 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 91 ~ unsafe(pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | Ok(()) [INFO] [stdout] 95 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 91 ~ unsafe(pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | Ok(()) [INFO] [stdout] 95 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | / pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | | Ok(()) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 91 ~ unsafe(pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { [INFO] [stdout] 92 | con.register_table_function::(EXTENSION_NAME) [INFO] [stdout] 93 | .expect("Failed to register hello table function"); [INFO] [stdout] 94 | Ok(()) [INFO] [stdout] 95 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rusty_quack` (lib) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rusty_quack` (example "rusty_quack") due to 1 previous error [INFO] [stderr] error: could not compile `rusty_quack` (lib test) due to 1 previous error [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" "3bfd72ae5f3bc60b92e1662159c992b14f3f329aa5fae85a6e7f370ba4b03512", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bfd72ae5f3bc60b92e1662159c992b14f3f329aa5fae85a6e7f370ba4b03512", kill_on_drop: false }` [INFO] [stdout] 3bfd72ae5f3bc60b92e1662159c992b14f3f329aa5fae85a6e7f370ba4b03512