[INFO] cloning repository https://github.com/NavyD/linux-configuration [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NavyD/linux-configuration" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNavyD%2Flinux-configuration", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNavyD%2Flinux-configuration'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2a8fa124bc060e3c6efb3242220b768d66bf8a92 [INFO] checking NavyD/linux-configuration against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNavyD%2Flinux-configuration" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NavyD/linux-configuration 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 git repo https://github.com/NavyD/linux-configuration [INFO] finished tweaking git repo https://github.com/NavyD/linux-configuration [INFO] tweaked toml for git repo https://github.com/NavyD/linux-configuration written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/NavyD/linux-configuration 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] Downloading crates ... [INFO] [stderr] Downloaded filetime v0.2.10 [INFO] [stderr] Downloaded lock_api v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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] d88b33a7c426615257a452ca68d61ea0cb98e76d5162ea285fd418b497fcd376 [INFO] running `Command { std: "docker" "start" "-a" "d88b33a7c426615257a452ca68d61ea0cb98e76d5162ea285fd418b497fcd376", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d88b33a7c426615257a452ca68d61ea0cb98e76d5162ea285fd418b497fcd376", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d88b33a7c426615257a452ca68d61ea0cb98e76d5162ea285fd418b497fcd376", kill_on_drop: false }` [INFO] [stdout] d88b33a7c426615257a452ca68d61ea0cb98e76d5162ea285fd418b497fcd376 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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] 228c8888ed941deb9ae09710ec2eef15cc4f476157bb3bc2f4174f328a4ae124 [INFO] running `Command { std: "docker" "start" "-a" "228c8888ed941deb9ae09710ec2eef15cc4f476157bb3bc2f4174f328a4ae124", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking smallvec v1.4.0 [INFO] [stderr] Checking instant v0.1.6 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking lock_api v0.4.0 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking inotify-sys v0.1.3 [INFO] [stderr] Checking filetime v0.2.10 [INFO] [stderr] Checking inotify v0.7.1 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking parking_lot v0.11.0 [INFO] [stderr] Checking scheduled-thread-pool v0.2.5 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking notify v4.0.15 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking auto-configuration v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `auto_configuration` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/configuration.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[E0433]: failed to resolve: use of undeclared crate or module `configuration` [INFO] [stderr] --> src/configuration.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | configuration::PackageManager::AptGet => Command::new("sudo") [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared crate or module `configuration` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `configuration` [INFO] [stderr] --> src/configuration.rs:49:13 [INFO] [stderr] | [INFO] [stderr] 49 | configuration::PackageManager::AptGet => Command::new("apt-get") [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared crate or module `configuration` [INFO] [stderr] [INFO] [stderr] warning: unused import: `Watcher` [INFO] [stderr] --> src/configuration.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use notify::{Watcher}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0433`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unused imports: `RecursiveMode`, `watcher` [INFO] [stdout] --> src/configuration.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use notify::{watcher, RecursiveMode, Watcher}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/configuration.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/configuration.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/configuration.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/configuration.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/configuration.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RecursiveMode`, `watcher` [INFO] [stdout] --> src/configuration.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use notify::{watcher, RecursiveMode, Watcher}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/configuration.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/configuration.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/configuration.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/configuration.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/configuration.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Watcher` [INFO] [stdout] --> src/configuration.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use notify::{watcher, RecursiveMode, Watcher}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `PackageManager` [INFO] [stdout] --> src/main.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `PackageManager::AptGet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `PackageManager` [INFO] [stdout] --> src/main.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `configuration::PackageManager` [INFO] [stdout] --> src/configuration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `configuration::PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `configuration::PackageManager` [INFO] [stdout] --> src/configuration.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `configuration::PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/main.rs:151:26 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn commit(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prepending` [INFO] [stdout] --> src/main.rs:329:13 [INFO] [stdout] | [INFO] [stdout] 329 | let prepending = "libssl-dev pkg-config"; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prepending` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exec_in_dir` [INFO] [stdout] --> src/configuration.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn exec_in_dir(command: &str, dir: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `commit_duration` [INFO] [stdout] --> src/main.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | commit_duration: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exec` [INFO] [stdout] --> src/main.rs:269:4 [INFO] [stdout] | [INFO] [stdout] 269 | fn exec(command: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RustProgram` [INFO] [stdout] --> src/main.rs:322:8 [INFO] [stdout] | [INFO] [stdout] 322 | struct RustProgram { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `install` [INFO] [stdout] --> src/main.rs:327:12 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn install() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `configurations` [INFO] [stdout] --> src/main.rs:335:5 [INFO] [stdout] | [INFO] [stdout] 335 | configurations: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Watcher` [INFO] [stdout] --> src/configuration.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use notify::{watcher, RecursiveMode, Watcher}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/main.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super` [INFO] [stdout] --> src/configuration.rs:471:9 [INFO] [stdout] | [INFO] [stdout] 471 | use super::*; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/main.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/configuration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/configuration.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `PackageManager` [INFO] [stdout] --> src/main.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `PackageManager::AptGet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `PackageManager` [INFO] [stdout] --> src/main.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `configuration::PackageManager` [INFO] [stdout] --> src/configuration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `configuration::PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `configuration::PackageManager` [INFO] [stdout] --> src/configuration.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `configuration::PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/main.rs:151:26 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn commit(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prepending` [INFO] [stdout] --> src/main.rs:329:13 [INFO] [stdout] | [INFO] [stdout] 329 | let prepending = "libssl-dev pkg-config"; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prepending` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exec_in_dir` [INFO] [stdout] --> src/configuration.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn exec_in_dir(command: &str, dir: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `commit_duration` [INFO] [stdout] --> src/main.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | commit_duration: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exec` [INFO] [stdout] --> src/main.rs:269:4 [INFO] [stdout] | [INFO] [stdout] 269 | fn exec(command: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RustProgram` [INFO] [stdout] --> src/main.rs:322:8 [INFO] [stdout] | [INFO] [stdout] 322 | struct RustProgram { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `install` [INFO] [stdout] --> src/main.rs:327:12 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn install() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `configurations` [INFO] [stdout] --> src/main.rs:335:5 [INFO] [stdout] | [INFO] [stdout] 335 | configurations: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/main.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/main.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/configuration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/configuration.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.08s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking auto-configuration v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused imports: `RecursiveMode`, `watcher` [INFO] [stdout] --> src/configuration.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use notify::{watcher, RecursiveMode, Watcher}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/configuration.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/configuration.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/configuration.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/configuration.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/configuration.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RecursiveMode`, `watcher` [INFO] [stdout] --> src/configuration.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use notify::{watcher, RecursiveMode, Watcher}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/configuration.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/configuration.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/configuration.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/configuration.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/configuration.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Watcher` [INFO] [stdout] --> src/configuration.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use notify::{watcher, RecursiveMode, Watcher}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `PackageManager` [INFO] [stdout] --> src/main.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `PackageManager::AptGet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `PackageManager` [INFO] [stdout] --> src/main.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `configuration::PackageManager` [INFO] [stdout] --> src/configuration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `configuration::PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `configuration::PackageManager` [INFO] [stdout] --> src/configuration.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `configuration::PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/main.rs:151:26 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn commit(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prepending` [INFO] [stdout] --> src/main.rs:329:13 [INFO] [stdout] | [INFO] [stdout] 329 | let prepending = "libssl-dev pkg-config"; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prepending` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exec_in_dir` [INFO] [stdout] --> src/configuration.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn exec_in_dir(command: &str, dir: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `commit_duration` [INFO] [stdout] --> src/main.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | commit_duration: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exec` [INFO] [stdout] --> src/main.rs:269:4 [INFO] [stdout] | [INFO] [stdout] 269 | fn exec(command: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RustProgram` [INFO] [stdout] --> src/main.rs:322:8 [INFO] [stdout] | [INFO] [stdout] 322 | struct RustProgram { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `install` [INFO] [stdout] --> src/main.rs:327:12 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn install() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `configurations` [INFO] [stdout] --> src/main.rs:335:5 [INFO] [stdout] | [INFO] [stdout] 335 | configurations: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Watcher` [INFO] [stdout] --> src/configuration.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use notify::{watcher, RecursiveMode, Watcher}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super` [INFO] [stdout] --> src/configuration.rs:471:9 [INFO] [stdout] | [INFO] [stdout] 471 | use super::*; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/main.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/main.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/configuration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/configuration.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `PackageManager` [INFO] [stdout] --> src/main.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `PackageManager::AptGet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `PackageManager` [INFO] [stdout] --> src/main.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `configuration::PackageManager` [INFO] [stdout] --> src/configuration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `configuration::PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `AptGet` is named the same as one of the variants of the type `configuration::PackageManager` [INFO] [stdout] --> src/configuration.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `configuration::PackageManager::AptGet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/main.rs:151:26 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn commit(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prepending` [INFO] [stdout] --> src/main.rs:329:13 [INFO] [stdout] | [INFO] [stdout] 329 | let prepending = "libssl-dev pkg-config"; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prepending` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exec_in_dir` [INFO] [stdout] --> src/configuration.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn exec_in_dir(command: &str, dir: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `commit_duration` [INFO] [stdout] --> src/main.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | commit_duration: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exec` [INFO] [stdout] --> src/main.rs:269:4 [INFO] [stdout] | [INFO] [stdout] 269 | fn exec(command: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RustProgram` [INFO] [stdout] --> src/main.rs:322:8 [INFO] [stdout] | [INFO] [stdout] 322 | struct RustProgram { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `install` [INFO] [stdout] --> src/main.rs:327:12 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn install() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `configurations` [INFO] [stdout] --> src/main.rs:335:5 [INFO] [stdout] | [INFO] [stdout] 335 | configurations: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/main.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/main.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/configuration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | AptGet => Command::new("sudo") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AptGet` should have a snake case name [INFO] [stdout] --> src/configuration.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | AptGet => Command::new("apt-get") [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `apt_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "228c8888ed941deb9ae09710ec2eef15cc4f476157bb3bc2f4174f328a4ae124", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "228c8888ed941deb9ae09710ec2eef15cc4f476157bb3bc2f4174f328a4ae124", kill_on_drop: false }` [INFO] [stdout] 228c8888ed941deb9ae09710ec2eef15cc4f476157bb3bc2f4174f328a4ae124