[INFO] fetching crate regmaps 0.0.0... [INFO] checking regmaps-0.0.0 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate regmaps 0.0.0 into /workspace/builds/worker-38/source [INFO] validating manifest of crates.io crate regmaps 0.0.0 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate regmaps 0.0.0 [INFO] finished tweaking crates.io crate regmaps 0.0.0 [INFO] tweaked toml for crates.io crate regmaps 0.0.0 written to /workspace/builds/worker-38/source/Cargo.toml [INFO] crate crates.io crate regmaps 0.0.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded psm v0.1.12 [INFO] [stderr] Downloaded serde_yaml v0.8.16 [INFO] [stderr] Downloaded derive-new v0.5.8 [INFO] [stderr] Downloaded xmltree v0.8.0 [INFO] [stderr] Downloaded stacker v0.1.13 [INFO] [stderr] Downloaded rustc-rayon-core v0.3.0 [INFO] [stderr] Downloaded rustc-rayon v0.3.0 [INFO] [stderr] Downloaded libc v0.2.85 [INFO] [stderr] Downloaded svd-parser v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-38/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-38/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a795aafb7fd4f0c09c9ddcbb549702076affcb19ae6866d6ea4b4e6185ba71b7 [INFO] running `Command { std: "docker" "start" "-a" "a795aafb7fd4f0c09c9ddcbb549702076affcb19ae6866d6ea4b4e6185ba71b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a795aafb7fd4f0c09c9ddcbb549702076affcb19ae6866d6ea4b4e6185ba71b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a795aafb7fd4f0c09c9ddcbb549702076affcb19ae6866d6ea4b4e6185ba71b7", kill_on_drop: false }` [INFO] [stdout] a795aafb7fd4f0c09c9ddcbb549702076affcb19ae6866d6ea4b4e6185ba71b7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-38/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-38/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd2623725692958dfbe5f9e357f32cedc6480a05881075c19e21d182bf3ff02e [INFO] running `Command { std: "docker" "start" "-a" "fd2623725692958dfbe5f9e357f32cedc6480a05881075c19e21d182bf3ff02e", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] regex v1.4.3 (as host dependency): aho-corasick, default, memchr, perf, perf-cache, perf-dfa, perf-inline, perf-literal, thread_local, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-script, unicode-segment [INFO] [stderr] regex-syntax v0.6.22 (as host dependency): default, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-script, unicode-segment [INFO] [stderr] rust-embed-utils v5.1.0 (as host dependency): debug-embed [INFO] [stderr] [INFO] [stderr] Compiling libc v0.2.85 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Compiling anyhow v1.0.38 [INFO] [stderr] Compiling serde_json v1.0.62 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking deunicode v0.4.3 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking dtoa v0.4.7 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking humansize v1.1.0 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking pest v2.1.3 [INFO] [stderr] Compiling rust-embed-utils v5.1.0 [INFO] [stderr] Checking slug v0.1.4 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Checking xml-rs v0.7.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Checking bstr v0.2.14 [INFO] [stderr] Checking quote v1.0.8 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking xmltree v0.8.0 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Checking rand_core v0.6.1 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling shellexpand v2.1.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Checking globset v0.4.6 [INFO] [stderr] Checking env_logger v0.8.2 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling rust-embed-impl v5.9.0 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking ignore v0.4.17 [INFO] [stderr] Checking globwalk v0.8.1 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Checking rust-embed v5.9.0 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking svd-parser v0.9.0 [INFO] [stderr] Checking serde_yaml v0.8.16 [INFO] [stderr] Checking tera v1.6.1 [INFO] [stderr] Checking regmaps v0.0.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `regmaps` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * /rustc/a7a572ce3edd6d476191fbfe92c9c1986e009b34/library/core/src/panic.rs [INFO] [stderr] * /rustc/a7a572ce3edd6d476191fbfe92c9c1986e009b34/library/std/src/macros.rs [INFO] [stderr] * src/input/svd.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0425]: cannot find value `dims` in this scope [INFO] [stderr] --> src/input/svd.rs:96:55 [INFO] [stderr] | [INFO] [stderr] 96 | println!("- reg array dims={:?}", dims); [INFO] [stderr] | ^^^^ help: a local variable with a similar name exists: `_dims` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `cluster` in this scope [INFO] [stderr] --> src/input/svd.rs:109:63 [INFO] [stderr] | [INFO] [stderr] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stderr] | ^^^^^^^ help: a local variable with a similar name exists: `_cluster` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `dims` in this scope [INFO] [stderr] --> src/input/svd.rs:109:77 [INFO] [stderr] | [INFO] [stderr] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stderr] | ^^^^ help: a local variable with a similar name exists: `_dims` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `cluster` in this scope [INFO] [stderr] --> src/input/svd.rs:110:43 [INFO] [stderr] | [INFO] [stderr] 110 | parse_periph(config, &cluster.children); [INFO] [stderr] | ^^^^^^^ help: a local variable with a similar name exists: `_cluster` [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/input/svd.rs:96:21 [INFO] [stderr] | [INFO] [stderr] 95 | unimplemented!("Register arrays are unimplemented!"); [INFO] [stderr] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 96 | println!("- reg array dims={:?}", dims); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/input/svd.rs:97:39 [INFO] [stderr] | [INFO] [stderr] 97 | parse_reg(config, reg); [INFO] [stderr] | ^^^ expected struct `RegisterInfo`, found enum `RegisterCluster` [INFO] [stderr] | [INFO] [stderr] = note: expected reference `&RegisterInfo` [INFO] [stderr] found reference `&RegisterCluster` [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/input/svd.rs:102:21 [INFO] [stderr] | [INFO] [stderr] 101 | unimplemented!("Clusters are unimplemented!"); [INFO] [stderr] | ---------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 102 | println!("- cluster"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/input/svd.rs:109:21 [INFO] [stderr] | [INFO] [stderr] 108 | unimplemented!("Cluster arrays are unimplemented!"); [INFO] [stderr] | ---------------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/svd.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser as svd` [INFO] [stdout] --> src/input/yaml.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use svd_parser as svd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser::svd::registercluster::RegisterCluster` [INFO] [stdout] --> src/input/yaml.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use svd_parser::svd::registercluster::RegisterCluster; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/yaml.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format_ident`, `quote` [INFO] [stdout] --> src/output/cpp.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use quote::{format_ident, quote}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/svd.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser as svd` [INFO] [stdout] --> src/input/yaml.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use svd_parser as svd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser::svd::registercluster::RegisterCluster` [INFO] [stdout] --> src/input/yaml.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use svd_parser::svd::registercluster::RegisterCluster; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/yaml.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format_ident`, `quote` [INFO] [stdout] --> src/output/cpp.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use quote::{format_ident, quote}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::info::*` [INFO] [stdout] --> src/output/rust.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | use crate::info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 95 | unimplemented!("Register arrays are unimplemented!"); [INFO] [stdout] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 96 | println!("- reg array dims={:?}", dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 101 | unimplemented!("Clusters are unimplemented!"); [INFO] [stdout] | ---------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 102 | println!("- cluster"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 108 | unimplemented!("Cluster arrays are unimplemented!"); [INFO] [stdout] | ---------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 95 | unimplemented!("Register arrays are unimplemented!"); [INFO] [stdout] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 96 | println!("- reg array dims={:?}", dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 101 | unimplemented!("Clusters are unimplemented!"); [INFO] [stdout] | ---------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 102 | println!("- cluster"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 108 | unimplemented!("Cluster arrays are unimplemented!"); [INFO] [stdout] | ---------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/svd.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/input/svd.rs:67:50 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/input/svd.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | reg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:100:84 [INFO] [stdout] | [INFO] [stdout] 100 | RegisterCluster::Cluster(svd_parser::svd::cluster::Cluster::Single(cluster)) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | cluster, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/yaml.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn parse_yaml(filename: &str, config: &Config) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/output/cpp.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/svd.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/input/svd.rs:67:50 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/input/svd.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | reg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:100:84 [INFO] [stdout] | [INFO] [stdout] 100 | RegisterCluster::Cluster(svd_parser::svd::cluster::Cluster::Single(cluster)) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | cluster, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/yaml.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn parse_yaml(filename: &str, config: &Config) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/output/cpp.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_field` [INFO] [stdout] --> src/input/svd.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_reg` [INFO] [stdout] --> src/input/svd.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse_reg(config: &Config, reg: &svd_parser::svd::registerinfo::RegisterInfo) -> Register { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_periph` [INFO] [stdout] --> src/input/svd.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn parse_periph(config: &Config, regs: &[RegisterCluster]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_svd` [INFO] [stdout] --> src/input/svd.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn parse_svd(filename: &str, periph: &str, config: &Config) -> Peripheral { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `periph_to_context` [INFO] [stdout] --> src/output/cpp.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn periph_to_context(periph: &Peripheral) -> tera::Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_periph` [INFO] [stdout] --> src/output/cpp.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn generate_periph(periph: &Peripheral) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cpp` [INFO] [stdout] --> src/output/cpp.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_json` [INFO] [stdout] --> src/output/json.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn generate_json(config: &JsonConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/output/rust.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_field` [INFO] [stdout] --> src/input/svd.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_reg` [INFO] [stdout] --> src/input/svd.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse_reg(config: &Config, reg: &svd_parser::svd::registerinfo::RegisterInfo) -> Register { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_periph` [INFO] [stdout] --> src/input/svd.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn parse_periph(config: &Config, regs: &[RegisterCluster]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_svd` [INFO] [stdout] --> src/input/svd.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn parse_svd(filename: &str, periph: &str, config: &Config) -> Peripheral { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `periph_to_context` [INFO] [stdout] --> src/output/cpp.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn periph_to_context(periph: &Peripheral) -> tera::Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_periph` [INFO] [stdout] --> src/output/cpp.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn generate_periph(periph: &Peripheral) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cpp` [INFO] [stdout] --> src/output/cpp.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_json` [INFO] [stdout] --> src/output/json.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn generate_json(config: &JsonConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/output/rust.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `regmaps` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * /rustc/a7a572ce3edd6d476191fbfe92c9c1986e009b34/library/core/src/panic.rs [INFO] [stderr] * /rustc/a7a572ce3edd6d476191fbfe92c9c1986e009b34/library/std/src/macros.rs [INFO] [stderr] * src/input/svd.rs [INFO] [stderr] * src/main.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0425]: cannot find value `dims` in this scope [INFO] [stderr] --> src/input/svd.rs:96:55 [INFO] [stderr] | [INFO] [stderr] 96 | println!("- reg array dims={:?}", dims); [INFO] [stderr] | ^^^^ help: a local variable with a similar name exists: `_dims` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `cluster` in this scope [INFO] [stderr] --> src/input/svd.rs:109:63 [INFO] [stderr] | [INFO] [stderr] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stderr] | ^^^^^^^ help: a local variable with a similar name exists: `_cluster` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `dims` in this scope [INFO] [stderr] --> src/input/svd.rs:109:77 [INFO] [stderr] | [INFO] [stderr] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stderr] | ^^^^ help: a local variable with a similar name exists: `_dims` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `cluster` in this scope [INFO] [stderr] --> src/input/svd.rs:110:43 [INFO] [stderr] | [INFO] [stderr] 110 | parse_periph(config, &cluster.children); [INFO] [stderr] | ^^^^^^^ help: a local variable with a similar name exists: `_cluster` [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/main.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 86 | return; [INFO] [stderr] | ------ any code following this expression is unreachable [INFO] [stderr] 87 | [INFO] [stderr] 88 | / let matches = App::new("Register Map Accessor Generator") [INFO] [stderr] 89 | | .arg( [INFO] [stderr] 90 | | Arg::with_name("input") [INFO] [stderr] 91 | | .short("i") [INFO] [stderr] ... | [INFO] [stderr] 116 | | ) [INFO] [stderr] 117 | | .get_matches(); [INFO] [stderr] | |_______________________^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/input/svd.rs:96:21 [INFO] [stderr] | [INFO] [stderr] 95 | unimplemented!("Register arrays are unimplemented!"); [INFO] [stderr] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 96 | println!("- reg array dims={:?}", dims); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/input/svd.rs:97:39 [INFO] [stderr] | [INFO] [stderr] 97 | parse_reg(config, reg); [INFO] [stderr] | ^^^ expected struct `RegisterInfo`, found enum `RegisterCluster` [INFO] [stderr] | [INFO] [stderr] = note: expected reference `&RegisterInfo` [INFO] [stderr] found reference `&RegisterCluster` [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/input/svd.rs:102:21 [INFO] [stderr] | [INFO] [stderr] 101 | unimplemented!("Clusters are unimplemented!"); [INFO] [stderr] | ---------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 102 | println!("- cluster"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/input/svd.rs:109:21 [INFO] [stderr] | [INFO] [stderr] 108 | unimplemented!("Cluster arrays are unimplemented!"); [INFO] [stderr] | ---------------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors; 4 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/svd.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser as svd` [INFO] [stdout] --> src/input/yaml.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use svd_parser as svd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser::svd::registercluster::RegisterCluster` [INFO] [stdout] --> src/input/yaml.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use svd_parser::svd::registercluster::RegisterCluster; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/yaml.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format_ident`, `quote` [INFO] [stdout] --> src/output/cpp.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use quote::{format_ident, quote}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::info::*` [INFO] [stdout] --> src/output/rust.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | use crate::info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/svd.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser as svd` [INFO] [stdout] --> src/input/yaml.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use svd_parser as svd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser::svd::registercluster::RegisterCluster` [INFO] [stdout] --> src/input/yaml.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use svd_parser::svd::registercluster::RegisterCluster; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/yaml.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format_ident`, `quote` [INFO] [stdout] --> src/output/cpp.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use quote::{format_ident, quote}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 86 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 87 | [INFO] [stdout] 88 | / let matches = App::new("Register Map Accessor Generator") [INFO] [stdout] 89 | | .arg( [INFO] [stdout] 90 | | Arg::with_name("input") [INFO] [stdout] 91 | | .short("i") [INFO] [stdout] ... | [INFO] [stdout] 116 | | ) [INFO] [stdout] 117 | | .get_matches(); [INFO] [stdout] | |_______________________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 95 | unimplemented!("Register arrays are unimplemented!"); [INFO] [stdout] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 96 | println!("- reg array dims={:?}", dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 101 | unimplemented!("Clusters are unimplemented!"); [INFO] [stdout] | ---------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 102 | println!("- cluster"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 108 | unimplemented!("Cluster arrays are unimplemented!"); [INFO] [stdout] | ---------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 86 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 87 | [INFO] [stdout] 88 | / let matches = App::new("Register Map Accessor Generator") [INFO] [stdout] 89 | | .arg( [INFO] [stdout] 90 | | Arg::with_name("input") [INFO] [stdout] 91 | | .short("i") [INFO] [stdout] ... | [INFO] [stdout] 116 | | ) [INFO] [stdout] 117 | | .get_matches(); [INFO] [stdout] | |_______________________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 95 | unimplemented!("Register arrays are unimplemented!"); [INFO] [stdout] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 96 | println!("- reg array dims={:?}", dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 101 | unimplemented!("Clusters are unimplemented!"); [INFO] [stdout] | ---------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 102 | println!("- cluster"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 108 | unimplemented!("Cluster arrays are unimplemented!"); [INFO] [stdout] | ---------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/svd.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/input/svd.rs:67:50 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/input/svd.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | reg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:100:84 [INFO] [stdout] | [INFO] [stdout] 100 | RegisterCluster::Cluster(svd_parser::svd::cluster::Cluster::Single(cluster)) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | cluster, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/yaml.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn parse_yaml(filename: &str, config: &Config) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/output/cpp.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/svd.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/input/svd.rs:67:50 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/input/svd.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | reg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:100:84 [INFO] [stdout] | [INFO] [stdout] 100 | RegisterCluster::Cluster(svd_parser::svd::cluster::Cluster::Single(cluster)) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | cluster, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/yaml.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn parse_yaml(filename: &str, config: &Config) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/output/cpp.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_field` [INFO] [stdout] --> src/input/svd.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_reg` [INFO] [stdout] --> src/input/svd.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse_reg(config: &Config, reg: &svd_parser::svd::registerinfo::RegisterInfo) -> Register { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_periph` [INFO] [stdout] --> src/input/svd.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn parse_periph(config: &Config, regs: &[RegisterCluster]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_svd` [INFO] [stdout] --> src/input/svd.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn parse_svd(filename: &str, periph: &str, config: &Config) -> Peripheral { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `periph_to_context` [INFO] [stdout] --> src/output/cpp.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn periph_to_context(periph: &Peripheral) -> tera::Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_periph` [INFO] [stdout] --> src/output/cpp.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn generate_periph(periph: &Peripheral) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cpp` [INFO] [stdout] --> src/output/cpp.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_json` [INFO] [stdout] --> src/output/json.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn generate_json(config: &JsonConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/output/rust.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_field` [INFO] [stdout] --> src/input/svd.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_reg` [INFO] [stdout] --> src/input/svd.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse_reg(config: &Config, reg: &svd_parser::svd::registerinfo::RegisterInfo) -> Register { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_periph` [INFO] [stdout] --> src/input/svd.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn parse_periph(config: &Config, regs: &[RegisterCluster]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_svd` [INFO] [stdout] --> src/input/svd.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn parse_svd(filename: &str, periph: &str, config: &Config) -> Peripheral { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `periph_to_context` [INFO] [stdout] --> src/output/cpp.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn periph_to_context(periph: &Peripheral) -> tera::Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_periph` [INFO] [stdout] --> src/output/cpp.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn generate_periph(periph: &Peripheral) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cpp` [INFO] [stdout] --> src/output/cpp.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_json` [INFO] [stdout] --> src/output/json.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn generate_json(config: &JsonConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/output/rust.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 28.65s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling rust-embed-utils v5.1.0 [INFO] [stderr] Compiling rust-embed-impl v5.9.0 [INFO] [stderr] Checking rust-embed v5.9.0 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Checking tera v1.6.1 [INFO] [stderr] Checking regmaps v0.0.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/svd.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser as svd` [INFO] [stdout] --> src/input/yaml.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use svd_parser as svd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser::svd::registercluster::RegisterCluster` [INFO] [stdout] --> src/input/yaml.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use svd_parser::svd::registercluster::RegisterCluster; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/yaml.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format_ident`, `quote` [INFO] [stdout] --> src/output/cpp.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use quote::{format_ident, quote}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::info::*` [INFO] [stdout] --> src/output/rust.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | use crate::info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/svd.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser as svd` [INFO] [stdout] --> src/input/yaml.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use svd_parser as svd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser::svd::registercluster::RegisterCluster` [INFO] [stdout] --> src/input/yaml.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use svd_parser::svd::registercluster::RegisterCluster; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/yaml.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format_ident`, `quote` [INFO] [stdout] --> src/output/cpp.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use quote::{format_ident, quote}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 95 | unimplemented!("Register arrays are unimplemented!"); [INFO] [stdout] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 96 | println!("- reg array dims={:?}", dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 101 | unimplemented!("Clusters are unimplemented!"); [INFO] [stdout] | ---------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 102 | println!("- cluster"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 108 | unimplemented!("Cluster arrays are unimplemented!"); [INFO] [stdout] | ---------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 95 | unimplemented!("Register arrays are unimplemented!"); [INFO] [stdout] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 96 | println!("- reg array dims={:?}", dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 101 | unimplemented!("Clusters are unimplemented!"); [INFO] [stdout] | ---------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 102 | println!("- cluster"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 108 | unimplemented!("Cluster arrays are unimplemented!"); [INFO] [stdout] | ---------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/svd.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/input/svd.rs:67:50 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/input/svd.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | reg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:100:84 [INFO] [stdout] | [INFO] [stdout] 100 | RegisterCluster::Cluster(svd_parser::svd::cluster::Cluster::Single(cluster)) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | cluster, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/yaml.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn parse_yaml(filename: &str, config: &Config) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/output/cpp.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/svd.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/input/svd.rs:67:50 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/input/svd.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | reg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:100:84 [INFO] [stdout] | [INFO] [stdout] 100 | RegisterCluster::Cluster(svd_parser::svd::cluster::Cluster::Single(cluster)) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | cluster, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/yaml.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn parse_yaml(filename: &str, config: &Config) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/output/cpp.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_field` [INFO] [stdout] --> src/input/svd.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_reg` [INFO] [stdout] --> src/input/svd.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse_reg(config: &Config, reg: &svd_parser::svd::registerinfo::RegisterInfo) -> Register { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_periph` [INFO] [stdout] --> src/input/svd.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn parse_periph(config: &Config, regs: &[RegisterCluster]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_svd` [INFO] [stdout] --> src/input/svd.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn parse_svd(filename: &str, periph: &str, config: &Config) -> Peripheral { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `periph_to_context` [INFO] [stdout] --> src/output/cpp.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn periph_to_context(periph: &Peripheral) -> tera::Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_periph` [INFO] [stdout] --> src/output/cpp.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn generate_periph(periph: &Peripheral) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cpp` [INFO] [stdout] --> src/output/cpp.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_json` [INFO] [stdout] --> src/output/json.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn generate_json(config: &JsonConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/output/rust.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_field` [INFO] [stdout] --> src/input/svd.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_reg` [INFO] [stdout] --> src/input/svd.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse_reg(config: &Config, reg: &svd_parser::svd::registerinfo::RegisterInfo) -> Register { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_periph` [INFO] [stdout] --> src/input/svd.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn parse_periph(config: &Config, regs: &[RegisterCluster]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_svd` [INFO] [stdout] --> src/input/svd.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn parse_svd(filename: &str, periph: &str, config: &Config) -> Peripheral { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `periph_to_context` [INFO] [stdout] --> src/output/cpp.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn periph_to_context(periph: &Peripheral) -> tera::Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_periph` [INFO] [stdout] --> src/output/cpp.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn generate_periph(periph: &Peripheral) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cpp` [INFO] [stdout] --> src/output/cpp.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_json` [INFO] [stdout] --> src/output/json.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn generate_json(config: &JsonConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/output/rust.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/svd.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser as svd` [INFO] [stdout] --> src/input/yaml.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use svd_parser as svd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser::svd::registercluster::RegisterCluster` [INFO] [stdout] --> src/input/yaml.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use svd_parser::svd::registercluster::RegisterCluster; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/yaml.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format_ident`, `quote` [INFO] [stdout] --> src/output/cpp.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use quote::{format_ident, quote}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/svd.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser as svd` [INFO] [stdout] --> src/input/yaml.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use svd_parser as svd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svd_parser::svd::registercluster::RegisterCluster` [INFO] [stdout] --> src/input/yaml.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use svd_parser::svd::registercluster::RegisterCluster; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> src/input/yaml.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format_ident`, `quote` [INFO] [stdout] --> src/output/cpp.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use quote::{format_ident, quote}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::info::*` [INFO] [stdout] --> src/output/rust.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | use crate::info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 86 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 87 | [INFO] [stdout] 88 | / let matches = App::new("Register Map Accessor Generator") [INFO] [stdout] 89 | | .arg( [INFO] [stdout] 90 | | Arg::with_name("input") [INFO] [stdout] 91 | | .short("i") [INFO] [stdout] ... | [INFO] [stdout] 116 | | ) [INFO] [stdout] 117 | | .get_matches(); [INFO] [stdout] | |_______________________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 86 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 87 | [INFO] [stdout] 88 | / let matches = App::new("Register Map Accessor Generator") [INFO] [stdout] 89 | | .arg( [INFO] [stdout] 90 | | Arg::with_name("input") [INFO] [stdout] 91 | | .short("i") [INFO] [stdout] ... | [INFO] [stdout] 116 | | ) [INFO] [stdout] 117 | | .get_matches(); [INFO] [stdout] | |_______________________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 95 | unimplemented!("Register arrays are unimplemented!"); [INFO] [stdout] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 96 | println!("- reg array dims={:?}", dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 101 | unimplemented!("Clusters are unimplemented!"); [INFO] [stdout] | ---------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 102 | println!("- cluster"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 108 | unimplemented!("Cluster arrays are unimplemented!"); [INFO] [stdout] | ---------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 95 | unimplemented!("Register arrays are unimplemented!"); [INFO] [stdout] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 96 | println!("- reg array dims={:?}", dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 101 | unimplemented!("Clusters are unimplemented!"); [INFO] [stdout] | ---------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 102 | println!("- cluster"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/input/svd.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 108 | unimplemented!("Cluster arrays are unimplemented!"); [INFO] [stdout] | ---------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 109 | println!("- cluster array: {} dims={:?}", cluster.name, dims); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/svd.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/input/svd.rs:67:50 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/input/svd.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | reg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:100:84 [INFO] [stdout] | [INFO] [stdout] 100 | RegisterCluster::Cluster(svd_parser::svd::cluster::Cluster::Single(cluster)) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | cluster, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/yaml.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn parse_yaml(filename: &str, config: &Config) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/output/cpp.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/svd.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/input/svd.rs:67:50 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | svd_parser::svd::field::Field::Array(info, dims) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/input/svd.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | reg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:100:84 [INFO] [stdout] | [INFO] [stdout] 100 | RegisterCluster::Cluster(svd_parser::svd::cluster::Cluster::Single(cluster)) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster` [INFO] [stdout] --> src/input/svd.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | cluster, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dims` [INFO] [stdout] --> src/input/svd.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | dims, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/input/yaml.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn parse_yaml(filename: &str, config: &Config) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/output/cpp.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_field` [INFO] [stdout] --> src/input/svd.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_reg` [INFO] [stdout] --> src/input/svd.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse_reg(config: &Config, reg: &svd_parser::svd::registerinfo::RegisterInfo) -> Register { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_periph` [INFO] [stdout] --> src/input/svd.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn parse_periph(config: &Config, regs: &[RegisterCluster]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_svd` [INFO] [stdout] --> src/input/svd.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn parse_svd(filename: &str, periph: &str, config: &Config) -> Peripheral { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `periph_to_context` [INFO] [stdout] --> src/output/cpp.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn periph_to_context(periph: &Peripheral) -> tera::Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_periph` [INFO] [stdout] --> src/output/cpp.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn generate_periph(periph: &Peripheral) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cpp` [INFO] [stdout] --> src/output/cpp.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_json` [INFO] [stdout] --> src/output/json.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn generate_json(config: &JsonConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/output/rust.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_field` [INFO] [stdout] --> src/input/svd.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse_field(config: &Config, field: &svd_parser::svd::fieldinfo::FieldInfo) -> Field { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_reg` [INFO] [stdout] --> src/input/svd.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse_reg(config: &Config, reg: &svd_parser::svd::registerinfo::RegisterInfo) -> Register { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_periph` [INFO] [stdout] --> src/input/svd.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn parse_periph(config: &Config, regs: &[RegisterCluster]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_svd` [INFO] [stdout] --> src/input/svd.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn parse_svd(filename: &str, periph: &str, config: &Config) -> Peripheral { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `periph_to_context` [INFO] [stdout] --> src/output/cpp.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn periph_to_context(periph: &Peripheral) -> tera::Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_periph` [INFO] [stdout] --> src/output/cpp.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn generate_periph(periph: &Peripheral) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cpp` [INFO] [stdout] --> src/output/cpp.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate_cpp(config: &CppConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_json` [INFO] [stdout] --> src/output/json.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn generate_json(config: &JsonConfig, periph: &Peripheral) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/output/rust.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_cargo` [INFO] [stdout] --> src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn generate_cargo() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 19.60s [INFO] running `Command { std: "docker" "inspect" "fd2623725692958dfbe5f9e357f32cedc6480a05881075c19e21d182bf3ff02e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd2623725692958dfbe5f9e357f32cedc6480a05881075c19e21d182bf3ff02e", kill_on_drop: false }` [INFO] [stdout] fd2623725692958dfbe5f9e357f32cedc6480a05881075c19e21d182bf3ff02e