[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] testing RyoMasumura1201/rust-sam against 1.84.0 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRyoMasumura1201%2Frust-sam" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RyoMasumura1201/rust-sam on toolchain 1.84.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.84.0" "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-2-tc1/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" "+1.84.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dirs-sys v0.4.0 [INFO] [stderr] Downloaded dirs v5.0.0 [INFO] [stderr] Downloaded mockall v0.12.0 [INFO] [stderr] Downloaded mockall_derive v0.12.0 [INFO] [stderr] Downloaded tera v1.18.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c6eeda0bd9ce64b5b13a1ff5579f53e951f720a28e53eeae4ac4523d25409db0 [INFO] running `Command { std: "docker" "start" "-a" "c6eeda0bd9ce64b5b13a1ff5579f53e951f720a28e53eeae4ac4523d25409db0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6eeda0bd9ce64b5b13a1ff5579f53e951f720a28e53eeae4ac4523d25409db0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6eeda0bd9ce64b5b13a1ff5579f53e951f720a28e53eeae4ac4523d25409db0", kill_on_drop: false }` [INFO] [stdout] c6eeda0bd9ce64b5b13a1ff5579f53e951f720a28e53eeae4ac4523d25409db0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92eb0d47406686a2fdcff1f46017b775fdf26b9bb89829a297501e2f47018540 [INFO] running `Command { std: "docker" "start" "-a" "92eb0d47406686a2fdcff1f46017b775fdf26b9bb89829a297501e2f47018540", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [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 ppv-lite86 v0.2.17 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling io-lifetimes v1.0.6 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling rustix v0.36.9 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling ucd-trie v0.1.5 [INFO] [stderr] Compiling linux-raw-sys v0.1.4 [INFO] [stderr] Compiling unic-common v0.9.0 [INFO] [stderr] Compiling uncased v0.9.7 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling libm v0.2.6 [INFO] [stderr] Compiling unic-char-range v0.9.0 [INFO] [stderr] Compiling unic-char-property v0.9.0 [INFO] [stderr] Compiling walkdir v2.3.3 [INFO] [stderr] Compiling unic-ucd-version v0.9.0 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling bstr v1.4.0 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling serde_json v1.0.95 [INFO] [stderr] Compiling itoa v1.0.6 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling iana-time-zone v0.1.56 [INFO] [stderr] Compiling unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling deunicode v0.4.3 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling clap_lex v0.3.2 [INFO] [stderr] Compiling slug v0.1.4 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling unic-segment v0.9.0 [INFO] [stderr] Compiling unsafe-libyaml v0.2.10 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling console v0.15.5 [INFO] [stderr] Compiling dirs-sys v0.4.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling chrono v0.4.24 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling shell-words v1.1.0 [INFO] [stderr] Compiling regex v1.7.3 [INFO] [stderr] Compiling zeroize v1.6.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling dirs v5.0.0 [INFO] [stderr] Compiling humansize v2.1.3 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling chrono-tz-build v0.0.2 [INFO] [stderr] Compiling tempfile v3.4.0 [INFO] [stderr] Compiling is-terminal v0.4.4 [INFO] [stderr] Compiling dialoguer v0.10.4 [INFO] [stderr] Compiling clap_derive v4.1.8 [INFO] [stderr] Compiling chrono-tz v0.6.1 [INFO] [stderr] Compiling globset v0.4.10 [INFO] [stderr] Compiling ignore v0.4.20 [INFO] [stderr] Compiling pest v2.5.7 [INFO] [stderr] Compiling globwalk v0.8.1 [INFO] [stderr] Compiling pest_meta v2.5.7 [INFO] [stderr] Compiling clap v4.1.8 [INFO] [stderr] Compiling pest_generator v2.5.7 [INFO] [stderr] Compiling pest_derive v2.5.7 [INFO] [stderr] Compiling serde_yaml v0.9.27 [INFO] [stderr] Compiling tera v1.18.1 [INFO] [stderr] Compiling 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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 38.52s [INFO] running `Command { std: "docker" "inspect" "92eb0d47406686a2fdcff1f46017b775fdf26b9bb89829a297501e2f47018540", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92eb0d47406686a2fdcff1f46017b775fdf26b9bb89829a297501e2f47018540", kill_on_drop: false }` [INFO] [stdout] 92eb0d47406686a2fdcff1f46017b775fdf26b9bb89829a297501e2f47018540 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f11765350e51feaf602a31b2abb9acaf3734eecfc64c27cfa83a8cf831d8fd04 [INFO] running `Command { std: "docker" "start" "-a" "f11765350e51feaf602a31b2abb9acaf3734eecfc64c27cfa83a8cf831d8fd04", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling predicates-core v1.0.6 [INFO] [stderr] Compiling termtree v0.4.1 [INFO] [stderr] Compiling anstyle v1.0.4 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling fragile v2.0.0 [INFO] [stderr] Compiling predicates-tree v1.0.9 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling predicates v3.0.4 [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 thiserror v1.0.40 [INFO] [stderr] Compiling pest v2.5.7 [INFO] [stderr] Compiling pest_meta v2.5.7 [INFO] [stderr] Compiling mockall v0.12.0 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling pest_generator v2.5.7 [INFO] [stderr] Compiling pest_derive v2.5.7 [INFO] [stderr] Compiling serde_json v1.0.95 [INFO] [stderr] Compiling serde_yaml v0.9.27 [INFO] [stderr] Compiling tera v1.18.1 [INFO] [stderr] Compiling 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: 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 26.08s [INFO] running `Command { std: "docker" "inspect" "f11765350e51feaf602a31b2abb9acaf3734eecfc64c27cfa83a8cf831d8fd04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f11765350e51feaf602a31b2abb9acaf3734eecfc64c27cfa83a8cf831d8fd04", kill_on_drop: false }` [INFO] [stdout] f11765350e51feaf602a31b2abb9acaf3734eecfc64c27cfa83a8cf831d8fd04 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6835e136e346546fe6de961ec79e959dc9c8ffdfe661ac5a805ea08761c8693b [INFO] running `Command { std: "docker" "start" "-a" "6835e136e346546fe6de961ec79e959dc9c8ffdfe661ac5a805ea08761c8693b", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `stacks` [INFO] [stderr] --> src/build.rs:129:9 [INFO] [stderr] | [INFO] [stderr] 129 | let stacks = get_stacks(template_file); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stacks` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `template_data` [INFO] [stderr] --> src/build.rs:160:9 [INFO] [stderr] | [INFO] [stderr] 160 | let template_data = get_template_data(template_file); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_template_data` [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/build.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 10 | struct Function { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 11 | // Function id, can be Logical ID or any function identifier to define a function in specific IaC [INFO] [stderr] 12 | function_id: String, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 13 | // Function's logical ID (used as Function name below if Property `FunctionName` is not defined) [INFO] [stderr] 14 | name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 15 | // Function name (used in place of logical ID) [INFO] [stderr] 16 | functionname: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 17 | // Runtime/language [INFO] [stderr] 18 | runtime: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 19 | // Memory in MBs [INFO] [stderr] 20 | memory: Option, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 21 | // Function Timeout in seconds [INFO] [stderr] 22 | timeout: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 23 | // Name of the handler [INFO] [stderr] 24 | handler: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 25 | // Image Uri [INFO] [stderr] 26 | imageuri: Option, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 27 | // Package Type [INFO] [stderr] 28 | packagetype: String, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 29 | // Image Configuration [INFO] [stderr] 30 | imageconfig: Option, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 31 | // Path to the code. This could be a S3 URI or local path or a dictionary of S3 Bucket, Key, Version [INFO] [stderr] 32 | codeuri: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 35 | environment: Option>, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | rolearn: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | metadata: Option>, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 45 | // InlineCode [INFO] [stderr] 46 | inlinecode: Option, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 47 | // Code Signing config ARN [INFO] [stderr] 48 | codesign_config_arn: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 49 | // Architecture Type [INFO] [stderr] 50 | architectures: Option>, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 51 | // The function url configuration [INFO] [stderr] 52 | function_url_config: Option>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | stack_path: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 57 | // Configuration for runtime management. Includes the fields `UpdateRuntimeOn` and `RuntimeVersionArn` (optional). [INFO] [stderr] 58 | runtime_management_config: Option>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 59 | // LoggingConfig for Advanced logging [INFO] [stderr] 60 | logging_config: Option>, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Function` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `functions` is never read [INFO] [stderr] --> src/build.rs:65:5 [INFO] [stderr] | [INFO] [stderr] 64 | struct ResourcesToBuildCollector { [INFO] [stderr] | ------------------------- field in this struct [INFO] [stderr] 65 | functions: Vec, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ResourcesToBuildCollector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `parent_stack_path`, `name`, `location`, `parameters`, `template_dict`, and `metadata` are never read [INFO] [stderr] --> src/build.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 69 | struct Stack { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 70 | parent_stack_path: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 71 | name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 72 | location: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 73 | parameters: Option>, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 74 | template_dict: HashMap, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 75 | metadata: Option>, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Stack` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/init.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | IoError(io::Error), [INFO] [stderr] | ------- ^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `CloneError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 43 | IoError(()), [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/init.rs:44:13 [INFO] [stderr] | [INFO] [stderr] 44 | FsError(fs_extra_error::Error), [INFO] [stderr] | ------- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `CloneError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 44 | FsError(()), [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] warning: `rust-sam` (bin "rust-sam" test) generated 7 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_sam-ced9044607ac206a) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test build::tests::test_must_raise_if_file_does_not_exist ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6835e136e346546fe6de961ec79e959dc9c8ffdfe661ac5a805ea08761c8693b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6835e136e346546fe6de961ec79e959dc9c8ffdfe661ac5a805ea08761c8693b", kill_on_drop: false }` [INFO] [stdout] 6835e136e346546fe6de961ec79e959dc9c8ffdfe661ac5a805ea08761c8693b