[INFO] fetching crate panbuild 0.0.11... [INFO] checking panbuild-0.0.11 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate panbuild 0.0.11 into /workspace/builds/worker-59/source [INFO] validating manifest of crates.io crate panbuild 0.0.11 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate panbuild 0.0.11 [INFO] finished tweaking crates.io crate panbuild 0.0.11 [INFO] tweaked toml for crates.io crate panbuild 0.0.11 written to /workspace/builds/worker-59/source/Cargo.toml [INFO] crate crates.io crate panbuild 0.0.11 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded yaml-rust v0.3.5 [INFO] [stderr] Downloaded yaml-rust v0.4.4 [INFO] [stderr] Downloaded itoa v0.4.6 [INFO] [stderr] Downloaded serde_derive v1.0.116 [INFO] [stderr] Downloaded linked-hash-map v0.5.3 [INFO] [stderr] Downloaded dtoa v0.4.6 [INFO] [stderr] Downloaded hermit-abi v0.1.16 [INFO] [stderr] Downloaded serde_yaml v0.8.13 [INFO] [stderr] Downloaded serde_json v1.0.57 [INFO] [stderr] Downloaded libc v0.2.77 [INFO] [stderr] Downloaded quote v1.0.7 [INFO] [stderr] Downloaded serde v1.0.116 [INFO] [stderr] Downloaded syn v1.0.42 [INFO] [stderr] Downloaded proc-macro2 v1.0.23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/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] 83a405a9db12a523a3932b9a3b1953422ebc76f6f25a51e85b728de97ec6138e [INFO] running `Command { std: "docker" "start" "-a" "83a405a9db12a523a3932b9a3b1953422ebc76f6f25a51e85b728de97ec6138e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83a405a9db12a523a3932b9a3b1953422ebc76f6f25a51e85b728de97ec6138e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83a405a9db12a523a3932b9a3b1953422ebc76f6f25a51e85b728de97ec6138e", kill_on_drop: false }` [INFO] [stdout] 83a405a9db12a523a3932b9a3b1953422ebc76f6f25a51e85b728de97ec6138e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-59/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] ec2ffd5cf14d5adaba2559b91f56484e790c93367bc3cffc683cb48ca34500c1 [INFO] running `Command { std: "docker" "start" "-a" "ec2ffd5cf14d5adaba2559b91f56484e790c93367bc3cffc683cb48ca34500c1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.23 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.42 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Checking yaml-rust v0.3.5 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking yaml-rust v0.4.4 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking serde_yaml v0.8.13 [INFO] [stderr] Checking panbuild v0.0.11 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/manifests/manifest.rs (7 fixes) [INFO] [stderr] Fixed src/manifests/flatpak.rs (1 fix) [INFO] [stderr] Fixed src/utils.rs (1 fix) [INFO] [stderr] Fixed src/projects/db.rs (1 fix) [INFO] [stderr] Fixed src/manifests/arch.rs (3 fixes) [INFO] [stderr] Fixed src/manifests/debian.rs (4 fixes) [INFO] [stderr] Fixed src/lib.rs (13 fixes) [INFO] [stderr] Fixed src/execution_context.rs (2 fixes) [INFO] [stderr] Fixed src/manifests/snap.rs (1 fix) [INFO] [stderr] Fixed src/projects/project.rs (1 fix) [INFO] [stdout] warning: function is never used: `parse` [INFO] [stdout] --> src/manifests/arch.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn parse(_content: &str) -> crate::manifests::manifest::AbstractManifest { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_path_matches` [INFO] [stdout] --> src/manifests/arch.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn file_path_matches(path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/arch.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PACKAGES` [INFO] [stdout] --> src/manifests/debian.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | const PACKAGES: &str = "packages"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MULTI_ARCH` [INFO] [stdout] --> src/manifests/debian.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | const MULTI_ARCH: &str = "Multi-Arch"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RECOMMENDS` [INFO] [stdout] --> src/manifests/debian.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | const RECOMMENDS: &str = "Recommends"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SUGGESTS` [INFO] [stdout] --> src/manifests/debian.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | const SUGGESTS: &str = "Suggests"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ENHANCES` [INFO] [stdout] --> src/manifests/debian.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | const ENHANCES: &str = "Enhances"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PRE_DEPENDS` [INFO] [stdout] --> src/manifests/debian.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | const PRE_DEPENDS: &str = "Pre-Depends"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CONFLICTS` [INFO] [stdout] --> src/manifests/debian.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | const CONFLICTS: &str = "Conflicts"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BREAKS` [INFO] [stdout] --> src/manifests/debian.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | const BREAKS: &str = "Breaks"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/debian.rs:344:8 [INFO] [stdout] | [INFO] [stdout] 344 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RUNTIME` [INFO] [stdout] --> src/manifests/flatpak.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const DEFAULT_RUNTIME: &str = "org.freedesktop.Platform"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RUNTIME_VERSION` [INFO] [stdout] --> src/manifests/flatpak.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const DEFAULT_RUNTIME_VERSION: &str = "master"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_SDK` [INFO] [stdout] --> src/manifests/flatpak.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const DEFAULT_SDK: &str = "org.freedesktop.Sdk"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_module` [INFO] [stdout] --> src/manifests/flatpak.rs:552:8 [INFO] [stdout] | [INFO] [stdout] 552 | pub fn add_module(abstract_manifest: &mut crate::manifests::manifest::AbstractManifest, new_module: &crate::manifests::manifest::Abstract... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/flatpak.rs:629:8 [INFO] [stdout] | [INFO] [stdout] 629 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RELEASE_TYPE` [INFO] [stdout] --> src/manifests/manifest.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub const DEFAULT_RELEASE_TYPE: ReleaseType = ReleaseType::Dev; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_ARCH` [INFO] [stdout] --> src/manifests/manifest.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub const DEFAULT_ARCH: Architecture = Architecture::Any; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_LICENSE` [INFO] [stdout] --> src/manifests/manifest.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub const DEFAULT_LICENSE: License = License::Gpl2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `OS` [INFO] [stdout] --> src/manifests/manifest.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | pub enum OS { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OSVersion` [INFO] [stdout] --> src/manifests/manifest.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct OSVersion { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `JESSIE` [INFO] [stdout] --> src/manifests/manifest.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | / const JESSIE: OSVersion = OSVersion { [INFO] [stdout] 103 | | os: OS::Linux, [INFO] [stdout] 104 | | is_distribution: true, [INFO] [stdout] 105 | | // name: String::from("jessie"), [INFO] [stdout] 106 | | // codename: String::from("stretch"), [INFO] [stdout] 107 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Priority` [INFO] [stdout] --> src/manifests/manifest.rs:315:10 [INFO] [stdout] | [INFO] [stdout] 315 | pub enum Priority { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_PRIORITY` [INFO] [stdout] --> src/manifests/manifest.rs:358:1 [INFO] [stdout] | [INFO] [stdout] 358 | const DEFAULT_PRIORITY: Priority = Priority::Optional; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_manifests_for_path` [INFO] [stdout] --> src/manifests/manifest.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 360 | fn get_manifests_for_path(path: std::fs::DirEntry) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_manifests` [INFO] [stdout] --> src/manifests/manifest.rs:378:8 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn get_manifests(project_path: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REQUIRED_TOP_LEVEL_FIELDS` [INFO] [stdout] --> src/manifests/snap.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | / const REQUIRED_TOP_LEVEL_FIELDS: [&'static str; 0] = [ [INFO] [stdout] 154 | | // DESCRIPTION, [INFO] [stdout] 155 | | // GRADE, [INFO] [stdout] 156 | | // NAME, [INFO] [stdout] ... | [INFO] [stdout] 161 | | // VERSION, [INFO] [stdout] 162 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Confinement` [INFO] [stdout] --> src/manifests/snap.rs:168:6 [INFO] [stdout] | [INFO] [stdout] 168 | enum Confinement { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Grade` [INFO] [stdout] --> src/manifests/snap.rs:176:6 [INFO] [stdout] | [INFO] [stdout] 176 | enum Grade { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_RESTARTS_CONDITIONS` [INFO] [stdout] --> src/manifests/snap.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | pub const ALLOWED_RESTARTS_CONDITIONS: [&str; 6] = ["on_failure", "on_success", "on_abnormal", "on_abort", "always", "never"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_DAEMON_TYPES` [INFO] [stdout] --> src/manifests/snap.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | / pub const ALLOWED_DAEMON_TYPES: [&str; 4] = [ [INFO] [stdout] 316 | | // the command is the main process. [INFO] [stdout] 317 | | "simple", // the configured command will exit after completion [INFO] [stdout] 318 | | "oneshot", // the configured command calls fork() as part of its start-up. [INFO] [stdout] ... | [INFO] [stdout] 321 | | "notify", [INFO] [stdout] 322 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_BUILD_ATTRIBUTES` [INFO] [stdout] --> src/manifests/snap.rs:325:1 [INFO] [stdout] | [INFO] [stdout] 325 | / pub const ALLOWED_BUILD_ATTRIBUTES: [&str; 4] = [ [INFO] [stdout] 326 | | // Plugins that support the concept of build types build in Release mode by default. [INFO] [stdout] 327 | | // Setting the ‘debug’ attribute requests that they instead build in debug mode. [INFO] [stdout] 328 | | "debug", [INFO] [stdout] ... | [INFO] [stdout] 335 | | "no_install", [INFO] [stdout] 336 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/snap.rs:599:8 [INFO] [stdout] | [INFO] [stdout] 599 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PROJECTS_DIR` [INFO] [stdout] --> src/projects/project.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const PROJECTS_DIR: &str = "~/.panbuild/projects/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_rust` [INFO] [stdout] --> src/projects/project.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_rust(self: &Self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dump_project` [INFO] [stdout] --> src/projects.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn dump_project(project: crate::projects::project::Project) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_project` [INFO] [stdout] --> src/projects.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_project(serialized_project: String) -> crate::projects::project::Project { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_projects` [INFO] [stdout] --> src/projects.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn get_projects() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_project_tag_names` [INFO] [stdout] --> src/projects.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_project_tag_names() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_project_commit_signature` [INFO] [stdout] --> src/projects.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_project_commit_signature() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `visit_dirs` [INFO] [stdout] --> src/utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn visit_dirs(dir: &Path, cb: &dyn Fn(&DirEntry)) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_FLATPAK_BUILDER_CACHE_DIR` [INFO] [stdout] --> src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const DEFAULT_FLATPAK_BUILDER_CACHE_DIR: &str = ".flatpak-builder/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_FLATPAK_BUILD_CACHE_DIR` [INFO] [stdout] --> src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const DEFAULT_FLATPAK_BUILD_CACHE_DIR: &str = ".build/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PanbuilbArguments` [INFO] [stdout] --> src/lib.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct PanbuilbArguments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse` [INFO] [stdout] --> src/manifests/arch.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn parse(_content: &str) -> crate::manifests::manifest::AbstractManifest { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_path_matches` [INFO] [stdout] --> src/manifests/arch.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn file_path_matches(path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/arch.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PACKAGES` [INFO] [stdout] --> src/manifests/debian.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | const PACKAGES: &str = "packages"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MULTI_ARCH` [INFO] [stdout] --> src/manifests/debian.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | const MULTI_ARCH: &str = "Multi-Arch"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RECOMMENDS` [INFO] [stdout] --> src/manifests/debian.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | const RECOMMENDS: &str = "Recommends"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SUGGESTS` [INFO] [stdout] --> src/manifests/debian.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | const SUGGESTS: &str = "Suggests"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ENHANCES` [INFO] [stdout] --> src/manifests/debian.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | const ENHANCES: &str = "Enhances"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PRE_DEPENDS` [INFO] [stdout] --> src/manifests/debian.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | const PRE_DEPENDS: &str = "Pre-Depends"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CONFLICTS` [INFO] [stdout] --> src/manifests/debian.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | const CONFLICTS: &str = "Conflicts"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BREAKS` [INFO] [stdout] --> src/manifests/debian.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | const BREAKS: &str = "Breaks"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/debian.rs:344:8 [INFO] [stdout] | [INFO] [stdout] 344 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEBIAN_CONTROL_EXAMPLE` [INFO] [stdout] --> src/manifests/debian.rs:348:1 [INFO] [stdout] | [INFO] [stdout] 348 | / const DEBIAN_CONTROL_EXAMPLE: &str = r###" [INFO] [stdout] 349 | | Source: package_name [INFO] [stdout] 350 | | Section: x11 [INFO] [stdout] 351 | | Priority: optional [INFO] [stdout] ... | [INFO] [stdout] 387 | | [INFO] [stdout] 388 | | "###; [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RUNTIME` [INFO] [stdout] --> src/manifests/flatpak.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const DEFAULT_RUNTIME: &str = "org.freedesktop.Platform"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RUNTIME_VERSION` [INFO] [stdout] --> src/manifests/flatpak.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const DEFAULT_RUNTIME_VERSION: &str = "master"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_SDK` [INFO] [stdout] --> src/manifests/flatpak.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const DEFAULT_SDK: &str = "org.freedesktop.Sdk"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_module` [INFO] [stdout] --> src/manifests/flatpak.rs:552:8 [INFO] [stdout] | [INFO] [stdout] 552 | pub fn add_module(abstract_manifest: &mut crate::manifests::manifest::AbstractManifest, new_module: &crate::manifests::manifest::Abstract... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/flatpak.rs:629:8 [INFO] [stdout] | [INFO] [stdout] 629 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RELEASE_TYPE` [INFO] [stdout] --> src/manifests/manifest.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub const DEFAULT_RELEASE_TYPE: ReleaseType = ReleaseType::Dev; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_ARCH` [INFO] [stdout] --> src/manifests/manifest.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub const DEFAULT_ARCH: Architecture = Architecture::Any; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_LICENSE` [INFO] [stdout] --> src/manifests/manifest.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub const DEFAULT_LICENSE: License = License::Gpl2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `OS` [INFO] [stdout] --> src/manifests/manifest.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | pub enum OS { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OSVersion` [INFO] [stdout] --> src/manifests/manifest.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct OSVersion { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `JESSIE` [INFO] [stdout] --> src/manifests/manifest.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | / const JESSIE: OSVersion = OSVersion { [INFO] [stdout] 103 | | os: OS::Linux, [INFO] [stdout] 104 | | is_distribution: true, [INFO] [stdout] 105 | | // name: String::from("jessie"), [INFO] [stdout] 106 | | // codename: String::from("stretch"), [INFO] [stdout] 107 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Priority` [INFO] [stdout] --> src/manifests/manifest.rs:315:10 [INFO] [stdout] | [INFO] [stdout] 315 | pub enum Priority { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_PRIORITY` [INFO] [stdout] --> src/manifests/manifest.rs:358:1 [INFO] [stdout] | [INFO] [stdout] 358 | const DEFAULT_PRIORITY: Priority = Priority::Optional; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_manifests_for_path` [INFO] [stdout] --> src/manifests/manifest.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 360 | fn get_manifests_for_path(path: std::fs::DirEntry) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_manifests` [INFO] [stdout] --> src/manifests/manifest.rs:378:8 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn get_manifests(project_path: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REQUIRED_TOP_LEVEL_FIELDS` [INFO] [stdout] --> src/manifests/snap.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | / const REQUIRED_TOP_LEVEL_FIELDS: [&'static str; 0] = [ [INFO] [stdout] 154 | | // DESCRIPTION, [INFO] [stdout] 155 | | // GRADE, [INFO] [stdout] 156 | | // NAME, [INFO] [stdout] ... | [INFO] [stdout] 161 | | // VERSION, [INFO] [stdout] 162 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Confinement` [INFO] [stdout] --> src/manifests/snap.rs:168:6 [INFO] [stdout] | [INFO] [stdout] 168 | enum Confinement { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Grade` [INFO] [stdout] --> src/manifests/snap.rs:176:6 [INFO] [stdout] | [INFO] [stdout] 176 | enum Grade { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_RESTARTS_CONDITIONS` [INFO] [stdout] --> src/manifests/snap.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | pub const ALLOWED_RESTARTS_CONDITIONS: [&str; 6] = ["on_failure", "on_success", "on_abnormal", "on_abort", "always", "never"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_DAEMON_TYPES` [INFO] [stdout] --> src/manifests/snap.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | / pub const ALLOWED_DAEMON_TYPES: [&str; 4] = [ [INFO] [stdout] 316 | | // the command is the main process. [INFO] [stdout] 317 | | "simple", // the configured command will exit after completion [INFO] [stdout] 318 | | "oneshot", // the configured command calls fork() as part of its start-up. [INFO] [stdout] ... | [INFO] [stdout] 321 | | "notify", [INFO] [stdout] 322 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_BUILD_ATTRIBUTES` [INFO] [stdout] --> src/manifests/snap.rs:325:1 [INFO] [stdout] | [INFO] [stdout] 325 | / pub const ALLOWED_BUILD_ATTRIBUTES: [&str; 4] = [ [INFO] [stdout] 326 | | // Plugins that support the concept of build types build in Release mode by default. [INFO] [stdout] 327 | | // Setting the ‘debug’ attribute requests that they instead build in debug mode. [INFO] [stdout] 328 | | "debug", [INFO] [stdout] ... | [INFO] [stdout] 335 | | "no_install", [INFO] [stdout] 336 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/snap.rs:599:8 [INFO] [stdout] | [INFO] [stdout] 599 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PROJECTS_DIR` [INFO] [stdout] --> src/projects/project.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const PROJECTS_DIR: &str = "~/.panbuild/projects/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_rust` [INFO] [stdout] --> src/projects/project.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_rust(self: &Self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dump_project` [INFO] [stdout] --> src/projects.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn dump_project(project: crate::projects::project::Project) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_project` [INFO] [stdout] --> src/projects.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_project(serialized_project: String) -> crate::projects::project::Project { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_projects` [INFO] [stdout] --> src/projects.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn get_projects() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_project_tag_names` [INFO] [stdout] --> src/projects.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_project_tag_names() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_project_commit_signature` [INFO] [stdout] --> src/projects.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_project_commit_signature() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `visit_dirs` [INFO] [stdout] --> src/utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn visit_dirs(dir: &Path, cb: &dyn Fn(&DirEntry)) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_FLATPAK_BUILDER_CACHE_DIR` [INFO] [stdout] --> src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const DEFAULT_FLATPAK_BUILDER_CACHE_DIR: &str = ".flatpak-builder/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_FLATPAK_BUILD_CACHE_DIR` [INFO] [stdout] --> src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const DEFAULT_FLATPAK_BUILD_CACHE_DIR: &str = ".build/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PanbuilbArguments` [INFO] [stdout] --> src/lib.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct PanbuilbArguments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (4 fixes) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 34.49s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking panbuild v0.0.11 (/tmp/fixit) [INFO] [stdout] warning: function is never used: `parse` [INFO] [stdout] --> src/manifests/arch.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn parse(_content: &str) -> crate::manifests::manifest::AbstractManifest { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_path_matches` [INFO] [stdout] --> src/manifests/arch.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn file_path_matches(path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/arch.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PACKAGES` [INFO] [stdout] --> src/manifests/debian.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | const PACKAGES: &str = "packages"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MULTI_ARCH` [INFO] [stdout] --> src/manifests/debian.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | const MULTI_ARCH: &str = "Multi-Arch"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RECOMMENDS` [INFO] [stdout] --> src/manifests/debian.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | const RECOMMENDS: &str = "Recommends"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SUGGESTS` [INFO] [stdout] --> src/manifests/debian.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | const SUGGESTS: &str = "Suggests"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ENHANCES` [INFO] [stdout] --> src/manifests/debian.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | const ENHANCES: &str = "Enhances"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PRE_DEPENDS` [INFO] [stdout] --> src/manifests/debian.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | const PRE_DEPENDS: &str = "Pre-Depends"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CONFLICTS` [INFO] [stdout] --> src/manifests/debian.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | const CONFLICTS: &str = "Conflicts"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BREAKS` [INFO] [stdout] --> src/manifests/debian.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | const BREAKS: &str = "Breaks"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/debian.rs:344:8 [INFO] [stdout] | [INFO] [stdout] 344 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RUNTIME` [INFO] [stdout] --> src/manifests/flatpak.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const DEFAULT_RUNTIME: &str = "org.freedesktop.Platform"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RUNTIME_VERSION` [INFO] [stdout] --> src/manifests/flatpak.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const DEFAULT_RUNTIME_VERSION: &str = "master"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_SDK` [INFO] [stdout] --> src/manifests/flatpak.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const DEFAULT_SDK: &str = "org.freedesktop.Sdk"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_module` [INFO] [stdout] --> src/manifests/flatpak.rs:552:8 [INFO] [stdout] | [INFO] [stdout] 552 | pub fn add_module(abstract_manifest: &mut crate::manifests::manifest::AbstractManifest, new_module: &crate::manifests::manifest::Abstract... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/flatpak.rs:629:8 [INFO] [stdout] | [INFO] [stdout] 629 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RELEASE_TYPE` [INFO] [stdout] --> src/manifests/manifest.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub const DEFAULT_RELEASE_TYPE: ReleaseType = ReleaseType::Dev; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_ARCH` [INFO] [stdout] --> src/manifests/manifest.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub const DEFAULT_ARCH: Architecture = Architecture::Any; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_LICENSE` [INFO] [stdout] --> src/manifests/manifest.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub const DEFAULT_LICENSE: License = License::Gpl2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `OS` [INFO] [stdout] --> src/manifests/manifest.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | pub enum OS { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OSVersion` [INFO] [stdout] --> src/manifests/manifest.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct OSVersion { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `JESSIE` [INFO] [stdout] --> src/manifests/manifest.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | / const JESSIE: OSVersion = OSVersion { [INFO] [stdout] 103 | | os: OS::Linux, [INFO] [stdout] 104 | | is_distribution: true, [INFO] [stdout] 105 | | // name: String::from("jessie"), [INFO] [stdout] 106 | | // codename: String::from("stretch"), [INFO] [stdout] 107 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Priority` [INFO] [stdout] --> src/manifests/manifest.rs:315:10 [INFO] [stdout] | [INFO] [stdout] 315 | pub enum Priority { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_PRIORITY` [INFO] [stdout] --> src/manifests/manifest.rs:358:1 [INFO] [stdout] | [INFO] [stdout] 358 | const DEFAULT_PRIORITY: Priority = Priority::Optional; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_manifests_for_path` [INFO] [stdout] --> src/manifests/manifest.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 360 | fn get_manifests_for_path(path: std::fs::DirEntry) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_manifests` [INFO] [stdout] --> src/manifests/manifest.rs:378:8 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn get_manifests(project_path: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REQUIRED_TOP_LEVEL_FIELDS` [INFO] [stdout] --> src/manifests/snap.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | / const REQUIRED_TOP_LEVEL_FIELDS: [&'static str; 0] = [ [INFO] [stdout] 154 | | // DESCRIPTION, [INFO] [stdout] 155 | | // GRADE, [INFO] [stdout] 156 | | // NAME, [INFO] [stdout] ... | [INFO] [stdout] 161 | | // VERSION, [INFO] [stdout] 162 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Confinement` [INFO] [stdout] --> src/manifests/snap.rs:168:6 [INFO] [stdout] | [INFO] [stdout] 168 | enum Confinement { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Grade` [INFO] [stdout] --> src/manifests/snap.rs:176:6 [INFO] [stdout] | [INFO] [stdout] 176 | enum Grade { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_RESTARTS_CONDITIONS` [INFO] [stdout] --> src/manifests/snap.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | pub const ALLOWED_RESTARTS_CONDITIONS: [&str; 6] = ["on_failure", "on_success", "on_abnormal", "on_abort", "always", "never"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_DAEMON_TYPES` [INFO] [stdout] --> src/manifests/snap.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | / pub const ALLOWED_DAEMON_TYPES: [&str; 4] = [ [INFO] [stdout] 316 | | // the command is the main process. [INFO] [stdout] 317 | | "simple", // the configured command will exit after completion [INFO] [stdout] 318 | | "oneshot", // the configured command calls fork() as part of its start-up. [INFO] [stdout] ... | [INFO] [stdout] 321 | | "notify", [INFO] [stdout] 322 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_BUILD_ATTRIBUTES` [INFO] [stdout] --> src/manifests/snap.rs:325:1 [INFO] [stdout] | [INFO] [stdout] 325 | / pub const ALLOWED_BUILD_ATTRIBUTES: [&str; 4] = [ [INFO] [stdout] 326 | | // Plugins that support the concept of build types build in Release mode by default. [INFO] [stdout] 327 | | // Setting the ‘debug’ attribute requests that they instead build in debug mode. [INFO] [stdout] 328 | | "debug", [INFO] [stdout] ... | [INFO] [stdout] 335 | | "no_install", [INFO] [stdout] 336 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/snap.rs:599:8 [INFO] [stdout] | [INFO] [stdout] 599 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PROJECTS_DIR` [INFO] [stdout] --> src/projects/project.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const PROJECTS_DIR: &str = "~/.panbuild/projects/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_rust` [INFO] [stdout] --> src/projects/project.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_rust(self: &Self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dump_project` [INFO] [stdout] --> src/projects.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn dump_project(project: crate::projects::project::Project) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_project` [INFO] [stdout] --> src/projects.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_project(serialized_project: String) -> crate::projects::project::Project { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_projects` [INFO] [stdout] --> src/projects.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn get_projects() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_project_tag_names` [INFO] [stdout] --> src/projects.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_project_tag_names() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_project_commit_signature` [INFO] [stdout] --> src/projects.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_project_commit_signature() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `visit_dirs` [INFO] [stdout] --> src/utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn visit_dirs(dir: &Path, cb: &dyn Fn(&DirEntry)) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_FLATPAK_BUILDER_CACHE_DIR` [INFO] [stdout] --> src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const DEFAULT_FLATPAK_BUILDER_CACHE_DIR: &str = ".flatpak-builder/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_FLATPAK_BUILD_CACHE_DIR` [INFO] [stdout] --> src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const DEFAULT_FLATPAK_BUILD_CACHE_DIR: &str = ".build/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PanbuilbArguments` [INFO] [stdout] --> src/lib.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct PanbuilbArguments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse` [INFO] [stdout] --> src/manifests/arch.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn parse(_content: &str) -> crate::manifests::manifest::AbstractManifest { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_path_matches` [INFO] [stdout] --> src/manifests/arch.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn file_path_matches(path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/arch.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PACKAGES` [INFO] [stdout] --> src/manifests/debian.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | const PACKAGES: &str = "packages"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MULTI_ARCH` [INFO] [stdout] --> src/manifests/debian.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | const MULTI_ARCH: &str = "Multi-Arch"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RECOMMENDS` [INFO] [stdout] --> src/manifests/debian.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | const RECOMMENDS: &str = "Recommends"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SUGGESTS` [INFO] [stdout] --> src/manifests/debian.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | const SUGGESTS: &str = "Suggests"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ENHANCES` [INFO] [stdout] --> src/manifests/debian.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | const ENHANCES: &str = "Enhances"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PRE_DEPENDS` [INFO] [stdout] --> src/manifests/debian.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | const PRE_DEPENDS: &str = "Pre-Depends"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CONFLICTS` [INFO] [stdout] --> src/manifests/debian.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | const CONFLICTS: &str = "Conflicts"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BREAKS` [INFO] [stdout] --> src/manifests/debian.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | const BREAKS: &str = "Breaks"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/debian.rs:344:8 [INFO] [stdout] | [INFO] [stdout] 344 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEBIAN_CONTROL_EXAMPLE` [INFO] [stdout] --> src/manifests/debian.rs:348:1 [INFO] [stdout] | [INFO] [stdout] 348 | / const DEBIAN_CONTROL_EXAMPLE: &str = r###" [INFO] [stdout] 349 | | Source: package_name [INFO] [stdout] 350 | | Section: x11 [INFO] [stdout] 351 | | Priority: optional [INFO] [stdout] ... | [INFO] [stdout] 387 | | [INFO] [stdout] 388 | | "###; [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RUNTIME` [INFO] [stdout] --> src/manifests/flatpak.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const DEFAULT_RUNTIME: &str = "org.freedesktop.Platform"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RUNTIME_VERSION` [INFO] [stdout] --> src/manifests/flatpak.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const DEFAULT_RUNTIME_VERSION: &str = "master"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_SDK` [INFO] [stdout] --> src/manifests/flatpak.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const DEFAULT_SDK: &str = "org.freedesktop.Sdk"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_module` [INFO] [stdout] --> src/manifests/flatpak.rs:552:8 [INFO] [stdout] | [INFO] [stdout] 552 | pub fn add_module(abstract_manifest: &mut crate::manifests::manifest::AbstractManifest, new_module: &crate::manifests::manifest::Abstract... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/flatpak.rs:629:8 [INFO] [stdout] | [INFO] [stdout] 629 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_RELEASE_TYPE` [INFO] [stdout] --> src/manifests/manifest.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub const DEFAULT_RELEASE_TYPE: ReleaseType = ReleaseType::Dev; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_ARCH` [INFO] [stdout] --> src/manifests/manifest.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub const DEFAULT_ARCH: Architecture = Architecture::Any; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_LICENSE` [INFO] [stdout] --> src/manifests/manifest.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub const DEFAULT_LICENSE: License = License::Gpl2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `OS` [INFO] [stdout] --> src/manifests/manifest.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | pub enum OS { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OSVersion` [INFO] [stdout] --> src/manifests/manifest.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct OSVersion { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `JESSIE` [INFO] [stdout] --> src/manifests/manifest.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | / const JESSIE: OSVersion = OSVersion { [INFO] [stdout] 103 | | os: OS::Linux, [INFO] [stdout] 104 | | is_distribution: true, [INFO] [stdout] 105 | | // name: String::from("jessie"), [INFO] [stdout] 106 | | // codename: String::from("stretch"), [INFO] [stdout] 107 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Priority` [INFO] [stdout] --> src/manifests/manifest.rs:315:10 [INFO] [stdout] | [INFO] [stdout] 315 | pub enum Priority { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_PRIORITY` [INFO] [stdout] --> src/manifests/manifest.rs:358:1 [INFO] [stdout] | [INFO] [stdout] 358 | const DEFAULT_PRIORITY: Priority = Priority::Optional; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_manifests_for_path` [INFO] [stdout] --> src/manifests/manifest.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 360 | fn get_manifests_for_path(path: std::fs::DirEntry) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_manifests` [INFO] [stdout] --> src/manifests/manifest.rs:378:8 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn get_manifests(project_path: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REQUIRED_TOP_LEVEL_FIELDS` [INFO] [stdout] --> src/manifests/snap.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | / const REQUIRED_TOP_LEVEL_FIELDS: [&'static str; 0] = [ [INFO] [stdout] 154 | | // DESCRIPTION, [INFO] [stdout] 155 | | // GRADE, [INFO] [stdout] 156 | | // NAME, [INFO] [stdout] ... | [INFO] [stdout] 161 | | // VERSION, [INFO] [stdout] 162 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Confinement` [INFO] [stdout] --> src/manifests/snap.rs:168:6 [INFO] [stdout] | [INFO] [stdout] 168 | enum Confinement { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Grade` [INFO] [stdout] --> src/manifests/snap.rs:176:6 [INFO] [stdout] | [INFO] [stdout] 176 | enum Grade { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_RESTARTS_CONDITIONS` [INFO] [stdout] --> src/manifests/snap.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | pub const ALLOWED_RESTARTS_CONDITIONS: [&str; 6] = ["on_failure", "on_success", "on_abnormal", "on_abort", "always", "never"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_DAEMON_TYPES` [INFO] [stdout] --> src/manifests/snap.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | / pub const ALLOWED_DAEMON_TYPES: [&str; 4] = [ [INFO] [stdout] 316 | | // the command is the main process. [INFO] [stdout] 317 | | "simple", // the configured command will exit after completion [INFO] [stdout] 318 | | "oneshot", // the configured command calls fork() as part of its start-up. [INFO] [stdout] ... | [INFO] [stdout] 321 | | "notify", [INFO] [stdout] 322 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALLOWED_BUILD_ATTRIBUTES` [INFO] [stdout] --> src/manifests/snap.rs:325:1 [INFO] [stdout] | [INFO] [stdout] 325 | / pub const ALLOWED_BUILD_ATTRIBUTES: [&str; 4] = [ [INFO] [stdout] 326 | | // Plugins that support the concept of build types build in Release mode by default. [INFO] [stdout] 327 | | // Setting the ‘debug’ attribute requests that they instead build in debug mode. [INFO] [stdout] 328 | | "debug", [INFO] [stdout] ... | [INFO] [stdout] 335 | | "no_install", [INFO] [stdout] 336 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_content_matches` [INFO] [stdout] --> src/manifests/snap.rs:599:8 [INFO] [stdout] | [INFO] [stdout] 599 | pub fn file_content_matches(_content: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PROJECTS_DIR` [INFO] [stdout] --> src/projects/project.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const PROJECTS_DIR: &str = "~/.panbuild/projects/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_rust` [INFO] [stdout] --> src/projects/project.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_rust(self: &Self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dump_project` [INFO] [stdout] --> src/projects.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn dump_project(project: crate::projects::project::Project) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_project` [INFO] [stdout] --> src/projects.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_project(serialized_project: String) -> crate::projects::project::Project { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_projects` [INFO] [stdout] --> src/projects.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn get_projects() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_project_tag_names` [INFO] [stdout] --> src/projects.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_project_tag_names() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_project_commit_signature` [INFO] [stdout] --> src/projects.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_project_commit_signature() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `visit_dirs` [INFO] [stdout] --> src/utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn visit_dirs(dir: &Path, cb: &dyn Fn(&DirEntry)) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_FLATPAK_BUILDER_CACHE_DIR` [INFO] [stdout] --> src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const DEFAULT_FLATPAK_BUILDER_CACHE_DIR: &str = ".flatpak-builder/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_FLATPAK_BUILD_CACHE_DIR` [INFO] [stdout] --> src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const DEFAULT_FLATPAK_BUILD_CACHE_DIR: &str = ".build/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PanbuilbArguments` [INFO] [stdout] --> src/lib.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct PanbuilbArguments { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.75s [INFO] running `Command { std: "docker" "inspect" "ec2ffd5cf14d5adaba2559b91f56484e790c93367bc3cffc683cb48ca34500c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec2ffd5cf14d5adaba2559b91f56484e790c93367bc3cffc683cb48ca34500c1", kill_on_drop: false }` [INFO] [stdout] ec2ffd5cf14d5adaba2559b91f56484e790c93367bc3cffc683cb48ca34500c1