[INFO] cloning repository https://github.com/a-bouts/nav-polars [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/a-bouts/nav-polars" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-bouts%2Fnav-polars", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-bouts%2Fnav-polars'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 20574084d9c9519b1d43a08bd54f9609a22bf65c [INFO] checking a-bouts/nav-polars/20574084d9c9519b1d43a08bd54f9609a22bf65c against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-bouts%2Fnav-polars" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/a-bouts/nav-polars 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] removed /workspace/builds/worker-6-tc2/source/rust-toolchain [INFO] started tweaking git repo https://github.com/a-bouts/nav-polars [INFO] finished tweaking git repo https://github.com/a-bouts/nav-polars [INFO] tweaked toml for git repo https://github.com/a-bouts/nav-polars written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/a-bouts/nav-polars 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] da0c368c66dba695a4263c9fb1d83ff047e8d5ae15b92040668f74e77092752b [INFO] running `Command { std: "docker" "start" "-a" "da0c368c66dba695a4263c9fb1d83ff047e8d5ae15b92040668f74e77092752b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da0c368c66dba695a4263c9fb1d83ff047e8d5ae15b92040668f74e77092752b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da0c368c66dba695a4263c9fb1d83ff047e8d5ae15b92040668f74e77092752b", kill_on_drop: false }` [INFO] [stdout] da0c368c66dba695a4263c9fb1d83ff047e8d5ae15b92040668f74e77092752b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] d8321eb272b731799564651fcae375a80d5b6f334f942ec7b0d9655328a47c55 [INFO] running `Command { std: "docker" "start" "-a" "d8321eb272b731799564651fcae375a80d5b6f334f942ec7b0d9655328a47c55", 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.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Checking futures-sink v0.3.17 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling tokio v1.13.0 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.17 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling http v0.2.5 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Checking inlinable_string v0.1.14 [INFO] [stderr] Compiling encoding_rs v0.8.29 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling multer v2.0.1 [INFO] [stderr] Compiling figment v0.10.6 [INFO] [stderr] Checking unchecked-index v0.2.2 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling state v0.5.2 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling serde_json v1.0.69 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking twoway v0.2.2 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling h2 v0.3.7 [INFO] [stderr] Compiling rocket v0.5.0-rc.1 [INFO] [stderr] Compiling anyhow v1.0.45 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking spin v0.9.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking directories-next v2.0.0 [INFO] [stderr] Compiling polars v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling tokio-macros v1.5.1 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Checking pear v0.2.3 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling hyper v0.14.14 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Checking async-stream v0.3.2 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking structopt v0.3.25 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking futures-executor v0.3.17 [INFO] [stderr] Checking futures v0.3.17 [INFO] [stderr] Checking tokio-stream v0.1.8 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.1 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking ubyte v0.10.1 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 [INFO] [stderr] Checking serde_yaml v0.8.21 [INFO] [stderr] Checking confy v0.4.0 (https://github.com/rust-cli/confy#664992ae) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `polars` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stdout] warning: unused import: `list` [INFO] [stdout] --> src/api/v1/mod.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | async fn list(polar_service: &State, archived: Option, sort: Option) -> Result>, Status> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/api/v1/mod.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[E0574]: expected struct, variant or union type, found function `list` [INFO] [stderr] --> src/api/v1/mod.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `get` [INFO] [stderr] --> src/api/v1/mod.rs:9:19 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `find_by_polar_id` [INFO] [stderr] --> src/api/v1/mod.rs:9:24 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `post` [INFO] [stderr] --> src/api/v1/mod.rs:9:42 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `put` [INFO] [stderr] --> src/api/v1/mod.rs:9:48 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `delete` [INFO] [stderr] --> src/api/v1/mod.rs:9:53 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `archive` [INFO] [stderr] --> src/api/v1/mod.rs:9:61 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `restore` [INFO] [stderr] --> src/api/v1/mod.rs:9:70 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] warning: unused imports: `delete`, `get`, `post`, and `put` [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/api/v1/mod.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | async fn get(polar_service: &State, polar_id: String) -> Result, Status> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/api/v1/mod.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use rocket::{delete, get, post, put, Route, routes, State}; [INFO] [stderr] | ^^^^^^ ^^^ ^^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0574`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unused import: `find_by_polar_id` [INFO] [stdout] --> src/api/v1/mod.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | async fn find_by_polar_id(polar_service: &State, polar_id: u8) -> Result, Status> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/api/v1/mod.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | async fn post(polar_service: &State, polar: Json) -> Status { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `archive` [INFO] [stdout] --> src/api/v1/mod.rs:93:10 [INFO] [stdout] | [INFO] [stdout] 93 | async fn archive(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `restore` [INFO] [stdout] --> src/api/v1/mod.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | async fn restore(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `put` [INFO] [stdout] --> src/api/v1/mod.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | async fn put(polar_service: &State, polar_id: String, polar: Json) -> Status { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete` [INFO] [stdout] --> src/api/v1/mod.rs:134:10 [INFO] [stdout] | [INFO] [stdout] 134 | async fn delete(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | std::env::set_var("RUST_LOG", "debug"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [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 #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 22 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 23 ~ unsafe { std::env::set_var("RUST_LOG", "debug") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/polar.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | if let Err(e) = fs::create_dir_all(&dir) { [INFO] [stdout] | ^^^^^^^^^^^^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/polar.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 20 ~ match fs::create_dir_all(&dir) { Err(e) => { [INFO] [stdout] 21 | panic!("Error creating dir {:?} : {}", dir, e); [INFO] [stdout] 22 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/polar.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | if let Ok(entry) = entry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/polar.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 48 ~ match entry { Ok(entry) => { [INFO] [stdout] 49 | if let Ok(metadata) = entry.metadata() { [INFO] [stdout] ... [INFO] [stdout] 73 | } [INFO] [stdout] 74 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/polar.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | if let Ok(metadata) = entry.metadata() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/polar.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 49 ~ match entry.metadata() { Ok(metadata) => { [INFO] [stdout] 50 | if metadata.is_file() { [INFO] [stdout] ... [INFO] [stdout] 70 | } [INFO] [stdout] 71 ~ } _ => { [INFO] [stdout] 72 | println!("Couldn't get metadata for {:?}", entry.path()); [INFO] [stdout] 73 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/polar.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(ext) = entry.path().extension() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/polar.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 51 ~ match entry.path().extension() { Some(ext) => { [INFO] [stdout] 52 | if ext == OsStr::new("yaml") { [INFO] [stdout] ... [INFO] [stdout] 68 | } [INFO] [stdout] 69 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `list` [INFO] [stdout] --> src/api/v1/mod.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | async fn list(polar_service: &State, archived: Option, sort: Option) -> Result>, Status> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `polars` [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/api/v1/mod.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | async fn get(polar_service: &State, polar_id: String) -> Result, Status> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/api/v1/mod.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[E0574]: expected struct, variant or union type, found function `list` [INFO] [stderr] --> src/api/v1/mod.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `get` [INFO] [stderr] --> src/api/v1/mod.rs:9:19 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `find_by_polar_id` [INFO] [stderr] --> src/api/v1/mod.rs:9:24 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `post` [INFO] [stderr] --> src/api/v1/mod.rs:9:42 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stdout] warning: unused import: `find_by_polar_id` [INFO] [stdout] --> src/api/v1/mod.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | async fn find_by_polar_id(polar_service: &State, polar_id: u8) -> Result, Status> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `put` [INFO] [stderr] --> src/api/v1/mod.rs:9:48 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `delete` [INFO] [stderr] --> src/api/v1/mod.rs:9:53 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `archive` [INFO] [stderr] --> src/api/v1/mod.rs:9:61 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `restore` [INFO] [stderr] --> src/api/v1/mod.rs:9:70 [INFO] [stderr] | [INFO] [stderr] 9 | routes![list, get, find_by_polar_id, post, put, delete, archive, restore] [INFO] [stderr] | ^^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] warning: unused imports: `delete`, `get`, `post`, and `put` [INFO] [stderr] --> src/api/v1/mod.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use rocket::{delete, get, post, put, Route, routes, State}; [INFO] [stderr] | ^^^^^^ ^^^ ^^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0574`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/api/v1/mod.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | async fn post(polar_service: &State, polar: Json) -> Status { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `archive` [INFO] [stdout] --> src/api/v1/mod.rs:93:10 [INFO] [stdout] | [INFO] [stdout] 93 | async fn archive(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `restore` [INFO] [stdout] --> src/api/v1/mod.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | async fn restore(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `put` [INFO] [stdout] --> src/api/v1/mod.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | async fn put(polar_service: &State, polar_id: String, polar: Json) -> Status { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete` [INFO] [stdout] --> src/api/v1/mod.rs:134:10 [INFO] [stdout] | [INFO] [stdout] 134 | async fn delete(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | std::env::set_var("RUST_LOG", "debug"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [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 #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 22 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 23 ~ unsafe { std::env::set_var("RUST_LOG", "debug") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/polar.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | if let Err(e) = fs::create_dir_all(&dir) { [INFO] [stdout] | ^^^^^^^^^^^^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/polar.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 20 ~ match fs::create_dir_all(&dir) { Err(e) => { [INFO] [stdout] 21 | panic!("Error creating dir {:?} : {}", dir, e); [INFO] [stdout] 22 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/polar.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | if let Ok(entry) = entry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/polar.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 48 ~ match entry { Ok(entry) => { [INFO] [stdout] 49 | if let Ok(metadata) = entry.metadata() { [INFO] [stdout] ... [INFO] [stdout] 73 | } [INFO] [stdout] 74 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/polar.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | if let Ok(metadata) = entry.metadata() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/polar.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 49 ~ match entry.metadata() { Ok(metadata) => { [INFO] [stdout] 50 | if metadata.is_file() { [INFO] [stdout] ... [INFO] [stdout] 70 | } [INFO] [stdout] 71 ~ } _ => { [INFO] [stdout] 72 | println!("Couldn't get metadata for {:?}", entry.path()); [INFO] [stdout] 73 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/polar.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(ext) = entry.path().extension() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/polar.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 51 ~ match entry.path().extension() { Some(ext) => { [INFO] [stdout] 52 | if ext == OsStr::new("yaml") { [INFO] [stdout] ... [INFO] [stdout] 68 | } [INFO] [stdout] 69 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.46s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: ubyte v0.10.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling polars v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `list` [INFO] [stdout] --> src/api/v1/mod.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | async fn list(polar_service: &State, archived: Option, sort: Option) -> Result>, Status> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `list` [INFO] [stdout] --> src/api/v1/mod.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | async fn list(polar_service: &State, archived: Option, sort: Option) -> Result>, Status> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/api/v1/mod.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | async fn get(polar_service: &State, polar_id: String) -> Result, Status> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/api/v1/mod.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | async fn get(polar_service: &State, polar_id: String) -> Result, Status> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `find_by_polar_id` [INFO] [stdout] --> src/api/v1/mod.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | async fn find_by_polar_id(polar_service: &State, polar_id: u8) -> Result, Status> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `find_by_polar_id` [INFO] [stdout] --> src/api/v1/mod.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | async fn find_by_polar_id(polar_service: &State, polar_id: u8) -> Result, Status> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/api/v1/mod.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | async fn post(polar_service: &State, polar: Json) -> Status { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/api/v1/mod.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | async fn post(polar_service: &State, polar: Json) -> Status { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `archive` [INFO] [stdout] --> src/api/v1/mod.rs:93:10 [INFO] [stdout] | [INFO] [stdout] 93 | async fn archive(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `archive` [INFO] [stdout] --> src/api/v1/mod.rs:93:10 [INFO] [stdout] | [INFO] [stdout] 93 | async fn archive(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `restore` [INFO] [stdout] --> src/api/v1/mod.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | async fn restore(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `restore` [INFO] [stdout] --> src/api/v1/mod.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | async fn restore(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `put` [INFO] [stdout] --> src/api/v1/mod.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | async fn put(polar_service: &State, polar_id: String, polar: Json) -> Status { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `put` [INFO] [stdout] --> src/api/v1/mod.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | async fn put(polar_service: &State, polar_id: String, polar: Json) -> Status { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete` [INFO] [stdout] --> src/api/v1/mod.rs:134:10 [INFO] [stdout] | [INFO] [stdout] 134 | async fn delete(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete` [INFO] [stdout] --> src/api/v1/mod.rs:134:10 [INFO] [stdout] | [INFO] [stdout] 134 | async fn delete(polar_service: &State, polar_id: String) -> Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | std::env::set_var("RUST_LOG", "debug"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | std::env::set_var("RUST_LOG", "debug"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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 1 previous error; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 8 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 `polars` (bin "polars") due to 2 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `polars` (bin "polars" test) due to 2 previous errors; 8 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" "d8321eb272b731799564651fcae375a80d5b6f334f942ec7b0d9655328a47c55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8321eb272b731799564651fcae375a80d5b6f334f942ec7b0d9655328a47c55", kill_on_drop: false }` [INFO] [stdout] d8321eb272b731799564651fcae375a80d5b6f334f942ec7b0d9655328a47c55