[INFO] fetching crate proto_seeder 0.0.8... [INFO] testing proto_seeder-0.0.8 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate proto_seeder 0.0.8 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate proto_seeder 0.0.8 [INFO] finished tweaking crates.io crate proto_seeder 0.0.8 [INFO] tweaked toml for crates.io crate proto_seeder 0.0.8 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate proto_seeder 0.0.8 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate proto_seeder 0.0.8 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded structopt v0.3.20 [INFO] [stderr] Downloaded terminal_size v0.1.13 [INFO] [stderr] Downloaded number_prefix v0.3.0 [INFO] [stderr] Downloaded indicatif v0.15.0 [INFO] [stderr] Downloaded hermit-abi v0.1.17 [INFO] [stderr] Downloaded anyhow v1.0.33 [INFO] [stderr] Downloaded indexmap v1.6.0 [INFO] [stderr] Downloaded hashbrown v0.9.1 [INFO] [stderr] Downloaded encode_unicode v0.3.6 [INFO] [stderr] Downloaded console v0.13.0 [INFO] [stderr] Downloaded structopt-derive v0.4.13 [INFO] [stderr] Downloaded regex v1.4.1 [INFO] [stderr] Downloaded syn v1.0.40 [INFO] [stderr] Downloaded regex-syntax v0.6.20 [INFO] [stderr] Downloaded libc v0.2.80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 39af4280069a358523733be446a9648365a5faa97e5d05d426ad92c30d8e72c8 [INFO] running `Command { std: "docker" "start" "-a" "39af4280069a358523733be446a9648365a5faa97e5d05d426ad92c30d8e72c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "39af4280069a358523733be446a9648365a5faa97e5d05d426ad92c30d8e72c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39af4280069a358523733be446a9648365a5faa97e5d05d426ad92c30d8e72c8", kill_on_drop: false }` [INFO] [stdout] 39af4280069a358523733be446a9648365a5faa97e5d05d426ad92c30d8e72c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2d5535e2e3aeece169d6d6341488f22cfc409fa1a7e52268c40b907f40ba8b6 [INFO] running `Command { std: "docker" "start" "-a" "d2d5535e2e3aeece169d6d6341488f22cfc409fa1a7e52268c40b907f40ba8b6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling syn v1.0.40 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling regex-syntax v0.6.20 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling anyhow v1.0.33 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling number_prefix v0.3.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling terminal_size v0.1.13 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling regex v1.4.1 [INFO] [stderr] Compiling console v0.13.0 [INFO] [stderr] Compiling indicatif v0.15.0 [INFO] [stderr] Compiling structopt-derive v0.4.13 [INFO] [stderr] Compiling structopt v0.3.20 [INFO] [stderr] Compiling proto_seeder v0.0.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `debug` is never read [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct Cli { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | debug: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cli` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/content/guard.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct SeedGuard { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 17 | pub(crate) name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SeedGuard` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_filepath`, `set_mod_import`, and `set_import_file_location` are never used [INFO] [stdout] --> src/content/module/mod.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl ModuleMeta { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 66 | pub fn set_filepath(&mut self, filepath: String,) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn set_mod_import(&mut self, mod_import: String,) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn set_import_file_location(&mut self, import_file_location: String,) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `origin_route` is never used [INFO] [stdout] --> src/content/module/mod.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl SeedModule { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn origin_route(&self,) -> &Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `imports_content` is never used [INFO] [stdout] --> src/content/module/import.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl ImportModule { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn imports_content(&self,) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_path` is never read [INFO] [stdout] --> src/writer/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct ModulesWriter { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | current_path: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `source_file` is never read [INFO] [stdout] --> src/writer/checker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Checker { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | source_file: syn::File, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.92s [INFO] running `Command { std: "docker" "inspect" "d2d5535e2e3aeece169d6d6341488f22cfc409fa1a7e52268c40b907f40ba8b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2d5535e2e3aeece169d6d6341488f22cfc409fa1a7e52268c40b907f40ba8b6", kill_on_drop: false }` [INFO] [stdout] d2d5535e2e3aeece169d6d6341488f22cfc409fa1a7e52268c40b907f40ba8b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 375760be36d57a66348dacc4896e87bd86c94bab776a2173b98307b33b14ef41 [INFO] running `Command { std: "docker" "start" "-a" "375760be36d57a66348dacc4896e87bd86c94bab776a2173b98307b33b14ef41", kill_on_drop: false }` [INFO] [stderr] Compiling proto_seeder v0.0.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `SeedContent` and `find_routes` [INFO] [stdout] --> src/content/view.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | content::{view::get_view_function, SeedContent}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 89 | find_model, find_routes, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `indexmap::map::IndexMap` [INFO] [stdout] --> src/content/view.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | use indexmap::map::IndexMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `should_have` [INFO] [stdout] --> src/content/guard.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let mut should_have: IndexMap = IndexMap::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_should_have` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/content/guard.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let mut should_have: IndexMap = IndexMap::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_meta2` [INFO] [stdout] --> src/content/module/mod.rs:329:14 [INFO] [stdout] | [INFO] [stdout] 329 | let (module_meta2, updated_parent_2,) = generate_module_meta( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_meta2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/content/module/mod.rs:320:13 [INFO] [stdout] | [INFO] [stdout] 320 | let mut import_module = import_result.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `debug` is never read [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct Cli { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | debug: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cli` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/content/guard.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct SeedGuard { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 17 | pub(crate) name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SeedGuard` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_filepath`, `set_mod_import`, and `set_import_file_location` are never used [INFO] [stdout] --> src/content/module/mod.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl ModuleMeta { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 66 | pub fn set_filepath(&mut self, filepath: String,) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn set_mod_import(&mut self, mod_import: String,) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn set_import_file_location(&mut self, import_file_location: String,) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `imports_content` is never used [INFO] [stdout] --> src/content/module/import.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl ImportModule { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn imports_content(&self,) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOME` is never used [INFO] [stdout] --> src/content/view.rs:97:11 [INFO] [stdout] | [INFO] [stdout] 97 | const HOME: &str = r###"fn home(theme : &Theme) -> Node{div!["home"]}"###; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_path` is never read [INFO] [stdout] --> src/writer/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct ModulesWriter { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | current_path: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `source_file` is never read [INFO] [stdout] --> src/writer/checker.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Checker { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | source_file: syn::File, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.39s [INFO] running `Command { std: "docker" "inspect" "375760be36d57a66348dacc4896e87bd86c94bab776a2173b98307b33b14ef41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "375760be36d57a66348dacc4896e87bd86c94bab776a2173b98307b33b14ef41", kill_on_drop: false }` [INFO] [stdout] 375760be36d57a66348dacc4896e87bd86c94bab776a2173b98307b33b14ef41 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] eb52fd3158ebfed6c5f81bd9cb76df0a15ba4e5415c57fed3a6245a537d7a846 [INFO] running `Command { std: "docker" "start" "-a" "eb52fd3158ebfed6c5f81bd9cb76df0a15ba4e5415c57fed3a6245a537d7a846", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `SeedContent` and `find_routes` [INFO] [stderr] --> src/content/view.rs:88:44 [INFO] [stderr] | [INFO] [stderr] 88 | content::{view::get_view_function, SeedContent}, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 89 | find_model, find_routes, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `indexmap::map::IndexMap` [INFO] [stderr] --> src/content/view.rs:91:9 [INFO] [stderr] | [INFO] [stderr] 91 | use indexmap::map::IndexMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `should_have` [INFO] [stderr] --> src/content/guard.rs:140:17 [INFO] [stderr] | [INFO] [stderr] 140 | let mut should_have: IndexMap = IndexMap::new(); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_should_have` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/content/guard.rs:140:13 [INFO] [stderr] | [INFO] [stderr] 140 | let mut should_have: IndexMap = IndexMap::new(); [INFO] [stderr] | ----^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `module_meta2` [INFO] [stderr] --> src/content/module/mod.rs:329:14 [INFO] [stderr] | [INFO] [stderr] 329 | let (module_meta2, updated_parent_2,) = generate_module_meta( [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_meta2` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/content/module/mod.rs:320:13 [INFO] [stderr] | [INFO] [stderr] 320 | let mut import_module = import_result.unwrap(); [INFO] [stderr] | ----^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: field `debug` is never read [INFO] [stderr] --> src/main.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 27 | struct Cli { [INFO] [stderr] | --- field in this struct [INFO] [stderr] ... [INFO] [stderr] 38 | debug: bool, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Cli` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `name` is never read [INFO] [stderr] --> src/content/guard.rs:17:16 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct SeedGuard { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 17 | pub(crate) name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SeedGuard` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `set_filepath`, `set_mod_import`, and `set_import_file_location` are never used [INFO] [stderr] --> src/content/module/mod.rs:66:12 [INFO] [stderr] | [INFO] [stderr] 65 | impl ModuleMeta { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] 66 | pub fn set_filepath(&mut self, filepath: String,) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 70 | pub fn set_mod_import(&mut self, mod_import: String,) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 74 | pub fn set_import_file_location(&mut self, import_file_location: String,) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `imports_content` is never used [INFO] [stderr] --> src/content/module/import.rs:37:12 [INFO] [stderr] | [INFO] [stderr] 28 | impl ImportModule { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 37 | pub fn imports_content(&self,) -> &Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `HOME` is never used [INFO] [stderr] --> src/content/view.rs:97:11 [INFO] [stderr] | [INFO] [stderr] 97 | const HOME: &str = r###"fn home(theme : &Theme) -> Node{div!["home"]}"###; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `current_path` is never read [INFO] [stderr] --> src/writer/mod.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 23 | pub struct ModulesWriter { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 35 | current_path: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `source_file` is never read [INFO] [stderr] --> src/writer/checker.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct Checker { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] 9 | source_file: syn::File, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `proto_seeder` (bin "proto_seeder" test) generated 13 warnings (run `cargo fix --bin "proto_seeder" --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/proto_seeder-6f52c80bade84dbf) [INFO] [stdout] [INFO] [stdout] running 27 tests [INFO] [stdout] test content::module::import::test::get_error_if_empty_path ... ok [INFO] [stdout] test content::module::import::test::get_error_if_multiple_folders ... ok [INFO] [stdout] test content::module::import::test::get_pages ... ok [INFO] [stdout] test content::module::init::test::write_init ... ok [INFO] [stdout] test content::module::init::test::write_init_with_children ... ok [INFO] [stdout] test content::module::init::test::write_init_with_id_param_and_children ... ok [INFO] [stdout] test content::module::init::test::write_init_with_id_param_and_query_and_children ... ok [INFO] [stdout] test content::module::init::test::write_init_with_nested ... ok [INFO] [stdout] test content::module::init::test::write_init_with_query ... ok [INFO] [stdout] test content::module::test::test_import_with_target_file ... ok [INFO] [stdout] test content::module::test::test_import_with_parent ... ok [INFO] [stdout] test content::guard::test::test_get_guards ... ok [INFO] [stdout] test content::module::init::test::write_init_with_id_param_and_query ... ok [INFO] [stdout] test content::test::test_modules_with_parent ... ok [INFO] [stdout] test content::test::test_get_local_views ... ok [INFO] [stdout] test content::test::test_modules_with_target_file ... ok [INFO] [stdout] test writer::checker::test::test_if_exist_update ... ok [INFO] [stdout] test writer::checker::test::test_if_exist_model ... ok [INFO] [stdout] test content::module::init::test::write_init_with_query_and_children ... ok [INFO] [stdout] test content::view::test::test_get_view_function_when_scope_is_good ... ok [INFO] [stdout] test content::view::test::test_get_view_function_when_no_scope ... ok [INFO] [stdout] test writer::checker::test::test_if_exist_function ... ok [INFO] [stdout] test content::view::test::test_get_view_function_when_scope_is_wrong ... ok [INFO] [stdout] test parser::test::test_find_routes ... ok [INFO] [stdout] test parser::test::test_find_model ... ok [INFO] [stdout] test content::module::init::test::write_init_with_id_param ... ok [INFO] [stdout] test content::test::get_pages ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 27 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "eb52fd3158ebfed6c5f81bd9cb76df0a15ba4e5415c57fed3a6245a537d7a846", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb52fd3158ebfed6c5f81bd9cb76df0a15ba4e5415c57fed3a6245a537d7a846", kill_on_drop: false }` [INFO] [stdout] eb52fd3158ebfed6c5f81bd9cb76df0a15ba4e5415c57fed3a6245a537d7a846