[INFO] cloning repository https://github.com/RyoMasumura1201/rust-sam [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RyoMasumura1201/rust-sam" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRyoMasumura1201%2Frust-sam", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRyoMasumura1201%2Frust-sam'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c5e0b8a778201214c573dba3dc1fffb95896931b [INFO] checking RyoMasumura1201/rust-sam/c5e0b8a778201214c573dba3dc1fffb95896931b against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRyoMasumura1201%2Frust-sam" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RyoMasumura1201/rust-sam 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 git repo https://github.com/RyoMasumura1201/rust-sam [INFO] finished tweaking git repo https://github.com/RyoMasumura1201/rust-sam [INFO] tweaked toml for git repo https://github.com/RyoMasumura1201/rust-sam written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/RyoMasumura1201/rust-sam already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fadff77b859cbd3452055e7734dc012a401c7dc2841f95355f6ebff45a4bcc1f [INFO] running `Command { std: "docker" "start" "-a" "fadff77b859cbd3452055e7734dc012a401c7dc2841f95355f6ebff45a4bcc1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fadff77b859cbd3452055e7734dc012a401c7dc2841f95355f6ebff45a4bcc1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fadff77b859cbd3452055e7734dc012a401c7dc2841f95355f6ebff45a4bcc1f", kill_on_drop: false }` [INFO] [stdout] fadff77b859cbd3452055e7734dc012a401c7dc2841f95355f6ebff45a4bcc1f [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=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] 1150fa92eeb966120f794b16cb8b38a35ce408f9b24f9c41b631aa564da7b477 [INFO] running `Command { std: "docker" "start" "-a" "1150fa92eeb966120f794b16cb8b38a35ce408f9b24f9c41b631aa564da7b477", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling io-lifetimes v1.0.6 [INFO] [stderr] Compiling rustix v0.36.9 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling ucd-trie v0.1.5 [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Checking bstr v1.4.0 [INFO] [stderr] Compiling libm v0.2.6 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex v1.7.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Compiling serde_json v1.0.95 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking iana-time-zone v0.1.56 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Checking chrono v0.4.24 [INFO] [stderr] Compiling chrono-tz-build v0.0.2 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling chrono-tz v0.6.1 [INFO] [stderr] Checking globset v0.4.10 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking ignore v0.4.20 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking clap_lex v0.3.2 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Checking console v0.15.5 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking tempfile v3.4.0 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking globwalk v0.8.1 [INFO] [stderr] Checking is-terminal v0.4.4 [INFO] [stderr] Checking dirs-sys v0.4.0 [INFO] [stderr] Checking percent-encoding v2.2.0 [INFO] [stderr] Checking zeroize v1.6.0 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking unsafe-libyaml v0.2.10 [INFO] [stderr] Checking shell-words v1.1.0 [INFO] [stderr] Checking dialoguer v0.10.4 [INFO] [stderr] Checking dirs v5.0.0 [INFO] [stderr] Checking fs_extra v1.3.0 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking fragile v2.0.0 [INFO] [stderr] Checking predicates v3.0.4 [INFO] [stderr] Compiling clap_derive v4.1.8 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling mockall_derive v0.12.0 [INFO] [stderr] Compiling pest v2.5.7 [INFO] [stderr] Checking clap v4.1.8 [INFO] [stderr] Compiling pest_meta v2.5.7 [INFO] [stderr] Checking mockall v0.12.0 [INFO] [stderr] Compiling pest_generator v2.5.7 [INFO] [stderr] Compiling pest_derive v2.5.7 [INFO] [stderr] Checking serde_yaml v0.9.27 [INFO] [stderr] Checking tera v1.18.1 [INFO] [stderr] Checking rust-sam v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `stacks` [INFO] [stdout] --> src/build.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let stacks = get_stacks(template_file); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stacks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `template_data` [INFO] [stdout] --> src/build.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let template_data = get_template_data(template_file); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_template_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/build.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | // Function id, can be Logical ID or any function identifier to define a function in specific IaC [INFO] [stdout] 12 | function_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | // Function's logical ID (used as Function name below if Property `FunctionName` is not defined) [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | // Function name (used in place of logical ID) [INFO] [stdout] 16 | functionname: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 17 | // Runtime/language [INFO] [stdout] 18 | runtime: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | // Memory in MBs [INFO] [stdout] 20 | memory: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | // Function Timeout in seconds [INFO] [stdout] 22 | timeout: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | // Name of the handler [INFO] [stdout] 24 | handler: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | // Image Uri [INFO] [stdout] 26 | imageuri: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | // Package Type [INFO] [stdout] 28 | packagetype: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | // Image Configuration [INFO] [stdout] 30 | imageconfig: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 31 | // Path to the code. This could be a S3 URI or local path or a dictionary of S3 Bucket, Key, Version [INFO] [stdout] 32 | codeuri: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | environment: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | rolearn: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | metadata: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 45 | // InlineCode [INFO] [stdout] 46 | inlinecode: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 47 | // Code Signing config ARN [INFO] [stdout] 48 | codesign_config_arn: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | // Architecture Type [INFO] [stdout] 50 | architectures: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 51 | // The function url configuration [INFO] [stdout] 52 | function_url_config: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | stack_path: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 57 | // Configuration for runtime management. Includes the fields `UpdateRuntimeOn` and `RuntimeVersionArn` (optional). [INFO] [stdout] 58 | runtime_management_config: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 59 | // LoggingConfig for Advanced logging [INFO] [stdout] 60 | logging_config: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stacks` [INFO] [stdout] --> src/build.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let stacks = get_stacks(template_file); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stacks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `functions` is never read [INFO] [stdout] --> src/build.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | struct ResourcesToBuildCollector { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] 65 | functions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourcesToBuildCollector` 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 `parent_stack_path`, `name`, `location`, `parameters`, `template_dict`, and `metadata` are never read [INFO] [stdout] --> src/build.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | struct Stack { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 70 | parent_stack_path: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 71 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 72 | location: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 73 | parameters: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 74 | template_dict: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 75 | metadata: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stack` 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 `0` is never read [INFO] [stdout] --> src/init.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | IoError(io::Error), [INFO] [stdout] | ------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CloneError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 43 | IoError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/init.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | FsError(fs_extra_error::Error), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CloneError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 44 | FsError(()), [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/build.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 187 | let mut file = File::open(&template_file)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 191 | serde_yaml::from_str::(&contents).map_err(|ex| { [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] = 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/build.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 191 | serde_yaml::from_str::(&contents).map_err(|ex| { [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 192 | / Box::new(TemplateFailedParsingException(format!( [INFO] [stdout] 193 | | "Failed to parse template: {}", [INFO] [stdout] 194 | | ex [INFO] [stdout] 195 | | ))) as Box [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/init.rs:91:11 [INFO] [stdout] | [INFO] [stdout] 67 | let temp_dir = tempdir().map_err(CloneError::IoError)?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 83 | let mut clone_command = Command::new("git"); [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 91 | match persist_local_repo(temp_path_str, config_dir, REPOSITORY_DIR) { [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] = 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/init.rs:116:11 [INFO] [stdout] | [INFO] [stdout] 112 | let mut command = Command::new("git"); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | match command.output() { [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 4 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `template_data` [INFO] [stdout] --> src/build.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let template_data = get_template_data(template_file); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_template_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-sam` (bin "rust-sam") due to 5 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/build.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | // Function id, can be Logical ID or any function identifier to define a function in specific IaC [INFO] [stdout] 12 | function_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | // Function's logical ID (used as Function name below if Property `FunctionName` is not defined) [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | // Function name (used in place of logical ID) [INFO] [stdout] 16 | functionname: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 17 | // Runtime/language [INFO] [stdout] 18 | runtime: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | // Memory in MBs [INFO] [stdout] 20 | memory: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | // Function Timeout in seconds [INFO] [stdout] 22 | timeout: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | // Name of the handler [INFO] [stdout] 24 | handler: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | // Image Uri [INFO] [stdout] 26 | imageuri: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | // Package Type [INFO] [stdout] 28 | packagetype: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | // Image Configuration [INFO] [stdout] 30 | imageconfig: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 31 | // Path to the code. This could be a S3 URI or local path or a dictionary of S3 Bucket, Key, Version [INFO] [stdout] 32 | codeuri: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | environment: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | rolearn: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | metadata: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 45 | // InlineCode [INFO] [stdout] 46 | inlinecode: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 47 | // Code Signing config ARN [INFO] [stdout] 48 | codesign_config_arn: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | // Architecture Type [INFO] [stdout] 50 | architectures: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 51 | // The function url configuration [INFO] [stdout] 52 | function_url_config: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | stack_path: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 57 | // Configuration for runtime management. Includes the fields `UpdateRuntimeOn` and `RuntimeVersionArn` (optional). [INFO] [stdout] 58 | runtime_management_config: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 59 | // LoggingConfig for Advanced logging [INFO] [stdout] 60 | logging_config: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `functions` is never read [INFO] [stdout] --> src/build.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | struct ResourcesToBuildCollector { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] 65 | functions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourcesToBuildCollector` 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 `parent_stack_path`, `name`, `location`, `parameters`, `template_dict`, and `metadata` are never read [INFO] [stdout] --> src/build.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | struct Stack { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 70 | parent_stack_path: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 71 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 72 | location: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 73 | parameters: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 74 | template_dict: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 75 | metadata: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stack` 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 `0` is never read [INFO] [stdout] --> src/init.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | IoError(io::Error), [INFO] [stdout] | ------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CloneError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 43 | IoError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/init.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | FsError(fs_extra_error::Error), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CloneError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 44 | FsError(()), [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/build.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 187 | let mut file = File::open(&template_file)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 191 | serde_yaml::from_str::(&contents).map_err(|ex| { [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] = 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/build.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 191 | serde_yaml::from_str::(&contents).map_err(|ex| { [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 192 | / Box::new(TemplateFailedParsingException(format!( [INFO] [stdout] 193 | | "Failed to parse template: {}", [INFO] [stdout] 194 | | ex [INFO] [stdout] 195 | | ))) as Box [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/init.rs:91:11 [INFO] [stdout] | [INFO] [stdout] 67 | let temp_dir = tempdir().map_err(CloneError::IoError)?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 83 | let mut clone_command = Command::new("git"); [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 91 | match persist_local_repo(temp_path_str, config_dir, REPOSITORY_DIR) { [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] = 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/init.rs:116:11 [INFO] [stdout] | [INFO] [stdout] 112 | let mut command = Command::new("git"); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | match command.output() { [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 4 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-sam` (bin "rust-sam" test) due to 5 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1150fa92eeb966120f794b16cb8b38a35ce408f9b24f9c41b631aa564da7b477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1150fa92eeb966120f794b16cb8b38a35ce408f9b24f9c41b631aa564da7b477", kill_on_drop: false }` [INFO] [stdout] 1150fa92eeb966120f794b16cb8b38a35ce408f9b24f9c41b631aa564da7b477