[INFO] fetching crate tql_macros 0.1.0... [INFO] checking tql_macros-0.1.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate tql_macros 0.1.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate tql_macros 0.1.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 tql_macros 0.1.0 [INFO] finished tweaking crates.io crate tql_macros 0.1.0 [INFO] tweaked toml for crates.io crate tql_macros 0.1.0 written to /workspace/builds/worker-5-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] Updating crates.io index [INFO] [stderr] Locking 14 packages to latest compatible versions [INFO] [stderr] Adding proc-macro2 v0.2.3 (latest: v1.0.86) [INFO] [stderr] Adding quote v0.4.2 (latest: v1.0.37) [INFO] [stderr] Adding rand v0.4.6 (latest: v0.8.5) [INFO] [stderr] Adding rand_core v0.3.1 (latest: v0.6.4) [INFO] [stderr] Adding rand_core v0.4.2 (latest: v0.6.4) [INFO] [stderr] Adding rdrand v0.4.0 (latest: v0.8.3) [INFO] [stderr] Adding syn v0.12.15 (latest: v2.0.77) [INFO] [stderr] Adding unicode-xid v0.1.0 (latest: v0.2.5) [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] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 2fdb3a918718084ade612378cc717d720a374b0d7b6f243f1f586ab591851a9d [INFO] running `Command { std: "docker" "start" "-a" "2fdb3a918718084ade612378cc717d720a374b0d7b6f243f1f586ab591851a9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fdb3a918718084ade612378cc717d720a374b0d7b6f243f1f586ab591851a9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fdb3a918718084ade612378cc717d720a374b0d7b6f243f1f586ab591851a9d", kill_on_drop: false }` [INFO] [stdout] 2fdb3a918718084ade612378cc717d720a374b0d7b6f243f1f586ab591851a9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] f082ba3711021b7cdd6ad667083362cfb593aef50f1418e0be6fa5a99e745c02 [INFO] running `Command { std: "docker" "start" "-a" "f082ba3711021b7cdd6ad667083362cfb593aef50f1418e0be6fa5a99e745c02", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking unicode-xid v0.1.0 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking proc-macro2 v0.2.3 [INFO] [stderr] Checking quote v0.4.2 [INFO] [stderr] Checking syn v0.12.15 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking tql_macros v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/gen/dummy.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | fn convert_index(&self, index: usize) -> Tokens { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connection_expr` [INFO] [stdout] --> src/gen/dummy.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | fn gen_query_expr(&self, connection_expr: Tokens, args: &SqlQueryWithArgs, args_expr: Tokens, struct_expr: Tokens, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/gen/dummy.rs:44:55 [INFO] [stdout] | [INFO] [stdout] 44 | fn gen_query_expr(&self, connection_expr: Tokens, args: &SqlQueryWithArgs, args_expr: Tokens, struct_expr: Tokens, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_expr` [INFO] [stdout] --> src/gen/dummy.rs:44:80 [INFO] [stdout] | [INFO] [stdout] 44 | fn gen_query_expr(&self, connection_expr: Tokens, args: &SqlQueryWithArgs, args_expr: Tokens, struct_expr: Tokens, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `struct_expr` [INFO] [stdout] --> src/gen/dummy.rs:44:99 [INFO] [stdout] | [INFO] [stdout] 44 | fn gen_query_expr(&self, connection_expr: Tokens, args: &SqlQueryWithArgs, args_expr: Tokens, struct_expr: Tokens, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_struct_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aggregate_struct` [INFO] [stdout] --> src/gen/dummy.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | aggregate_struct: Tokens, aggregate_expr: Tokens) -> Tokens [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aggregate_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aggregate_expr` [INFO] [stdout] --> src/gen/dummy.rs:45:49 [INFO] [stdout] | [INFO] [stdout] 45 | aggregate_struct: Tokens, aggregate_expr: Tokens) -> Tokens [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aggregate_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/gen/dummy.rs:50:27 [INFO] [stdout] | [INFO] [stdout] 50 | fn int_literal(&self, num: usize) -> Expr { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_ident` [INFO] [stdout] --> src/gen/dummy.rs:54:30 [INFO] [stdout] | [INFO] [stdout] 54 | fn row_type_ident(&self, table_ident: &Ident) -> Tokens { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `primary_key_ident` [INFO] [stdout] --> src/gen/dummy.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | fn to_sql(&self, primary_key_ident: &Ident) -> Tokens { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_primary_key_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_ident` [INFO] [stdout] --> src/gen/dummy.rs:62:27 [INFO] [stdout] | [INFO] [stdout] 62 | fn to_sql_impl(&self, table_ident: &Ident, to_sql_code: Tokens) -> Tokens { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_sql_code` [INFO] [stdout] --> src/gen/dummy.rs:62:48 [INFO] [stdout] | [INFO] [stdout] 62 | fn to_sql_impl(&self, table_ident: &Ident, to_sql_code: Tokens) -> Tokens { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_sql_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `date_type` [INFO] [stdout] --> src/methods.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | for date_type in &date_types { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_date_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_type` [INFO] [stdout] --> src/methods.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | for time_type in &time_types { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/sql/dummy.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | fn to_sql(&self, index: &mut usize) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/sql/dummy.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | fn insert_query(&self, table: &str, fields: &[String], values: &[String]) -> Tokens { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> src/sql/dummy.rs:42:41 [INFO] [stdout] | [INFO] [stdout] 42 | fn insert_query(&self, table: &str, fields: &[String], values: &[String]) -> Tokens { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `values` [INFO] [stdout] --> src/sql/dummy.rs:42:60 [INFO] [stdout] | [INFO] [stdout] 42 | fn insert_query(&self, table: &str, fields: &[String], values: &[String]) -> Tokens { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query_type` and `sql` are never read [INFO] [stdout] --> src/lib.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 169 | struct SqlQueryWithArgs { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 181 | query_type: QueryType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 182 | sql: Tokens, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `field_name_prefix` is never read [INFO] [stdout] --> src/arguments.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Arg { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub field_name_prefix: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Arg` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Not` is never constructed [INFO] [stdout] --> src/ast.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 197 | pub enum LogicalOperator { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 198 | And, [INFO] [stdout] 199 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogicalOperator` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code` and `position` are never read [INFO] [stdout] --> src/error.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Error { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 38 | pub code: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub position: Span, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/parser.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct MethodCall { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub position: Span, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MethodCall` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `syn_type` and `ty` are never read [INFO] [stdout] --> src/state.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct BothTypes { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 45 | pub syn_type: syn::Type, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 46 | pub ty: WithSpan, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `BothTypes` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `argument_types`, `object_type`, and `return_type` are never read [INFO] [stdout] --> src/state.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct SqlMethodTypes { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 57 | pub argument_types: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 58 | pub object_type: Type, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 59 | pub return_type: Type, [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:275:8 [INFO] [stdout] | [INFO] [stdout] 241 | let expr: Expr = [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 242 | match parse2(input) { [INFO] [stdout] 243 | Ok(expr) => expr, [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 247 | let method_calls = parser.parse(&expr)?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 251 | let mut query = analyze(&method_calls)?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 270 | let limit_exprs = get_limit_args(&query); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 271 | let filter_method_calls = get_method_calls(&query); [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 272 | let aggregate_calls = get_aggregate_calls(&query); [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 273 | let stable_macro_query = generate_macro_patterns(&query, &method_calls); [INFO] [stdout] 274 | let (arguments, literal_arguments) = arguments(query); [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] 275 | Ok(SqlQueryWithArgs { [INFO] [stdout] | ________^ [INFO] [stdout] 276 | | aggregates, [INFO] [stdout] 277 | | aggregate_calls, [INFO] [stdout] 278 | | arguments, [INFO] [stdout] ... | [INFO] [stdout] 290 | | table_name, [INFO] [stdout] 291 | | }) [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] | [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/lib.rs:547:29 [INFO] [stdout] | [INFO] [stdout] 546 | fn concat_token_stream(stream1: TokenStream, stream2: TokenStream) -> TokenStream { [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] 547 | FromIterator::from_iter(stream1.into_iter().chain(stream2.into_iter())) [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/analyzer/filter.rs:225:29 [INFO] [stdout] | [INFO] [stdout] 221 | let arguments: Vec = args.iter() [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 225 | FilterValue::MethodCall(ast::MethodCall { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 226 | | arguments: arguments.clone(), [INFO] [stdout] 227 | | method_name: identifier, [INFO] [stdout] 228 | | object_name, [INFO] [stdout] 229 | | position, [INFO] [stdout] 230 | | }) [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/analyzer/get.rs:52:35 [INFO] [stdout] | [INFO] [stdout] 52 | .and_then(|filter| Ok((filter, false, Limit::Index(number_literal(0))))), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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/gen/mod.rs:376:6 [INFO] [stdout] | [INFO] [stdout] 298 | let mut impls: TokenStream = quote! {}.into(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 301 | let fields: Vec = [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 375 | let fields = fields_vec_to_hashmap(&fields); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 376 | (res(fields, errors), primary_key_field, impls) [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 5 previous errors; 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tql_macros` (lib test) due to 6 previous errors; 25 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/gen/dummy.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | fn convert_index(&self, index: usize) -> Tokens { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connection_expr` [INFO] [stdout] --> src/gen/dummy.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | fn gen_query_expr(&self, connection_expr: Tokens, args: &SqlQueryWithArgs, args_expr: Tokens, struct_expr: Tokens, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/gen/dummy.rs:44:55 [INFO] [stdout] | [INFO] [stdout] 44 | fn gen_query_expr(&self, connection_expr: Tokens, args: &SqlQueryWithArgs, args_expr: Tokens, struct_expr: Tokens, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_expr` [INFO] [stdout] --> src/gen/dummy.rs:44:80 [INFO] [stdout] | [INFO] [stdout] 44 | fn gen_query_expr(&self, connection_expr: Tokens, args: &SqlQueryWithArgs, args_expr: Tokens, struct_expr: Tokens, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `struct_expr` [INFO] [stdout] --> src/gen/dummy.rs:44:99 [INFO] [stdout] | [INFO] [stdout] 44 | fn gen_query_expr(&self, connection_expr: Tokens, args: &SqlQueryWithArgs, args_expr: Tokens, struct_expr: Tokens, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_struct_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aggregate_struct` [INFO] [stdout] --> src/gen/dummy.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | aggregate_struct: Tokens, aggregate_expr: Tokens) -> Tokens [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aggregate_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aggregate_expr` [INFO] [stdout] --> src/gen/dummy.rs:45:49 [INFO] [stdout] | [INFO] [stdout] 45 | aggregate_struct: Tokens, aggregate_expr: Tokens) -> Tokens [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aggregate_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/gen/dummy.rs:50:27 [INFO] [stdout] | [INFO] [stdout] 50 | fn int_literal(&self, num: usize) -> Expr { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_ident` [INFO] [stdout] --> src/gen/dummy.rs:54:30 [INFO] [stdout] | [INFO] [stdout] 54 | fn row_type_ident(&self, table_ident: &Ident) -> Tokens { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `primary_key_ident` [INFO] [stdout] --> src/gen/dummy.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | fn to_sql(&self, primary_key_ident: &Ident) -> Tokens { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_primary_key_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_ident` [INFO] [stdout] --> src/gen/dummy.rs:62:27 [INFO] [stdout] | [INFO] [stdout] 62 | fn to_sql_impl(&self, table_ident: &Ident, to_sql_code: Tokens) -> Tokens { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_sql_code` [INFO] [stdout] --> src/gen/dummy.rs:62:48 [INFO] [stdout] | [INFO] [stdout] 62 | fn to_sql_impl(&self, table_ident: &Ident, to_sql_code: Tokens) -> Tokens { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_sql_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `date_type` [INFO] [stdout] --> src/methods.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | for date_type in &date_types { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_date_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_type` [INFO] [stdout] --> src/methods.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | for time_type in &time_types { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/sql/dummy.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | fn to_sql(&self, index: &mut usize) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/sql/dummy.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | fn insert_query(&self, table: &str, fields: &[String], values: &[String]) -> Tokens { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> src/sql/dummy.rs:42:41 [INFO] [stdout] | [INFO] [stdout] 42 | fn insert_query(&self, table: &str, fields: &[String], values: &[String]) -> Tokens { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `values` [INFO] [stdout] --> src/sql/dummy.rs:42:60 [INFO] [stdout] | [INFO] [stdout] 42 | fn insert_query(&self, table: &str, fields: &[String], values: &[String]) -> Tokens { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query_type` and `sql` are never read [INFO] [stdout] --> src/lib.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 169 | struct SqlQueryWithArgs { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 181 | query_type: QueryType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 182 | sql: Tokens, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `field_name_prefix` is never read [INFO] [stdout] --> src/arguments.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Arg { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub field_name_prefix: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Arg` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Not` is never constructed [INFO] [stdout] --> src/ast.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 197 | pub enum LogicalOperator { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 198 | And, [INFO] [stdout] 199 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogicalOperator` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code` and `position` are never read [INFO] [stdout] --> src/error.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Error { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 38 | pub code: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub position: Span, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `position` is never read [INFO] [stdout] --> src/parser.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct MethodCall { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub position: Span, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MethodCall` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `syn_type` and `ty` are never read [INFO] [stdout] --> src/state.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct BothTypes { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 45 | pub syn_type: syn::Type, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 46 | pub ty: WithSpan, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `BothTypes` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `argument_types`, `object_type`, and `return_type` are never read [INFO] [stdout] --> src/state.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct SqlMethodTypes { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 57 | pub argument_types: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 58 | pub object_type: Type, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 59 | pub return_type: Type, [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:275:8 [INFO] [stdout] | [INFO] [stdout] 241 | let expr: Expr = [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 242 | match parse2(input) { [INFO] [stdout] 243 | Ok(expr) => expr, [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 247 | let method_calls = parser.parse(&expr)?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 251 | let mut query = analyze(&method_calls)?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 270 | let limit_exprs = get_limit_args(&query); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 271 | let filter_method_calls = get_method_calls(&query); [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 272 | let aggregate_calls = get_aggregate_calls(&query); [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 273 | let stable_macro_query = generate_macro_patterns(&query, &method_calls); [INFO] [stdout] 274 | let (arguments, literal_arguments) = arguments(query); [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] 275 | Ok(SqlQueryWithArgs { [INFO] [stdout] | ________^ [INFO] [stdout] 276 | | aggregates, [INFO] [stdout] 277 | | aggregate_calls, [INFO] [stdout] 278 | | arguments, [INFO] [stdout] ... | [INFO] [stdout] 290 | | table_name, [INFO] [stdout] 291 | | }) [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] | [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/lib.rs:547:29 [INFO] [stdout] | [INFO] [stdout] 546 | fn concat_token_stream(stream1: TokenStream, stream2: TokenStream) -> TokenStream { [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] 547 | FromIterator::from_iter(stream1.into_iter().chain(stream2.into_iter())) [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/analyzer/filter.rs:225:29 [INFO] [stdout] | [INFO] [stdout] 221 | let arguments: Vec = args.iter() [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 225 | FilterValue::MethodCall(ast::MethodCall { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 226 | | arguments: arguments.clone(), [INFO] [stdout] 227 | | method_name: identifier, [INFO] [stdout] 228 | | object_name, [INFO] [stdout] 229 | | position, [INFO] [stdout] 230 | | }) [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/analyzer/get.rs:52:35 [INFO] [stdout] | [INFO] [stdout] 52 | .and_then(|filter| Ok((filter, false, Limit::Index(number_literal(0))))), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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/gen/mod.rs:376:6 [INFO] [stdout] | [INFO] [stdout] 298 | let mut impls: TokenStream = quote! {}.into(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 301 | let fields: Vec = [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 375 | let fields = fields_vec_to_hashmap(&fields); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 376 | (res(fields, errors), primary_key_field, impls) [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 5 previous errors; 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tql_macros` (lib) due to 6 previous errors; 25 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f082ba3711021b7cdd6ad667083362cfb593aef50f1418e0be6fa5a99e745c02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f082ba3711021b7cdd6ad667083362cfb593aef50f1418e0be6fa5a99e745c02", kill_on_drop: false }` [INFO] [stdout] f082ba3711021b7cdd6ad667083362cfb593aef50f1418e0be6fa5a99e745c02