[INFO] updating cached repository https://github.com/Kixunil/debcrafter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] [stderr] From https://github.com/Kixunil/debcrafter [INFO] [stderr] a26c6f9..c0b3841 master -> master [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c0b3841912e2e80c0e457641f52548687e15739f [INFO] checking Kixunil/debcrafter against master#1557fb031b272b4c5bfcc7de5df7eddc7b36a584 for pr-73166 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKixunil%2Fdebcrafter" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] [stderr] Checking out files: 91% (21/23) Checking out files: 95% (22/23) Checking out files: 100% (23/23) Checking out files: 100% (23/23), done. [INFO] validating manifest of git repo https://github.com/Kixunil/debcrafter on toolchain 1557fb031b272b4c5bfcc7de5df7eddc7b36a584 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Kixunil/debcrafter [INFO] finished tweaking git repo https://github.com/Kixunil/debcrafter [INFO] tweaked toml for git repo https://github.com/Kixunil/debcrafter written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/Kixunil/debcrafter already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] cff4f12795d927b78dc35671e7628dc0ce1c4d9eab615515bb5ccfeae7b911e9 [INFO] running `Command { std: "docker" "start" "-a" "cff4f12795d927b78dc35671e7628dc0ce1c4d9eab615515bb5ccfeae7b911e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cff4f12795d927b78dc35671e7628dc0ce1c4d9eab615515bb5ccfeae7b911e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cff4f12795d927b78dc35671e7628dc0ce1c4d9eab615515bb5ccfeae7b911e9", kill_on_drop: false }` [INFO] [stdout] cff4f12795d927b78dc35671e7628dc0ce1c4d9eab615515bb5ccfeae7b911e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b242ab4c2703d54bd5c1e41cc1af2b6ded1495cdc3f33c2c2d2f893f4f1af7d9 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b242ab4c2703d54bd5c1e41cc1af2b6ded1495cdc3f33c2c2d2f893f4f1af7d9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking debcrafter v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `var_spec` [INFO] [stdout] --> src/postinst.rs:282:27 [INFO] [stdout] | [INFO] [stdout] 282 | for (var, var_spec) in ivars { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_spec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `previous` is never read [INFO] [stdout] --> src/postinst.rs:376:21 [INFO] [stdout] | [INFO] [stdout] 376 | let mut previous = Some(compute_structure("", &STUPID_HACK)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_name` [INFO] [stdout] --> src/postinst.rs:507:14 [INFO] [stdout] | [INFO] [stdout] 507 | for (conf_name, config) in package.config() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/postinst.rs:226:18 [INFO] [stdout] | [INFO] [stdout] 226 | fn eq(&self, other: &WriteVar<'a, I>) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_spec` [INFO] [stdout] --> src/postinst.rs:282:27 [INFO] [stdout] | [INFO] [stdout] 282 | for (var, var_spec) in ivars { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_spec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `previous` is never read [INFO] [stdout] --> src/postinst.rs:376:21 [INFO] [stdout] | [INFO] [stdout] 376 | let mut previous = Some(compute_structure("", &STUPID_HACK)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_name` [INFO] [stdout] --> src/postinst.rs:507:14 [INFO] [stdout] | [INFO] [stdout] 507 | for (conf_name, config) in package.config() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/postinst.rs:226:18 [INFO] [stdout] | [INFO] [stdout] 226 | fn eq(&self, other: &WriteVar<'a, I>) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | let mut deps = deps.as_mut().map(|deps| &mut **deps); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | let mut deps = deps.as_mut().map(|deps| &mut **deps); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConfType`, `GeneratedType`, `postinst::Package` [INFO] [stdout] --> src/bin/generator/preinst.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use debcrafter::{PackageInstance, PackageSpec, ConfType, postinst::Package, GeneratedType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/bin/generator/preinst.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/bin/generator/preinst.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConfType`, `GeneratedType`, `postinst::Package` [INFO] [stdout] --> src/bin/generator/prerm.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use debcrafter::{PackageInstance, PackageSpec, ConfType, postinst::Package, GeneratedType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/bin/generator/prerm.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/bin/generator/prerm.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConfType`, `PackageConfig`, `postinst::Package` [INFO] [stdout] --> src/bin/generator/dirs.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use debcrafter::{PackageInstance, PackageConfig, ConfType, postinst::Package}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConfType`, `PackageConfig`, `postinst::Package` [INFO] [stdout] --> src/bin/generator/manpages.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use debcrafter::{PackageInstance, PackageConfig, ConfType, postinst::Package}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConfType`, `GeneratedType`, `postinst::Package` [INFO] [stdout] --> src/bin/generator/preinst.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use debcrafter::{PackageInstance, PackageSpec, ConfType, postinst::Package, GeneratedType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/bin/generator/preinst.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/bin/generator/preinst.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConfType`, `GeneratedType`, `postinst::Package` [INFO] [stdout] --> src/bin/generator/prerm.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use debcrafter::{PackageInstance, PackageSpec, ConfType, postinst::Package, GeneratedType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/bin/generator/prerm.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/bin/generator/prerm.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConfType`, `PackageConfig`, `postinst::Package` [INFO] [stdout] --> src/bin/generator/dirs.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use debcrafter::{PackageInstance, PackageConfig, ConfType, postinst::Package}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConfType`, `PackageConfig`, `postinst::Package` [INFO] [stdout] --> src/bin/generator/manpages.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use debcrafter::{PackageInstance, PackageConfig, ConfType, postinst::Package}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/bin/generator/preinst.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/bin/generator/prerm.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/bin/generator/preinst.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut out = out.finalize(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> src/bin/generator/preinst.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn generate(instance: &PackageInstance, out: LazyCreateBuilder) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/bin/generator/postinst.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | fn fetch_var(&mut self, config: &Config, package: &str, name: &str) -> Result<(), Self::Error> { [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/bin/generator/postinst.rs:135:38 [INFO] [stdout] | [INFO] [stdout] 135 | fn generate_const_var(&mut self, config: &Config, package: &str, name: &str, ty: &VarType, val: &str) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/bin/generator/postinst.rs:135:82 [INFO] [stdout] | [INFO] [stdout] 135 | fn generate_const_var(&mut self, config: &Config, package: &str, name: &str, ty: &VarType, val: &str) -> Result<(), Self::Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/bin/generator/postinst.rs:140:45 [INFO] [stdout] | [INFO] [stdout] 140 | fn generate_var_using_script(&mut self, config: &Config, package: &str, name: &str, ty: &VarType, script: &str) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/bin/generator/postinst.rs:140:89 [INFO] [stdout] | [INFO] [stdout] 140 | fn generate_var_using_script(&mut self, config: &Config, package: &str, name: &str, ty: &VarType, script: &str) -> Result<(), Self::Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/bin/generator/postinst.rs:163:51 [INFO] [stdout] | [INFO] [stdout] 163 | fn sub_object_end(&mut self, config: &Config, name: &str) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trigger_dir` [INFO] [stdout] --> src/bin/generator/postrm.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut trigger_dir = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/bin/generator/preinst.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/bin/generator/prerm.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/bin/generator/preinst.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut out = out.finalize(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> src/bin/generator/preinst.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn generate(instance: &PackageInstance, out: LazyCreateBuilder) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/bin/generator/postinst.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | fn fetch_var(&mut self, config: &Config, package: &str, name: &str) -> Result<(), Self::Error> { [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/bin/generator/postinst.rs:135:38 [INFO] [stdout] | [INFO] [stdout] 135 | fn generate_const_var(&mut self, config: &Config, package: &str, name: &str, ty: &VarType, val: &str) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/bin/generator/postinst.rs:135:82 [INFO] [stdout] | [INFO] [stdout] 135 | fn generate_const_var(&mut self, config: &Config, package: &str, name: &str, ty: &VarType, val: &str) -> Result<(), Self::Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/bin/generator/postinst.rs:140:45 [INFO] [stdout] | [INFO] [stdout] 140 | fn generate_var_using_script(&mut self, config: &Config, package: &str, name: &str, ty: &VarType, script: &str) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/bin/generator/postinst.rs:140:89 [INFO] [stdout] | [INFO] [stdout] 140 | fn generate_var_using_script(&mut self, config: &Config, package: &str, name: &str, ty: &VarType, script: &str) -> Result<(), Self::Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/bin/generator/postinst.rs:163:51 [INFO] [stdout] | [INFO] [stdout] 163 | fn sub_object_end(&mut self, config: &Config, name: &str) -> Result<(), Self::Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trigger_dir` [INFO] [stdout] --> src/bin/generator/postrm.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut trigger_dir = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/generator/preinst.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut out = out.finalize(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/generator/postinst.rs:179:94 [INFO] [stdout] | [INFO] [stdout] 179 | fn write_var<'a, I>(&mut self, config: &Config, package: &str, name: &str, ty: &VarType, mut structure: I, ignore_empty: bool) -> Result<(), Self::Error> where I: Iterator { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/generator/preinst.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut out = out.finalize(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/generator/postinst.rs:179:94 [INFO] [stdout] | [INFO] [stdout] 179 | fn write_var<'a, I>(&mut self, config: &Config, package: &str, name: &str, ty: &VarType, mut structure: I, ignore_empty: bool) -> Result<(), Self::Error> where I: Iterator { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/generator/postrm.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut trigger_dir = false; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/generator/postrm.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut trigger_dir = false; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_patches` [INFO] [stdout] --> src/bin/generator/preinst.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn write_patches(mut out: W, instance: &PackageInstance) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_patches` [INFO] [stdout] --> src/bin/generator/preinst.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn write_patches(mut out: W, instance: &PackageInstance) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.32s [INFO] running `Command { std: "docker" "inspect" "b242ab4c2703d54bd5c1e41cc1af2b6ded1495cdc3f33c2c2d2f893f4f1af7d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b242ab4c2703d54bd5c1e41cc1af2b6ded1495cdc3f33c2c2d2f893f4f1af7d9", kill_on_drop: false }` [INFO] [stdout] b242ab4c2703d54bd5c1e41cc1af2b6ded1495cdc3f33c2c2d2f893f4f1af7d9