[INFO] cloning repository https://github.com/Kixunil/debcrafter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kixunil/debcrafter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKixunil%2Fdebcrafter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKixunil%2Fdebcrafter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8729fec311d4da416cdbc6b00fa4e7f05e285205 [INFO] checking Kixunil/debcrafter against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKixunil%2Fdebcrafter" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Kixunil/debcrafter on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "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-0/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b0958a6c156b44a1509bcb18f8cd357ca1c2407d9bd9f016e699d742bd3d1fc6 [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" "b0958a6c156b44a1509bcb18f8cd357ca1c2407d9bd9f016e699d742bd3d1fc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b0958a6c156b44a1509bcb18f8cd357ca1c2407d9bd9f016e699d742bd3d1fc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0958a6c156b44a1509bcb18f8cd357ca1c2407d9bd9f016e699d742bd3d1fc6", kill_on_drop: false }` [INFO] [stdout] b0958a6c156b44a1509bcb18f8cd357ca1c2407d9bd9f016e699d742bd3d1fc6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8717771a3dbe4f7c9135f75db0007d42a807fb255c3342f59bdd9ecf17fca96b [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" "8717771a3dbe4f7c9135f75db0007d42a807fb255c3342f59bdd9ecf17fca96b", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Compiling proc-macro2 v1.0.5 [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:517:14 [INFO] [stdout] | [INFO] [stdout] 517 | 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:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | 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: 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:517:14 [INFO] [stdout] | [INFO] [stdout] 517 | 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:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | 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: field is never read: `command` [INFO] [stdout] --> src/lib.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 291 | command: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `trigger_await` [INFO] [stdout] --> src/lib.rs:294:5 [INFO] [stdout] | [INFO] [stdout] 294 | trigger_await: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `command` [INFO] [stdout] --> src/lib.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 291 | command: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `trigger_await` [INFO] [stdout] --> src/lib.rs:294:5 [INFO] [stdout] | [INFO] [stdout] 294 | trigger_await: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 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 imports: `ConfType`, `GeneratedType`, `Set`, `postinst::Package` [INFO] [stdout] --> src/bin/generator/prerm.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use debcrafter::{PackageInstance, PackageSpec, ConfType, postinst::Package, GeneratedType, Set}; [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 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 imports: `ConfType`, `GeneratedType`, `Set`, `postinst::Package` [INFO] [stdout] --> src/bin/generator/prerm.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use debcrafter::{PackageInstance, PackageSpec, ConfType, postinst::Package, GeneratedType, Set}; [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 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:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | 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:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | 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::E... [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 | ...nfig, 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:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | 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:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | 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: 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: 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) -> Res... [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/bin/generator/preinst.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | 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:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | 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::E... [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 | ...nfig, 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:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | 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/postrm.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | 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:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | 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: variable does not need to be mutable [INFO] [stdout] --> src/bin/generator/preinst.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | 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: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/generator/config.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | writeln!(out); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [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) -> Res... [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:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | 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:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | 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: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/generator/config.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | writeln!(out); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 35.98s [INFO] running `Command { std: "docker" "inspect" "8717771a3dbe4f7c9135f75db0007d42a807fb255c3342f59bdd9ecf17fca96b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8717771a3dbe4f7c9135f75db0007d42a807fb255c3342f59bdd9ecf17fca96b", kill_on_drop: false }` [INFO] [stdout] 8717771a3dbe4f7c9135f75db0007d42a807fb255c3342f59bdd9ecf17fca96b