[INFO] cloning repository https://github.com/iantbutler01/gasp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iantbutler01/gasp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiantbutler01%2Fgasp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiantbutler01%2Fgasp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c1476f4ae737b12b4a73ad1fab36a622836656d0 [INFO] checking iantbutler01/gasp against try#d8a5ee01b913730aca7ab44c72c8f2722c0533ff for pr-139022 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiantbutler01%2Fgasp" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iantbutler01/gasp on toolchain d8a5ee01b913730aca7ab44c72c8f2722c0533ff [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/iantbutler01/gasp [INFO] finished tweaking git repo https://github.com/iantbutler01/gasp [INFO] tweaked toml for git repo https://github.com/iantbutler01/gasp written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/iantbutler01/gasp 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" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d38755bd5f8a159ea6020cadf186784a6562e8ad921f957658770a4f142bfed6 [INFO] running `Command { std: "docker" "start" "-a" "d38755bd5f8a159ea6020cadf186784a6562e8ad921f957658770a4f142bfed6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d38755bd5f8a159ea6020cadf186784a6562e8ad921f957658770a4f142bfed6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d38755bd5f8a159ea6020cadf186784a6562e8ad921f957658770a4f142bfed6", kill_on_drop: false }` [INFO] [stdout] d38755bd5f8a159ea6020cadf186784a6562e8ad921f957658770a4f142bfed6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2fdabb4a4299ad041bb9fc26cedc590e7bcdef4ee20132bff8add9ecf4ece2b2 [INFO] running `Command { std: "docker" "start" "-a" "2fdabb4a4299ad041bb9fc26cedc590e7bcdef4ee20132bff8add9ecf4ece2b2", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking brownstone v3.0.0 [INFO] [stderr] Checking indent_write v2.2.0 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Checking unindent v0.1.11 [INFO] [stderr] Checking joinery v2.1.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling pyo3-build-config v0.19.2 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling pyo3-ffi v0.19.2 [INFO] [stderr] Compiling pyo3 v0.19.2 [INFO] [stderr] Checking tempfile v3.16.0 [INFO] [stderr] Checking nom-supreme v0.8.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling pyo3-macros-backend v0.19.2 [INFO] [stderr] Compiling pyo3-macros v0.19.2 [INFO] [stderr] Checking gasp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Number` [INFO] [stdout] --> src/parser_types.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::json_types::{JsonValue, Number}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::var` [INFO] [stdout] --> src/wail_parser.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::env::var; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/wail_parser.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/wail_parser.rs:907:57 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 907 | fn parse_field(&'a self, input: &'a str) -> IResult<&str, WAILField, ErrorTree<&'a str>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/wail_parser.rs:907:63 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 907 | fn parse_field(&'a self, input: &'a str) -> IResult<&str, WAILField, ErrorTree<&'a str>> { [INFO] [stdout] | ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/wail_parser.rs:931:18 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 931 | ) -> IResult<&str, (WAILType<'a>, String), ErrorTree<&'a str>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/wail_parser.rs:992:18 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 992 | ) -> IResult<&str, (WAILType<'a>, String), ErrorTree<&'a str>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/wail_parser.rs:1562:27 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 1562 | ) -> IResult<&'a str, WAILField, ErrorTree<&'a str>> { [INFO] [stdout] | ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::JsonValidationError` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use types::JsonValidationError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::var` [INFO] [stdout] --> src/wail_parser.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::env::var; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/wail_parser.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/wail_parser.rs:907:57 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 907 | fn parse_field(&'a self, input: &'a str) -> IResult<&str, WAILField, ErrorTree<&'a str>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/wail_parser.rs:907:63 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 907 | fn parse_field(&'a self, input: &'a str) -> IResult<&str, WAILField, ErrorTree<&'a str>> { [INFO] [stdout] | ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/wail_parser.rs:931:18 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 931 | ) -> IResult<&str, (WAILType<'a>, String), ErrorTree<&'a str>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/wail_parser.rs:992:18 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 992 | ) -> IResult<&str, (WAILType<'a>, String), ErrorTree<&'a str>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/wail_parser.rs:1562:27 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 1562 | ) -> IResult<&'a str, WAILField, ErrorTree<&'a str>> { [INFO] [stdout] | ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/wail_parser.rs:2108:9 [INFO] [stdout] | [INFO] [stdout] 2108 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::var` [INFO] [stdout] --> src/lib.rs:351:9 [INFO] [stdout] | [INFO] [stdout] 351 | use std::env::var; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/parser_types.rs:584:21 [INFO] [stdout] | [INFO] [stdout] 584 | variable, [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object_type` [INFO] [stdout] --> src/parser_types.rs:585:21 [INFO] [stdout] | [INFO] [stdout] 585 | object_type, [INFO] [stdout] | ^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/template_parser.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut final_segments = body_segments; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/types.rs:491:35 [INFO] [stdout] | [INFO] [stdout] 491 | JsonValue::Object(ref map) => Ok(WAILType::Composite(WAILCompositeType::Object( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `union` [INFO] [stdout] --> src/types.rs:523:42 [INFO] [stdout] | [INFO] [stdout] 523 | WAILCompositeType::Union(union) => JsonValue::Object(HashMap::new()), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_union` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> src/wail_parser.rs:567:33 [INFO] [stdout] | [INFO] [stdout] 567 | if let Some(arg) = args.get(&field.name) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/parser_types.rs:584:21 [INFO] [stdout] | [INFO] [stdout] 584 | variable, [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object_type` [INFO] [stdout] --> src/parser_types.rs:585:21 [INFO] [stdout] | [INFO] [stdout] 585 | object_type, [INFO] [stdout] | ^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field` [INFO] [stdout] --> src/wail_parser.rs:1703:42 [INFO] [stdout] | [INFO] [stdout] 1703 | Some((PathSegment::UnionType(field, validation_errors), _)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/wail_parser.rs:1705:39 [INFO] [stdout] | [INFO] [stdout] 1705 | JsonValue::Object(map) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_name` [INFO] [stdout] --> src/wail_parser.rs:1707:30 [INFO] [stdout] | [INFO] [stdout] 1707 | for (type_name, errors) in validation_errors { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/template_parser.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut final_segments = body_segments; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/types.rs:491:35 [INFO] [stdout] | [INFO] [stdout] 491 | JsonValue::Object(ref map) => Ok(WAILType::Composite(WAILCompositeType::Object( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `union` [INFO] [stdout] --> src/types.rs:523:42 [INFO] [stdout] | [INFO] [stdout] 523 | WAILCompositeType::Union(union) => JsonValue::Object(HashMap::new()), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_union` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnmatchedBrace` and `UnmatchedBracket` are never constructed [INFO] [stdout] --> src/json_types.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum JsonError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 106 | UnmatchedBrace, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 107 | UnmatchedBracket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_string`, `as_array`, `as_object`, `as_number`, `as_bool`, and `is_null` are never used [INFO] [stdout] --> src/json_types.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl JsonValue { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 122 | pub fn as_string(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn as_array(&self) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn as_object(&self) -> Option<&HashMap> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn as_number(&self) -> Option<&Number> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn as_bool(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn is_null(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/parser_types.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum WAILAnnotation { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 10 | Description(String), // Detailed explanation of purpose/meaning [INFO] [stdout] 11 | Example(String), // Concrete examples of valid values/usage [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | Validation(String), // Rules about what makes a valid value [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | Format(String), // Expected text format or structure [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | Important(String), // Critical information the LLM should pay special attention to [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | Context(String), // Additional context about where/how this is used [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | Default(String), // Default/fallback value if not specified [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | Field { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILAnnotation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Float` is never constructed [INFO] [stdout] --> src/parser_types.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum TemplateArgument { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 49 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TemplateArgument` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WAILObjectDef` is never constructed [INFO] [stdout] --> src/parser_types.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct WAILObjectDef<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILObjectDef` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `binding_name` and `object_type` are never read [INFO] [stdout] --> src/parser_types.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct WAILObjectInstantiation { [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] 91 | pub binding_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 92 | pub object_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILObjectInstantiation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/parser_types.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl TemplateArgument { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 114 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_template_call`, `as_assignment`, and `as_object_instantiation` are never used [INFO] [stdout] --> src/parser_types.rs:595:12 [INFO] [stdout] | [INFO] [stdout] 594 | impl MainStatement { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 595 | pub fn as_template_call(&self) -> Option<&WAILTemplateCall> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 602 | pub fn as_assignment(&self) -> Option<(&String, &WAILTemplateCall)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 612 | pub fn as_object_instantiation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InString`, `InNumber`, `AfterKey`, `AfterColon`, and `AfterValue` are never constructed [INFO] [stdout] --> src/rd_json_stack_parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | enum ParserState { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | InString, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | InNumber, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | AfterKey, // After key, expecting colon [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | AfterColon, // After colon, expecting value [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | AfterValue, // After value, expecting comma or end [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parser_state` is never read [INFO] [stdout] --> src/rd_json_stack_parser.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 22 | parser_state: ParserState, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_byte_offset` is never used [INFO] [stdout] --> src/rd_json_stack_parser.rs:788:8 [INFO] [stdout] | [INFO] [stdout] 778 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 788 | fn peek_byte_offset(&self, offset: usize) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TOOL_TYPE` is never used [INFO] [stdout] --> src/types.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | static TOOL_TYPE: &str = "Tool"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ARRAY_TYPE` is never used [INFO] [stdout] --> src/types.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | static ARRAY_TYPE: &str = "Array"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | TemplateNotFound(String), [INFO] [stdout] | ---------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JsonValidationError` has derived impls for the traits `Clone` and `Debug`, but these are 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] 25 - TemplateNotFound(String), [INFO] [stdout] 25 + TemplateNotFound(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | MissingTemplateResponse(String), [INFO] [stdout] | ----------------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JsonValidationError` has derived impls for the traits `Clone` and `Debug`, but these are 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] 26 - MissingTemplateResponse(String), [INFO] [stdout] 26 + MissingTemplateResponse(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | JsonParserError(JsonError), [INFO] [stdout] | --------------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JsonValidationError` has derived impls for the traits `Clone` and `Debug`, but these are 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] 28 - JsonParserError(JsonError), [INFO] [stdout] 28 + JsonParserError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String`, `Number`, `Float`, and `TypeRef` are never constructed [INFO] [stdout] --> src/types.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum WAILValue { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 43 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 44 | Number(i64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | TypeRef(String), // For when we reference a type like "String" or "Number" [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILValue` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Boolean` is never constructed [INFO] [stdout] --> src/types.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum WAILSimpleType<'a> { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 51 | String(WAILString<'a>), [INFO] [stdout] 52 | Boolean(WAILBoolean<'a>), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILSimpleType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Value` is never constructed [INFO] [stdout] --> src/types.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub enum WAILType<'a> { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 79 | Value(WAILValue), // For literal values [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_object_ref` is never used [INFO] [stdout] --> src/types.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl<'a> WAILType<'a> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn is_object_ref(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidIdentifier`, `UndefinedType`, `InvalidTemplateCall`, and `InvalidImportPath` are never constructed [INFO] [stdout] --> src/wail_parser.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum WAILParseError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 50 | InvalidIdentifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | UndefinedType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | InvalidTemplateCall { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | InvalidImportPath { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILParseError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `base_path` is never read [INFO] [stdout] --> src/wail_parser.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct WAILParser<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 148 | base_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILParser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pop` is never used [INFO] [stdout] --> src/wail_parser.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 159 | impl ImportChain { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 181 | fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `detect_file_type` and `parse_value` are never used [INFO] [stdout] --> src/wail_parser.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 230 | fn detect_file_type(path: &'a str) -> WAILFileType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1294 | fn parse_value( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/wail_parser.rs:2068:8 [INFO] [stdout] | [INFO] [stdout] 2067 | impl<'a> WAILDefinition<'a> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 2068 | fn get_name(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UndefinedType` is never constructed [INFO] [stdout] --> src/wail_parser.rs:2080:5 [INFO] [stdout] | [INFO] [stdout] 2079 | pub enum ValidationWarning { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] 2080 | UndefinedType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidationWarning` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 55 | impl WAILGenerator { [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | `WAILGenerator` is not local [INFO] [stdout] | `WAILGenerator` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> src/wail_parser.rs:567:33 [INFO] [stdout] | [INFO] [stdout] 567 | if let Some(arg) = args.get(&field.name) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field` [INFO] [stdout] --> src/wail_parser.rs:1703:42 [INFO] [stdout] | [INFO] [stdout] 1703 | Some((PathSegment::UnionType(field, validation_errors), _)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/wail_parser.rs:1705:39 [INFO] [stdout] | [INFO] [stdout] 1705 | JsonValue::Object(map) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_name` [INFO] [stdout] --> src/wail_parser.rs:1707:30 [INFO] [stdout] | [INFO] [stdout] 1707 | for (type_name, errors) in validation_errors { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/wail_parser.rs:2145:13 [INFO] [stdout] | [INFO] [stdout] 2145 | let mut parser = WAILParser::new(test_dir); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `warnings` [INFO] [stdout] --> src/wail_parser.rs:2600:14 [INFO] [stdout] | [INFO] [stdout] 2600 | let (warnings, errors) = parser.validate(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_warnings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `errors` [INFO] [stdout] --> src/wail_parser.rs:2656:24 [INFO] [stdout] | [INFO] [stdout] 2656 | let (warnings, errors) = parser.validate(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnmatchedBrace` and `UnmatchedBracket` are never constructed [INFO] [stdout] --> src/json_types.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum JsonError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 106 | UnmatchedBrace, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 107 | UnmatchedBracket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_array`, `as_object`, `as_number`, `as_bool`, and `is_null` are never used [INFO] [stdout] --> src/json_types.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl JsonValue { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn as_array(&self) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn as_object(&self) -> Option<&HashMap> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn as_number(&self) -> Option<&Number> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn as_bool(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn is_null(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/parser_types.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum WAILAnnotation { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 10 | Description(String), // Detailed explanation of purpose/meaning [INFO] [stdout] 11 | Example(String), // Concrete examples of valid values/usage [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | Validation(String), // Rules about what makes a valid value [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | Format(String), // Expected text format or structure [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | Important(String), // Critical information the LLM should pay special attention to [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | Context(String), // Additional context about where/how this is used [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | Default(String), // Default/fallback value if not specified [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | Field { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILAnnotation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Float` is never constructed [INFO] [stdout] --> src/parser_types.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum TemplateArgument { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 49 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TemplateArgument` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WAILObjectDef` is never constructed [INFO] [stdout] --> src/parser_types.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct WAILObjectDef<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILObjectDef` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `binding_name` and `object_type` are never read [INFO] [stdout] --> src/parser_types.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct WAILObjectInstantiation { [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] 91 | pub binding_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 92 | pub object_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILObjectInstantiation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/parser_types.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl TemplateArgument { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 114 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_template_call` is never used [INFO] [stdout] --> src/parser_types.rs:595:12 [INFO] [stdout] | [INFO] [stdout] 594 | impl MainStatement { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 595 | pub fn as_template_call(&self) -> Option<&WAILTemplateCall> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InString`, `InNumber`, `AfterKey`, `AfterColon`, and `AfterValue` are never constructed [INFO] [stdout] --> src/rd_json_stack_parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | enum ParserState { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | InString, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | InNumber, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | AfterKey, // After key, expecting colon [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | AfterColon, // After colon, expecting value [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | AfterValue, // After value, expecting comma or end [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parser_state` is never read [INFO] [stdout] --> src/rd_json_stack_parser.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 22 | parser_state: ParserState, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_byte_offset` is never used [INFO] [stdout] --> src/rd_json_stack_parser.rs:788:8 [INFO] [stdout] | [INFO] [stdout] 778 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 788 | fn peek_byte_offset(&self, offset: usize) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TOOL_TYPE` is never used [INFO] [stdout] --> src/types.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | static TOOL_TYPE: &str = "Tool"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | TemplateNotFound(String), [INFO] [stdout] | ---------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JsonValidationError` has derived impls for the traits `Clone` and `Debug`, but these are 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] 25 - TemplateNotFound(String), [INFO] [stdout] 25 + TemplateNotFound(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | MissingTemplateResponse(String), [INFO] [stdout] | ----------------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JsonValidationError` has derived impls for the traits `Clone` and `Debug`, but these are 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] 26 - MissingTemplateResponse(String), [INFO] [stdout] 26 + MissingTemplateResponse(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | JsonParserError(JsonError), [INFO] [stdout] | --------------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JsonValidationError` has derived impls for the traits `Clone` and `Debug`, but these are 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] 28 - JsonParserError(JsonError), [INFO] [stdout] 28 + JsonParserError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String`, `Number`, `Float`, and `TypeRef` are never constructed [INFO] [stdout] --> src/types.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum WAILValue { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 43 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 44 | Number(i64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | TypeRef(String), // For when we reference a type like "String" or "Number" [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILValue` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Boolean` is never constructed [INFO] [stdout] --> src/types.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum WAILSimpleType<'a> { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 51 | String(WAILString<'a>), [INFO] [stdout] 52 | Boolean(WAILBoolean<'a>), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILSimpleType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Value` is never constructed [INFO] [stdout] --> src/types.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub enum WAILType<'a> { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 79 | Value(WAILValue), // For literal values [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_object_ref` is never used [INFO] [stdout] --> src/types.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl<'a> WAILType<'a> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn is_object_ref(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidIdentifier`, `UndefinedType`, `InvalidTemplateCall`, and `InvalidImportPath` are never constructed [INFO] [stdout] --> src/wail_parser.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum WAILParseError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 50 | InvalidIdentifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | UndefinedType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | InvalidTemplateCall { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | InvalidImportPath { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILParseError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `base_path` is never read [INFO] [stdout] --> src/wail_parser.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct WAILParser<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 148 | base_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WAILParser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pop` is never used [INFO] [stdout] --> src/wail_parser.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 159 | impl ImportChain { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 181 | fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `detect_file_type` and `parse_value` are never used [INFO] [stdout] --> src/wail_parser.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a> WAILParser<'a> { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 230 | fn detect_file_type(path: &'a str) -> WAILFileType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1294 | fn parse_value( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/wail_parser.rs:2068:8 [INFO] [stdout] | [INFO] [stdout] 2067 | impl<'a> WAILDefinition<'a> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 2068 | fn get_name(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UndefinedType` is never constructed [INFO] [stdout] --> src/wail_parser.rs:2080:5 [INFO] [stdout] | [INFO] [stdout] 2079 | pub enum ValidationWarning { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] 2080 | UndefinedType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidationWarning` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 55 | impl WAILGenerator { [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | `WAILGenerator` is not local [INFO] [stdout] | `WAILGenerator` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.18s [INFO] running `Command { std: "docker" "inspect" "2fdabb4a4299ad041bb9fc26cedc590e7bcdef4ee20132bff8add9ecf4ece2b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fdabb4a4299ad041bb9fc26cedc590e7bcdef4ee20132bff8add9ecf4ece2b2", kill_on_drop: false }` [INFO] [stdout] 2fdabb4a4299ad041bb9fc26cedc590e7bcdef4ee20132bff8add9ecf4ece2b2