[INFO] fetching crate rocket_codegen 0.5.1... [INFO] checking rocket_codegen-0.5.1 against try#da25749bf5e6ba5ed862ff361c19afff2a986b2d for pr-132712 [INFO] extracting crate rocket_codegen 0.5.1 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate rocket_codegen 0.5.1 on toolchain da25749bf5e6ba5ed862ff361c19afff2a986b2d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rocket_codegen 0.5.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate rocket_codegen 0.5.1 [INFO] tweaked toml for crates.io crate rocket_codegen 0.5.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 134 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8860176b4cbbbe01b73b3be520c637e3a930c259d4f6463e1ca4204cb40b32c6 [INFO] running `Command { std: "docker" "start" "-a" "8860176b4cbbbe01b73b3be520c637e3a930c259d4f6463e1ca4204cb40b32c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8860176b4cbbbe01b73b3be520c637e3a930c259d4f6463e1ca4204cb40b32c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8860176b4cbbbe01b73b3be520c637e3a930c259d4f6463e1ca4204cb40b32c6", kill_on_drop: false }` [INFO] [stdout] 8860176b4cbbbe01b73b3be520c637e3a930c259d4f6463e1ca4204cb40b32c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27d521b1b4b695bc26de32fcc38abfb5fb71461fd555b303d7977a83e2420f4a [INFO] running `Command { std: "docker" "start" "-a" "27d521b1b4b695bc26de32fcc38abfb5fb71461fd555b303d7977a83e2420f4a", 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.89 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Checking unicode-ident v1.0.13 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.15.1 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling libc v0.2.162 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Checking tokio v1.41.1 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Checking winnow v0.6.20 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling target-triple v0.1.3 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking hyper v0.14.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking stable-pattern v0.1.0 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking devise_core v0.4.2 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking state v0.6.0 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking serde_json v1.0.132 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Checking pretty_assertions v1.4.1 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.23 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking devise v0.4.2 [INFO] [stderr] Checking pear v0.2.9 [INFO] [stderr] Checking rocket_http v0.5.1 [INFO] [stderr] Checking rocket_codegen v0.5.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking trybuild v1.0.101 [INFO] [stderr] Fixed src/attribute/route/parse.rs (2 fixes) [INFO] [stderr] Fixed src/bang/typed_stream.rs (1 fix) [INFO] [stderr] Fixed src/exports.rs (2 fixes) [INFO] [stderr] Fixed src/syn_ext.rs (3 fixes) [INFO] [stderr] Fixed src/lib.rs (2 fixes) [INFO] [stderr] Fixed src/attribute/entry/mod.rs (1 fix) [INFO] [stderr] Fixed src/derive/form_field.rs (4 fixes) [INFO] [stderr] Fixed src/derive/uri_display.rs (2 fixes) [INFO] [stderr] Fixed src/derive/from_form.rs (13 fixes) [INFO] [stderr] Fixed src/bang/uri.rs (8 fixes) [INFO] [stderr] Fixed src/attribute/entry/launch.rs (4 fixes) [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/derive/form_field.rs:262:27 [INFO] [stdout] | [INFO] [stdout] 259 | while let Some(tt) = iter.next() { [INFO] [stdout] | -- [INFO] [stdout] | | [INFO] [stdout] | `tt` calls a custom destructor [INFO] [stdout] | `tt` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 262 | match (iter.next(), iter.next()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 265 | let mut expr = syn::Expr::Field(field); [INFO] [stdout] | -------- [INFO] [stdout] | | [INFO] [stdout] | `expr` calls a custom destructor [INFO] [stdout] | `expr` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 269 | (tt1, tt2) => stream.append_all(&[Some(Ident(s3lf)), tt1, tt2]), [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] 270 | } [INFO] [stdout] 271 | }, [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] 272 | TokenTree::Group(group) => { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | `group` calls a custom destructor [INFO] [stdout] | `group` will be dropped later as of Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `tt` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `expr` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `group` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: `--force-warn tail-expr-drop-order` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/derive/form_field.rs:259:30 [INFO] [stdout] | [INFO] [stdout] 259 | while let Some(tt) = iter.next() { [INFO] [stdout] | -- ^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | `tt` calls a custom destructor [INFO] [stdout] | `tt` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 265 | let mut expr = syn::Expr::Field(field); [INFO] [stdout] | -------- [INFO] [stdout] | | [INFO] [stdout] | `expr` calls a custom destructor [INFO] [stdout] | `expr` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 269 | (tt1, tt2) => stream.append_all(&[Some(Ident(s3lf)), tt1, tt2]), [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 272 | TokenTree::Group(group) => { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | `group` calls a custom destructor [INFO] [stdout] | `group` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 281 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `tt` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `expr` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `group` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: this warning originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/derive/form_field.rs:435:11 [INFO] [stdout] | [INFO] [stdout] 408 | let field_attrs = FieldAttr::from_attrs(FieldAttr::NAME, &field.attrs)?; [INFO] [stdout] | ----------- [INFO] [stdout] | | [INFO] [stdout] | `field_attrs` calls a custom destructor [INFO] [stdout] | `field_attrs` will be dropped later as of Edition 2024 [INFO] [stdout] 409 | let parent_attrs = FieldAttr::from_attrs(FieldAttr::NAME, field.parent.attrs())?; [INFO] [stdout] | ------------ [INFO] [stdout] | | [INFO] [stdout] | `parent_attrs` calls a custom destructor [INFO] [stdout] | `parent_attrs` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 434 | let ty = field.stripped_ty(); [INFO] [stdout] | -- [INFO] [stdout] | | [INFO] [stdout] | `ty` calls a custom destructor [INFO] [stdout] | `ty` will be dropped later as of Edition 2024 [INFO] [stdout] 435 | match (default, default_with) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 455 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `field_attrs` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `parent_attrs` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `ty` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: this warning originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/derive/uri_display.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 154 | let part = match P::KIND { [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | `part` calls a custom destructor [INFO] [stdout] | `part` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 165 | let r#gen = match ty { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | `gen` calls a custom destructor [INFO] [stdout] | `gen` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 171 | DeriveGenerator::build_for(input, param_trait) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 181 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: `#1` may invoke a custom destructor because it contains a trait object [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `part` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `gen` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: this warning originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/attribute/entry/launch.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 26 | let mut segments = e.path.segments.clone(); [INFO] [stdout] | ------------ [INFO] [stdout] | | [INFO] [stdout] | `segments` calls a custom destructor [INFO] [stdout] | `segments` will be dropped later as of Edition 2024 [INFO] [stdout] 27 | match segments.pop() { Some(last) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 44 | }; [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `segments` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: this warning originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/bang/uri.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 31 | let input2: TokenStream = input.clone(); [INFO] [stdout] | ------ [INFO] [stdout] | | [INFO] [stdout] | `input2` calls a custom destructor [INFO] [stdout] | `input2` will be dropped later as of Edition 2024 [INFO] [stdout] 32 | match syn::parse2::(input)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 40 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `input2` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: this warning originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/bang/uri_parsing.rs:254:42 [INFO] [stdout] | [INFO] [stdout] 254 | while let Some((tt, next)) = cursor.token_tree() { [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | `tt` calls a custom destructor [INFO] [stdout] | `tt` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 260 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `tt` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: this warning originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/bang/typed_stream.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 41 | let fork = input.fork(); [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | `fork` calls a custom destructor [INFO] [stdout] | `fork` will be dropped later as of Edition 2024 [INFO] [stdout] 42 | match fork.parse() { Ok(mut ty) => { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 65 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `fork` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.87/src/parse.rs:264:1 [INFO] [stdout] | [INFO] [stdout] 264 | impl<'a> Drop for ParseBuffer<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: this warning originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/ui-fail.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/route.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/from_form.rs from 2021 edition to 2024 [INFO] [stdout] error[E0463]: can't find crate for `rocket` [INFO] [stdout] --> tests/route.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | #[macro_use] extern crate rocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FromForm` in this scope [INFO] [stdout] --> tests/route.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(FromForm, UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::FromForm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/route.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(FromForm, UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> tests/route.rs:25:3 [INFO] [stdout] | [INFO] [stdout] 25 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> tests/route.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | #[post( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `uri` in this scope [INFO] [stdout] --> tests/route.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | let uri = uri!(post1(a, name, path, sky, query)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::uri; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `route` in this scope [INFO] [stdout] --> tests/route.rs:56:3 [INFO] [stdout] | [INFO] [stdout] 56 | #[route( [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `uri` in this scope [INFO] [stdout] --> tests/route.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | let uri = uri!(post2(a, name, path, sky, query)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::uri; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> tests/route.rs:80:3 [INFO] [stdout] | [INFO] [stdout] 80 | #[post("/<_unused_param>?<_unused_query>", data="<_unused_data>")] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/route.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 87 | .mount("/1", routes![post1]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/route.rs:88:22 [INFO] [stdout] | [INFO] [stdout] 88 | .mount("/2", routes![post2]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | #[get("/world")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 136 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route.rs:142:7 [INFO] [stdout] | [INFO] [stdout] 142 | #[get("/hello")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 147 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FromForm` in this scope [INFO] [stdout] --> tests/route.rs:156:37 [INFO] [stdout] | [INFO] [stdout] 156 | #[derive(Default, Debug, PartialEq, FromForm)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::FromForm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route.rs:164:3 [INFO] [stdout] | [INFO] [stdout] 164 | #[get("/?bird=1&color=blue&&&cat=bob&")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/route.rs:175:45 [INFO] [stdout] | [INFO] [stdout] 175 | let rocket = rocket::build().mount("/", routes![filtered_raw_query]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FromForm` in this scope [INFO] [stdout] --> tests/route.rs:228:28 [INFO] [stdout] | [INFO] [stdout] 228 | #[derive(Debug, PartialEq, FromForm)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::FromForm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FromForm` in this scope [INFO] [stdout] --> tests/route.rs:234:28 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Debug, PartialEq, FromForm)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::FromForm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route.rs:239:3 [INFO] [stdout] | [INFO] [stdout] 239 | #[get("/?&color=red&")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route.rs:244:3 [INFO] [stdout] | [INFO] [stdout] 244 | #[get("/?&color=red&")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/route.rs:295:45 [INFO] [stdout] | [INFO] [stdout] 295 | let rocket = rocket::build().mount("/", routes![query_collection]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/route.rs:298:45 [INFO] [stdout] | [INFO] [stdout] 298 | let rocket = rocket::build().mount("/", routes![query_collection_2]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route.rs:316:3 [INFO] [stdout] | [INFO] [stdout] 316 | #[get("/<_>/b/", rank = 1)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route.rs:321:3 [INFO] [stdout] | [INFO] [stdout] 321 | #[get("/", rank = 2)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/route.rs:329:21 [INFO] [stdout] | [INFO] [stdout] 329 | .mount("/", routes![segments]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/route.rs:330:21 [INFO] [stdout] | [INFO] [stdout] 330 | .mount("/", routes![segments_empty]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 8 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> tests/route.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | async fn from_data(req: &'r Request<'_>, data: Data<'r>) -> data::Outcome<'r, Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> tests/route.rs:310:68 [INFO] [stdout] | [INFO] [stdout] 310 | fn from_segments(segments: Segments<'_, Path>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use fully-qualified syntax [INFO] [stdout] | [INFO] [stdout] 310 | fn from_segments(segments: Segments<'_, Path>) -> Result::Error> { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 310 | fn from_segments(segments: Segments<'_, Path>) -> Result::Error> { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 310 | fn from_segments(segments: Segments<'_, Path>) -> Result::Error> { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 310 | fn from_segments(segments: Segments<'_, Path>) -> Result::Error> { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0223, E0463, E0581. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0223`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket_codegen` (test "route") due to 28 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::http::uri::fmt::{UriDisplay, Query}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rocket` [INFO] [stdout] --> tests/from_form.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::UriDisplayQuery; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::form::{self, Form, Strict, FromForm, FromFormField, Errors}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::form::error::{ErrorKind, Entity}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 628 | use rocket::http::ContentType; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form.rs:629:9 [INFO] [stdout] | [INFO] [stdout] 629 | use rocket::local::blocking::Client; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/uri_display.rs from 2021 edition to 2024 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form.rs:630:9 [INFO] [stdout] | [INFO] [stdout] 630 | use rocket::fs::TempFile; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket_codegen` (test "from_form") due to 62 previous errors [INFO] [stdout] error[E0432]: unresolved import `rocket` [INFO] [stdout] --> tests/from_form.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::form::{self, Form, Strict, FromForm, FromFormField, Errors}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form.rs:638:7 [INFO] [stdout] | [INFO] [stdout] 638 | #[rocket::post("/", data = "
")] [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form.rs:644:37 [INFO] [stdout] | [INFO] [stdout] 644 | let client = Client::debug_with(rocket::routes![form]).unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:202:11 [INFO] [stdout] | [INFO] [stdout] 202 | #[field(name = "camelCase")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:204:11 [INFO] [stdout] | [INFO] [stdout] 204 | #[field(name = "TitleCase")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:206:11 [INFO] [stdout] | [INFO] [stdout] 206 | #[field(name = "type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:208:11 [INFO] [stdout] | [INFO] [stdout] 208 | #[field(name = "DOUBLE")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:210:11 [INFO] [stdout] | [INFO] [stdout] 210 | #[field(name = "a:b")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:240:11 [INFO] [stdout] | [INFO] [stdout] 240 | #[field(name = "SomeCase")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:241:11 [INFO] [stdout] | [INFO] [stdout] 241 | #[field(name = "some_case")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:267:11 [INFO] [stdout] | [INFO] [stdout] 267 | #[field(name = uncased("SomeCase"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:268:11 [INFO] [stdout] | [INFO] [stdout] 268 | #[field(name = "some_case")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:271:11 [INFO] [stdout] | [INFO] [stdout] 271 | #[field(name = uncased("hello"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:424:11 [INFO] [stdout] | [INFO] [stdout] 424 | #[field(validate = evaluate_other(&self.check))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:444:11 [INFO] [stdout] | [INFO] [stdout] 444 | #[field(validate = evaluate())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:448:11 [INFO] [stdout] | [INFO] [stdout] 448 | #[field(validate = evaluate_with_argument(self.check))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:478:11 [INFO] [stdout] | [INFO] [stdout] 478 | #[field(name = "more:dogs")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:679:11 [INFO] [stdout] | [INFO] [stdout] 679 | #[field(default = None)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:681:11 [INFO] [stdout] | [INFO] [stdout] 681 | #[field(default = None)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:683:11 [INFO] [stdout] | [INFO] [stdout] 683 | #[field(default = None)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:685:11 [INFO] [stdout] | [INFO] [stdout] 685 | #[field(default_with = None)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:746:11 [INFO] [stdout] | [INFO] [stdout] 746 | #[field(default = 100)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:748:11 [INFO] [stdout] | [INFO] [stdout] 748 | #[field(default = true)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:750:11 [INFO] [stdout] | [INFO] [stdout] 750 | #[field(default = false)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:752:11 [INFO] [stdout] | [INFO] [stdout] 752 | #[field(default = 254 + 1)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:754:11 [INFO] [stdout] | [INFO] [stdout] 754 | #[field(default = Some(true))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:756:11 [INFO] [stdout] | [INFO] [stdout] 756 | #[field(default = false)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:758:11 [INFO] [stdout] | [INFO] [stdout] 758 | #[field(default = Ok("hello".into()))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:760:11 [INFO] [stdout] | [INFO] [stdout] 760 | #[field(default = Ok("hello"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:762:11 [INFO] [stdout] | [INFO] [stdout] 762 | #[field(default = vec![1, 2, 3])] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:764:11 [INFO] [stdout] | [INFO] [stdout] 764 | #[field(default = vec!["wow", "a", "string", "nice"])] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:766:11 [INFO] [stdout] | [INFO] [stdout] 766 | #[field(default = test_hashmap())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:768:11 [INFO] [stdout] | [INFO] [stdout] 768 | #[field(default = test_btreemap())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:770:11 [INFO] [stdout] | [INFO] [stdout] 770 | #[field(default_with = Some(false))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:772:11 [INFO] [stdout] | [INFO] [stdout] 772 | #[field(default_with = (|| Some(777))())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:774:11 [INFO] [stdout] | [INFO] [stdout] 774 | #[field(default = std::num::NonZeroI32::new(3).unwrap())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:776:11 [INFO] [stdout] | [INFO] [stdout] 776 | #[field(default_with = std::num::NonZeroI32::new(9001))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:778:11 [INFO] [stdout] | [INFO] [stdout] 778 | #[field(default = 3.0)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:780:11 [INFO] [stdout] | [INFO] [stdout] 780 | #[field(default = "wow")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:782:11 [INFO] [stdout] | [INFO] [stdout] 782 | #[field(default = "wowie")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:784:11 [INFO] [stdout] | [INFO] [stdout] 784 | #[field(default = [192u8, 168, 1, 0])] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:786:11 [INFO] [stdout] | [INFO] [stdout] 786 | #[field(default = ([192u8, 168, 1, 0], 20))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:788:11 [INFO] [stdout] | [INFO] [stdout] 788 | #[field(default = time::macros::date!(2021-05-27))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:790:11 [INFO] [stdout] | [INFO] [stdout] 790 | #[field(default = time::macros::time!(01:15:00))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:792:11 [INFO] [stdout] | [INFO] [stdout] 792 | #[field(default = time::PrimitiveDateTime::new( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:860:11 [INFO] [stdout] | [INFO] [stdout] 860 | #[field(default = { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:906:11 [INFO] [stdout] | [INFO] [stdout] 906 | #[field(default = f())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:908:11 [INFO] [stdout] | [INFO] [stdout] 908 | #[field(default = VAL.load(Ordering::Relaxed))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:910:11 [INFO] [stdout] | [INFO] [stdout] 910 | #[field(default_with = opt_f())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:912:11 [INFO] [stdout] | [INFO] [stdout] 912 | #[field(default_with = opt_f())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:914:11 [INFO] [stdout] | [INFO] [stdout] 914 | #[field(default = f())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:916:11 [INFO] [stdout] | [INFO] [stdout] 916 | #[field(default = VAL.load(Ordering::Relaxed))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:934:3 [INFO] [stdout] | [INFO] [stdout] 934 | #[field(validate = len(3..), default = "some default hello")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form.rs:938:3 [INFO] [stdout] | [INFO] [stdout] 938 | #[field(validate = try_with(|s| s.parse::()), default = "123456")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rocket` [INFO] [stdout] --> tests/uri_display.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate rocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(UriDisplayQuery, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/uri_display.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | #[field(name = "type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | #[derive(UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | #[derive(UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | #[derive(UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | #[derive(UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/uri_display.rs:153:11 [INFO] [stdout] | [INFO] [stdout] 153 | #[field(value = "a")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/uri_display.rs:155:11 [INFO] [stdout] | [INFO] [stdout] 155 | #[field(value = "tomato")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/uri_display.rs:156:11 [INFO] [stdout] | [INFO] [stdout] 156 | #[field(value = "juice")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/uri_display.rs:158:11 [INFO] [stdout] | [INFO] [stdout] 158 | #[field(value = "carrot")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:166:14 [INFO] [stdout] | [INFO] [stdout] 166 | #[derive(UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/uri_display.rs:168:45 [INFO] [stdout] | [INFO] [stdout] 168 | enum CLikeR { r#for, r#type, r#async, #[field(value = "stop")] r#yield } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | #[derive(UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayPath` in this scope [INFO] [stdout] --> tests/uri_display.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 198 | #[derive(UriDisplayPath)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayPath; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayPath` in this scope [INFO] [stdout] --> tests/uri_display.rs:201:10 [INFO] [stdout] | [INFO] [stdout] 201 | #[derive(UriDisplayPath)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayPath; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayPath` in this scope [INFO] [stdout] --> tests/uri_display.rs:204:10 [INFO] [stdout] | [INFO] [stdout] 204 | #[derive(UriDisplayPath)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayPath; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayPath` in this scope [INFO] [stdout] --> tests/uri_display.rs:207:10 [INFO] [stdout] | [INFO] [stdout] 207 | #[derive(UriDisplayPath)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayPath; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayPath` in this scope [INFO] [stdout] --> tests/uri_display.rs:210:10 [INFO] [stdout] | [INFO] [stdout] 210 | #[derive(UriDisplayPath)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayPath; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/async-routes.rs from 2021 edition to 2024 [INFO] [stdout] error: cannot find derive macro `FromForm` in this scope [INFO] [stdout] --> tests/uri_display.rs:229:39 [INFO] [stdout] | [INFO] [stdout] 229 | #[derive(Debug, PartialEq, Clone, FromForm, UriDisplayQuery, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::FromForm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:229:49 [INFO] [stdout] | [INFO] [stdout] 229 | #[derive(Debug, PartialEq, Clone, FromForm, UriDisplayQuery, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/uri_display.rs:230:7 [INFO] [stdout] | [INFO] [stdout] 230 | #[serde(crate = "rocket::serde")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FromForm` in this scope [INFO] [stdout] --> tests/uri_display.rs:237:32 [INFO] [stdout] | [INFO] [stdout] 237 | #[derive(Debug, PartialEq, FromForm, UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::FromForm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:237:42 [INFO] [stdout] | [INFO] [stdout] 237 | #[derive(Debug, PartialEq, FromForm, UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FromForm` in this scope [INFO] [stdout] --> tests/uri_display.rs:252:39 [INFO] [stdout] | [INFO] [stdout] 252 | #[derive(Debug, PartialEq, Clone, FromForm, UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::FromForm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:252:49 [INFO] [stdout] | [INFO] [stdout] 252 | #[derive(Debug, PartialEq, Clone, FromForm, UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FromForm` in this scope [INFO] [stdout] --> tests/uri_display.rs:255:39 [INFO] [stdout] | [INFO] [stdout] 255 | #[derive(Debug, PartialEq, Clone, FromForm, UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::FromForm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:255:49 [INFO] [stdout] | [INFO] [stdout] 255 | #[derive(Debug, PartialEq, Clone, FromForm, UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FromForm` in this scope [INFO] [stdout] --> tests/uri_display.rs:268:39 [INFO] [stdout] | [INFO] [stdout] 268 | #[derive(Debug, PartialEq, Clone, FromForm, UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::FromForm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `UriDisplayQuery` in this scope [INFO] [stdout] --> tests/uri_display.rs:268:49 [INFO] [stdout] | [INFO] [stdout] 268 | #[derive(Debug, PartialEq, Clone, FromForm, UriDisplayQuery)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::UriDisplayQuery; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> tests/uri_display.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | ($v:expr, $expected: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] 7 | ($v:expr_2021, $expected:expr) => ( [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> tests/uri_display.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | ($v:expr, $expected: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] 7 | ($v:expr, $expected:expr_2021) => ( [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket_codegen` (test "uri_display") due to 31 previous errors; 6 warnings emitted [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> tests/uri_display.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 14 | ($T:ty, $v: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] 14 | ($T:ty, $v: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] --> tests/uri_display.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | ($T:ty, $v: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] 27 | ($T:ty, $v: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] --> tests/uri_display.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | ($v:expr, $s: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] 192 | ($v:expr_2021, $s:expr) => ( [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> tests/uri_display.rs:192:18 [INFO] [stdout] | [INFO] [stdout] 192 | ($v:expr, $s: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] 192 | ($v:expr, $s:expr_2021) => ( [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rocket` [INFO] [stdout] --> tests/async-routes.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] extern crate rocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> tests/async-routes.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | #[catch(404)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 4 + use rocket_codegen::catch; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/async-routes.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | #[get("/repeated_query?")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 4 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/async-routes.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[get("/")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 4 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> tests/async-routes.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | async fn hello(_origin: &Origin<'_>) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> tests/async-routes.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | async fn not_found(req: &Request<'_>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0463, E0581. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket_codegen` (test "async-routes") due to 6 previous errors [INFO] [stderr] Migrating tests/segment-ignore.rs from 2021 edition to 2024 [INFO] [stdout] error[E0463]: can't find crate for `rocket` [INFO] [stdout] --> tests/segment-ignore.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate rocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/segment-ignore.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[get("/<_>", rank = 1)] fn ig_1() -> &'static str { "1" } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/segment-ignore.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[get("/static")] fn just_static() -> &'static str { "static" } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/segment-ignore.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[get("/<_>/<_>", rank = 1)] fn ig_2() -> &'static str { "2" } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/segment-ignore.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[get("/static/<_>")] fn ig_1_static() -> &'static str { "static_1" } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/route-raw.rs from 2021 edition to 2024 [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/segment-ignore.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[get("/<_>/<_>/<_>", rank = 1)] fn ig_3() -> &'static str { "3" } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/segment-ignore.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | #[get("/static/<_>/static")] fn ig_1_static_static() -> &'static str { "static_1_static" } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/segment-ignore.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | #[get("//<_>/<_>/")] fn wrapped(a: String, b: String) -> String { a + &b } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/segment-ignore.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | let rocket = rocket::build().mount("/", routes![ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket_codegen` (test "segment-ignore") due to 9 previous errors [INFO] [stdout] error[E0463]: can't find crate for `rocket` [INFO] [stdout] --> tests/route-raw.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate rocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/from_form_field.rs from 2021 edition to 2024 [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route-raw.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[get("/?")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `get` is in scope, but it is a function, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route-raw.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[get("/swap//")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `get` is in scope, but it is a function, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> tests/route-raw.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | #[catch(400)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `catch` is in scope, but it is a function, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::catch; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/route-raw.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | .mount("/", routes![get, swap]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `catchers` in this scope [INFO] [stdout] --> tests/route-raw.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | .register("/", catchers![catch]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/core/src/macros/mod.rs:473:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `matches` defined here [INFO] [stdout] | [INFO] [stdout] help: a macro with a similar name exists [INFO] [stdout] | [INFO] [stdout] 26 | .register("/", matches![catch]); [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::catchers; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket_codegen` (test "route-raw") due to 10 previous errors [INFO] [stdout] error: cannot find macro `uri` in this scope [INFO] [stdout] --> tests/route-raw.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | let uri_named = uri!(get(r#enum = "test_named", r#type = 1)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::uri; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `uri` in this scope [INFO] [stdout] --> tests/route-raw.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | let uri_unnamed = uri!(get("test_unnamed", 2)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::uri; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `uri` in this scope [INFO] [stdout] --> tests/route-raw.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let uri_raws = uri!(swap(r#raw = "1", r#bare = "2")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::uri; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `uri` in this scope [INFO] [stdout] --> tests/route-raw.rs:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | let uri_bare = uri!(swap(raw = "1", bare = "2")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::uri; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stderr] Migrating tests/route-format.rs from 2021 edition to 2024 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form_field.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::form::{FromFormField, ValueField, FromForm, Options, Errors}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocket` [INFO] [stdout] --> tests/from_form_field.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | use rocket::form::error::{ErrorKind, Entity}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `rocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form_field.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | #[field(value = "foo")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form_field.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | #[field(value = "bark")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `field` in this scope [INFO] [stdout] --> tests/from_form_field.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | #[field(value = ":book")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket_codegen` (test "from_form_field") due to 5 previous errors; 2 warnings emitted [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> tests/from_form_field.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | ($($string:expr),* => $item:ident :: $variant:ident) => ($( [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] 10 | ($($string:expr_2021),* => $item:ident :: $variant:ident) => ($( [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> tests/from_form_field.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | ($($string:expr),* => $item:ident) => ($( [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] 23 | ($($string:expr_2021),* => $item:ident) => ($( [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rocket` [INFO] [stdout] --> tests/route-format.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate rocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> tests/route-format.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[post("/", format = "json")] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> tests/route-format.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[post("/", format = "xml")] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> tests/route-format.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | #[post("/", format = "application/json", rank = 2)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> tests/route-format.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | #[post("/", format = "application/msgpack")] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> tests/route-format.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 22 | #[post("/", format = "msgpack", rank = 2)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route-format.rs:25:3 [INFO] [stdout] | [INFO] [stdout] 25 | #[get("/", format = "plain")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route-format.rs:28:3 [INFO] [stdout] | [INFO] [stdout] 28 | #[get("/", format = "binary", rank = 2)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route-format.rs:31:3 [INFO] [stdout] | [INFO] [stdout] 31 | #[get("/", rank = 3)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/route-format.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | .mount("/", routes![json, xml, json_long, msgpack_long, msgpack, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route-format.rs:70:3 [INFO] [stdout] | [INFO] [stdout] 70 | #[get("/", format = "application/foo")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> tests/route-format.rs:74:3 [INFO] [stdout] | [INFO] [stdout] 74 | #[post("/", format = "application/foo")] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> tests/route-format.rs:78:3 [INFO] [stdout] | [INFO] [stdout] 78 | #[get("/", format = "bar/baz", rank = 2)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `put` in this scope [INFO] [stdout] --> tests/route-format.rs:82:3 [INFO] [stdout] | [INFO] [stdout] 82 | #[put("/", format = "bar/baz")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::put; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> tests/route-format.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | .mount("/", routes![get_foo, post_foo, get_bar_baz, put_bar_baz]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use rocket_codegen::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket_codegen` (test "route-format") due to 15 previous errors [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "27d521b1b4b695bc26de32fcc38abfb5fb71461fd555b303d7977a83e2420f4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27d521b1b4b695bc26de32fcc38abfb5fb71461fd555b303d7977a83e2420f4a", kill_on_drop: false }` [INFO] [stdout] 27d521b1b4b695bc26de32fcc38abfb5fb71461fd555b303d7977a83e2420f4a