[INFO] fetching crate tamasfe-schemars_derive 0.8.0... [INFO] checking tamasfe-schemars_derive-0.8.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate tamasfe-schemars_derive 0.8.0 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate tamasfe-schemars_derive 0.8.0 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tamasfe-schemars_derive 0.8.0 [INFO] finished tweaking crates.io crate tamasfe-schemars_derive 0.8.0 [INFO] tweaked toml for crates.io crate tamasfe-schemars_derive 0.8.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "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 14 packages to latest compatible versions [INFO] [stderr] Adding ansi_term v0.11.0 (latest: v0.12.1) [INFO] [stderr] Adding ctor v0.1.26 (latest: v0.2.8) [INFO] [stderr] Adding pretty_assertions v0.6.1 (latest: v1.4.0) [INFO] [stderr] Adding serde_derive_internals v0.25.0 (latest: v0.29.1) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.77) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f2dec24dbec088af85d277c1fd4aa392048aa1f982b060445c449a9367c01f8c [INFO] running `Command { std: "docker" "start" "-a" "f2dec24dbec088af85d277c1fd4aa392048aa1f982b060445c449a9367c01f8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f2dec24dbec088af85d277c1fd4aa392048aa1f982b060445c449a9367c01f8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2dec24dbec088af85d277c1fd4aa392048aa1f982b060445c449a9367c01f8c", kill_on_drop: false }` [INFO] [stdout] f2dec24dbec088af85d277c1fd4aa392048aa1f982b060445c449a9367c01f8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3d59cf22eb3740e1cf85868cf7c8aaf89dd2861477ae6b8792e0e8911561661 [INFO] running `Command { std: "docker" "start" "-a" "d3d59cf22eb3740e1cf85868cf7c8aaf89dd2861477ae6b8792e0e8911561661", kill_on_drop: false }` [INFO] [stderr] Checking syn v1.0.109 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking pretty_assertions v0.6.1 [INFO] [stderr] Checking serde_derive_internals v0.25.0 [INFO] [stderr] Checking tamasfe-schemars_derive v0.8.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `original` is never read [INFO] [stdout] --> src/ast/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Container<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub original: &'a syn::DeriveInput, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ident` is never read [INFO] [stdout] --> src/ast/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Variant<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 23 | pub ident: syn::Ident, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn derive_json_schema_wrapper(input: proc_macro::TokenStream) -> proc_macro::TokenStream { [INFO] [stdout] | ------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | let input = parse_macro_input!(input as syn::DeriveInput); [INFO] [stdout] | ----- --------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | derive_json_schema(input).into() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/mod.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 41 | let ctxt = Ctxt::new(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | let result = serde_ast::Container::from_ast(&ctxt, item, Derive::Deserialize) [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 47 | .map(|_| result.expect("from_ast set no errors on Ctxt, so should have returned Ok")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/from_serde.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | fn from_serde(errors: &Ctxt, serde: Self::SerdeType) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 25 | | ident: serde.ident, [INFO] [stdout] 26 | | serde_attrs: serde.attrs, [INFO] [stdout] 27 | | data: Data::from_serde(errors, serde.data)?, [INFO] [stdout] ... | [INFO] [stdout] 31 | | attrs: Attrs::new(&serde.original.attrs, errors), [INFO] [stdout] 32 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/from_serde.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | fn from_serde(errors: &Ctxt, serde: Self::SerdeType) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 40 | Ok(match serde { [INFO] [stdout] | ____________^ [INFO] [stdout] 41 | | serde_ast::Data::Enum(variants) => { [INFO] [stdout] 42 | | Data::Enum(Variant::vec_from_serde(errors, variants)?) [INFO] [stdout] 43 | | } [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/from_serde.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | fn from_serde(errors: &Ctxt, serde: Self::SerdeType) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 55 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 56 | | ident: serde.ident, [INFO] [stdout] 57 | | serde_attrs: serde.attrs, [INFO] [stdout] 58 | | style: serde.style, [INFO] [stdout] ... | [INFO] [stdout] 61 | | attrs: Attrs::new(&serde.original.attrs, errors), [INFO] [stdout] 62 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/from_serde.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 69 | fn from_serde(errors: &Ctxt, serde: Self::SerdeType) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 70 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 71 | | member: serde.member, [INFO] [stdout] 72 | | serde_attrs: serde.attrs, [INFO] [stdout] 73 | | ty: serde.ty, [INFO] [stdout] 74 | | original: serde.original, [INFO] [stdout] 75 | | attrs: Attrs::new(&serde.original.attrs, errors), [INFO] [stdout] 76 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/attr/mod.rs:255:8 [INFO] [stdout] | [INFO] [stdout] 254 | let stream = syn::parse_str(&s.value())?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 255 | Ok(respan_token_stream(stream, s.span())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/attr/mod.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 258 | fn respan_token_stream(stream: TokenStream, span: Span) -> TokenStream { [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 259 | / stream [INFO] [stdout] 260 | | .into_iter() [INFO] [stdout] 261 | | .map(|token| respan_token_tree(token, span)) [INFO] [stdout] | |____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/schema_exprs.rs:202:15 [INFO] [stdout] | [INFO] [stdout] 172 | let type_schema = schema_object( [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 173 | crate_name, [INFO] [stdout] 174 | / quote! { [INFO] [stdout] 175 | | instance_type: Some(#crate_name::schema::InstanceType::String.into()), [INFO] [stdout] 176 | | enum_values: Some(vec![#name.into()]), [INFO] [stdout] 177 | | }, [INFO] [stdout] | | - [INFO] [stdout] | |_____________| [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 180 | | let tag_schema = schema_object( [INFO] [stdout] | | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 181 | | crate_name, [INFO] [stdout] 182 | / quote! { [INFO] [stdout] 183 | | instance_type: Some(#crate_name::schema::InstanceType::Object.into()), [INFO] [stdout] 184 | | object: Some(Box::new(#crate_name::schema::ObjectValidation { [INFO] [stdout] 185 | | properties: { [INFO] [stdout] ... | [INFO] [stdout] 196 | | })), [INFO] [stdout] 197 | | }, [INFO] [stdout] | | - [INFO] [stdout] | |_____________| [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 198 | ); [INFO] [stdout] 199 | | let doc_metadata = SchemaMetadata::from_attrs(crate_name, &variant.attrs); [INFO] [stdout] | | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 200 | | let tag_schema = doc_metadata.apply_to_schema(tag_schema); [INFO] [stdout] | | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 201 | | [INFO] [stdout] 202 | | match expr_for_untagged_enum_variant_for_flatten(crate_name, &variant) { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/schema_exprs.rs:484:10 [INFO] [stdout] | [INFO] [stdout] 459 | let default_expr = match field_default { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 462 | quote!(container_default.#member) [INFO] [stdout] | --------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 463 | } [INFO] [stdout] 464 | SerdeDefault::Default => quote!(<#ty>::default()), [INFO] [stdout] | ------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 465 | SerdeDefault::Path(path) => quote!(#path()), [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 468 | let default_expr = match field.serde_attrs.skip_serializing_if() { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 469 | Some(skip_if) => { [INFO] [stdout] 470 | / quote! { [INFO] [stdout] 471 | | { [INFO] [stdout] 472 | | let default = #default_expr; [INFO] [stdout] 473 | | if #skip_if(&default) { [INFO] [stdout] ... | [INFO] [stdout] 478 | | } [INFO] [stdout] 479 | | } [INFO] [stdout] | | - [INFO] [stdout] | |_____________| [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 480 | } [INFO] [stdout] 481 | | None => quote!(Some(#default_expr)), [INFO] [stdout] | | --------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... | [INFO] [stdout] 484 | Some(if let Some(ser_with) = field.serde_attrs.serialize_with() { [INFO] [stdout] | __________^ [INFO] [stdout] 485 | quote! { [INFO] [stdout] 486 | { [INFO] [stdout] 487 | struct _SchemarsDefaultSerialize(T); [INFO] [stdout] ... [INFO] [stdout] 503 | default_expr [INFO] [stdout] 504 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tamasfe-schemars_derive` (lib) due to 11 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `original` is never read [INFO] [stdout] --> src/ast/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Container<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub original: &'a syn::DeriveInput, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ident` is never read [INFO] [stdout] --> src/ast/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Variant<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 23 | pub ident: syn::Ident, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn derive_json_schema_wrapper(input: proc_macro::TokenStream) -> proc_macro::TokenStream { [INFO] [stdout] | ------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | let input = parse_macro_input!(input as syn::DeriveInput); [INFO] [stdout] | ----- --------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | derive_json_schema(input).into() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/mod.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 41 | let ctxt = Ctxt::new(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | let result = serde_ast::Container::from_ast(&ctxt, item, Derive::Deserialize) [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 47 | .map(|_| result.expect("from_ast set no errors on Ctxt, so should have returned Ok")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/from_serde.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | fn from_serde(errors: &Ctxt, serde: Self::SerdeType) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 25 | | ident: serde.ident, [INFO] [stdout] 26 | | serde_attrs: serde.attrs, [INFO] [stdout] 27 | | data: Data::from_serde(errors, serde.data)?, [INFO] [stdout] ... | [INFO] [stdout] 31 | | attrs: Attrs::new(&serde.original.attrs, errors), [INFO] [stdout] 32 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/from_serde.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | fn from_serde(errors: &Ctxt, serde: Self::SerdeType) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 40 | Ok(match serde { [INFO] [stdout] | ____________^ [INFO] [stdout] 41 | | serde_ast::Data::Enum(variants) => { [INFO] [stdout] 42 | | Data::Enum(Variant::vec_from_serde(errors, variants)?) [INFO] [stdout] 43 | | } [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/from_serde.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | fn from_serde(errors: &Ctxt, serde: Self::SerdeType) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 55 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 56 | | ident: serde.ident, [INFO] [stdout] 57 | | serde_attrs: serde.attrs, [INFO] [stdout] 58 | | style: serde.style, [INFO] [stdout] ... | [INFO] [stdout] 61 | | attrs: Attrs::new(&serde.original.attrs, errors), [INFO] [stdout] 62 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/from_serde.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 69 | fn from_serde(errors: &Ctxt, serde: Self::SerdeType) -> Result { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 70 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 71 | | member: serde.member, [INFO] [stdout] 72 | | serde_attrs: serde.attrs, [INFO] [stdout] 73 | | ty: serde.ty, [INFO] [stdout] 74 | | original: serde.original, [INFO] [stdout] 75 | | attrs: Attrs::new(&serde.original.attrs, errors), [INFO] [stdout] 76 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/attr/mod.rs:255:8 [INFO] [stdout] | [INFO] [stdout] 254 | let stream = syn::parse_str(&s.value())?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 255 | Ok(respan_token_stream(stream, s.span())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/attr/mod.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 258 | fn respan_token_stream(stream: TokenStream, span: Span) -> TokenStream { [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 259 | / stream [INFO] [stdout] 260 | | .into_iter() [INFO] [stdout] 261 | | .map(|token| respan_token_tree(token, span)) [INFO] [stdout] | |____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/schema_exprs.rs:202:15 [INFO] [stdout] | [INFO] [stdout] 172 | let type_schema = schema_object( [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 173 | crate_name, [INFO] [stdout] 174 | / quote! { [INFO] [stdout] 175 | | instance_type: Some(#crate_name::schema::InstanceType::String.into()), [INFO] [stdout] 176 | | enum_values: Some(vec![#name.into()]), [INFO] [stdout] 177 | | }, [INFO] [stdout] | | - [INFO] [stdout] | |_____________| [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 180 | | let tag_schema = schema_object( [INFO] [stdout] | | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 181 | | crate_name, [INFO] [stdout] 182 | / quote! { [INFO] [stdout] 183 | | instance_type: Some(#crate_name::schema::InstanceType::Object.into()), [INFO] [stdout] 184 | | object: Some(Box::new(#crate_name::schema::ObjectValidation { [INFO] [stdout] 185 | | properties: { [INFO] [stdout] ... | [INFO] [stdout] 196 | | })), [INFO] [stdout] 197 | | }, [INFO] [stdout] | | - [INFO] [stdout] | |_____________| [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 198 | ); [INFO] [stdout] 199 | | let doc_metadata = SchemaMetadata::from_attrs(crate_name, &variant.attrs); [INFO] [stdout] | | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 200 | | let tag_schema = doc_metadata.apply_to_schema(tag_schema); [INFO] [stdout] | | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 201 | | [INFO] [stdout] 202 | | match expr_for_untagged_enum_variant_for_flatten(crate_name, &variant) { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/schema_exprs.rs:484:10 [INFO] [stdout] | [INFO] [stdout] 459 | let default_expr = match field_default { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 462 | quote!(container_default.#member) [INFO] [stdout] | --------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 463 | } [INFO] [stdout] 464 | SerdeDefault::Default => quote!(<#ty>::default()), [INFO] [stdout] | ------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 465 | SerdeDefault::Path(path) => quote!(#path()), [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 468 | let default_expr = match field.serde_attrs.skip_serializing_if() { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 469 | Some(skip_if) => { [INFO] [stdout] 470 | / quote! { [INFO] [stdout] 471 | | { [INFO] [stdout] 472 | | let default = #default_expr; [INFO] [stdout] 473 | | if #skip_if(&default) { [INFO] [stdout] ... | [INFO] [stdout] 478 | | } [INFO] [stdout] 479 | | } [INFO] [stdout] | | - [INFO] [stdout] | |_____________| [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 480 | } [INFO] [stdout] 481 | | None => quote!(Some(#default_expr)), [INFO] [stdout] | | --------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... | [INFO] [stdout] 484 | Some(if let Some(ser_with) = field.serde_attrs.serialize_with() { [INFO] [stdout] | __________^ [INFO] [stdout] 485 | quote! { [INFO] [stdout] 486 | { [INFO] [stdout] 487 | struct _SchemarsDefaultSerialize(T); [INFO] [stdout] ... [INFO] [stdout] 503 | default_expr [INFO] [stdout] 504 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tamasfe-schemars_derive` (lib test) due to 11 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d3d59cf22eb3740e1cf85868cf7c8aaf89dd2861477ae6b8792e0e8911561661", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3d59cf22eb3740e1cf85868cf7c8aaf89dd2861477ae6b8792e0e8911561661", kill_on_drop: false }` [INFO] [stdout] d3d59cf22eb3740e1cf85868cf7c8aaf89dd2861477ae6b8792e0e8911561661