[INFO] cloning repository https://github.com/Ki11erRabbit/rsh [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ki11erRabbit/rsh" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKi11erRabbit%2Frsh", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKi11erRabbit%2Frsh'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 607bc8223a8046d774aa7ffecfb87724c5480a02 [INFO] checking Ki11erRabbit/rsh against master#46424fb5054f211ec836c5c03159f92e46bb35ac for pr-139042 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKi11erRabbit%2Frsh" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ki11erRabbit/rsh on toolchain 46424fb5054f211ec836c5c03159f92e46bb35ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Ki11erRabbit/rsh [INFO] finished tweaking git repo https://github.com/Ki11erRabbit/rsh [INFO] tweaked toml for git repo https://github.com/Ki11erRabbit/rsh written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Ki11erRabbit/rsh already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 90 packages to latest compatible versions [INFO] [stderr] Adding android-tzdata v0.1.1 [INFO] [stderr] Adding android_system_properties v0.1.5 [INFO] [stderr] Adding arrayvec v0.7.6 [INFO] [stderr] Adding beef v0.5.2 [INFO] [stderr] Adding bitflags v2.9.0 [INFO] [stderr] Adding bumpalo v3.17.0 [INFO] [stderr] Adding chrono v0.4.40 [INFO] [stderr] Adding clipboard-win v4.5.0 [INFO] [stderr] Adding core-foundation-sys v0.8.7 [INFO] [stderr] Adding crossbeam v0.8.4 [INFO] [stderr] Adding crossbeam-channel v0.5.14 [INFO] [stderr] Adding crossbeam-deque v0.8.6 [INFO] [stderr] Adding crossbeam-epoch v0.9.18 [INFO] [stderr] Adding crossbeam-queue v0.3.12 [INFO] [stderr] Adding crossbeam-utils v0.8.21 [INFO] [stderr] Adding darling v0.14.4 [INFO] [stderr] Adding darling_core v0.14.4 [INFO] [stderr] Adding darling_macro v0.14.4 [INFO] [stderr] Adding defer-drop v1.3.0 [INFO] [stderr] Adding deranged v0.4.1 [INFO] [stderr] Adding derive_builder v0.11.2 [INFO] [stderr] Adding derive_builder_core v0.11.2 [INFO] [stderr] Adding derive_builder_macro v0.11.2 [INFO] [stderr] Adding endian-type v0.1.2 [INFO] [stderr] Adding errno v0.3.10 [INFO] [stderr] Adding error-code v2.3.1 [INFO] [stderr] Adding fd-lock v3.0.13 [INFO] [stderr] Adding fnv v1.0.7 [INFO] [stderr] Adding fuzzy-matcher v0.3.7 [INFO] [stderr] Adding iana-time-zone v0.1.62 [INFO] [stderr] Adding iana-time-zone-haiku v0.1.2 [INFO] [stderr] Adding ident_case v1.0.1 [INFO] [stderr] Adding js-sys v0.3.77 [INFO] [stderr] Updating libc v0.2.139 -> v0.2.171 [INFO] [stderr] Adding linux-raw-sys v0.4.15 [INFO] [stderr] Adding memoffset v0.6.5 [INFO] [stderr] Adding nibble_vec v0.1.0 [INFO] [stderr] Adding nix v0.24.3 [INFO] [stderr] Adding nix v0.25.1 [INFO] [stderr] Adding num-conv v0.1.0 [INFO] [stderr] Adding num-traits v0.2.19 [INFO] [stderr] Adding powerfmt v0.2.0 [INFO] [stderr] Updating proc-macro2 v1.0.51 -> v1.0.94 [INFO] [stderr] Updating quote v1.0.23 -> v1.0.40 [INFO] [stderr] Adding radix_trie v0.2.1 [INFO] [stderr] Adding rayon v1.10.0 [INFO] [stderr] Adding rayon-core v1.12.1 [INFO] [stderr] Adding rustix v0.38.44 [INFO] [stderr] Updating rustyline v5.0.6 -> v11.0.0 (available: v15.0.0) [INFO] [stderr] Adding rustyline-derive v0.8.0 [INFO] [stderr] Adding serde v1.0.219 [INFO] [stderr] Adding serde_derive v1.0.219 [INFO] [stderr] Adding skim v0.10.4 [INFO] [stderr] Adding str-buf v1.0.6 [INFO] [stderr] Adding strsim v0.10.0 [INFO] [stderr] Adding syn v2.0.100 [INFO] [stderr] Adding thread_local v1.1.8 [INFO] [stderr] Adding time v0.3.41 [INFO] [stderr] Adding time-core v0.1.4 [INFO] [stderr] Adding timer v0.2.0 [INFO] [stderr] Adding tuikit v0.5.0 [INFO] [stderr] Updating utf8parse v0.1.1 -> v0.2.2 [INFO] [stderr] Adding vte v0.11.1 [INFO] [stderr] Adding vte_generate_state_changes v0.1.2 [INFO] [stderr] Adding wasm-bindgen v0.2.100 [INFO] [stderr] Adding wasm-bindgen-backend v0.2.100 [INFO] [stderr] Adding wasm-bindgen-macro v0.2.100 [INFO] [stderr] Adding wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Adding wasm-bindgen-shared v0.2.100 [INFO] [stderr] Adding windows-core v0.52.0 [INFO] [stderr] Adding windows-link v0.1.1 [INFO] [stderr] Adding windows-sys v0.48.0 [INFO] [stderr] Adding windows-sys v0.59.0 [INFO] [stderr] Adding windows-targets v0.48.5 [INFO] [stderr] Adding windows-targets v0.52.6 [INFO] [stderr] Adding windows_aarch64_gnullvm v0.48.5 [INFO] [stderr] Adding windows_aarch64_gnullvm v0.52.6 [INFO] [stderr] Adding windows_aarch64_msvc v0.48.5 [INFO] [stderr] Adding windows_aarch64_msvc v0.52.6 [INFO] [stderr] Adding windows_i686_gnu v0.48.5 [INFO] [stderr] Adding windows_i686_gnu v0.52.6 [INFO] [stderr] Adding windows_i686_gnullvm v0.52.6 [INFO] [stderr] Adding windows_i686_msvc v0.48.5 [INFO] [stderr] Adding windows_i686_msvc v0.52.6 [INFO] [stderr] Adding windows_x86_64_gnu v0.48.5 [INFO] [stderr] Adding windows_x86_64_gnu v0.52.6 [INFO] [stderr] Adding windows_x86_64_gnullvm v0.48.5 [INFO] [stderr] Adding windows_x86_64_gnullvm v0.52.6 [INFO] [stderr] Adding windows_x86_64_msvc v0.48.5 [INFO] [stderr] Adding windows_x86_64_msvc v0.52.6 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded defer-drop v1.3.0 [INFO] [stderr] Downloaded lalrpop-util v0.19.8 [INFO] [stderr] Downloaded rustyline-derive v0.8.0 [INFO] [stderr] Downloaded ena v0.14.1 [INFO] [stderr] Downloaded tuikit v0.5.0 [INFO] [stderr] Downloaded timer v0.2.0 [INFO] [stderr] Downloaded skim v0.10.4 [INFO] [stderr] Downloaded string_cache v0.8.6 [INFO] [stderr] Downloaded lalrpop v0.19.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7af4d24f2bdc79e78959c92f3c3b91097bbea0277e6a280cbae72443738b3563 [INFO] running `Command { std: "docker" "start" "-a" "7af4d24f2bdc79e78959c92f3c3b91097bbea0277e6a280cbae72443738b3563", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7af4d24f2bdc79e78959c92f3c3b91097bbea0277e6a280cbae72443738b3563", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7af4d24f2bdc79e78959c92f3c3b91097bbea0277e6a280cbae72443738b3563", kill_on_drop: false }` [INFO] [stdout] 7af4d24f2bdc79e78959c92f3c3b91097bbea0277e6a280cbae72443738b3563 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 946f2d32238ba958f5f2df14088c68f6f91b94d1b79be2591ca59cc04ddbd476 [INFO] running `Command { std: "docker" "start" "-a" "946f2d32238ba958f5f2df14088c68f6f91b94d1b79be2591ca59cc04ddbd476", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking iana-time-zone v0.1.62 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Checking deranged v0.4.1 [INFO] [stderr] Compiling ena v0.14.1 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Compiling vte_generate_state_changes v0.1.2 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Compiling pico-args v0.4.2 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-channel v0.5.14 [INFO] [stderr] Checking crossbeam-queue v0.3.12 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Checking time-core v0.1.4 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling petgraph v0.6.3 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking defer-drop v1.3.0 [INFO] [stderr] Checking vte v0.11.1 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Compiling string_cache v0.8.6 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Checking fuzzy-matcher v0.3.7 [INFO] [stderr] Checking endian-type v0.1.2 [INFO] [stderr] Compiling signal-hook v0.3.15 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Checking beef v0.5.2 [INFO] [stderr] Checking nix v0.26.2 [INFO] [stderr] Checking radix_trie v0.2.1 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking lalrpop-util v0.19.8 [INFO] [stderr] Checking fragile v2.0.0 [INFO] [stderr] Checking timer v0.2.0 [INFO] [stderr] Checking tuikit v0.5.0 [INFO] [stderr] Compiling lalrpop v0.19.8 [INFO] [stderr] Checking fd-lock v3.0.13 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling rustyline-derive v0.8.0 [INFO] [stderr] Compiling pest v2.5.5 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling derive_builder_core v0.11.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling likely_stable v0.1.2 [INFO] [stderr] Compiling derive_builder_macro v0.11.2 [INFO] [stderr] Checking derive_builder v0.11.2 [INFO] [stderr] Compiling rsh v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking skim v0.10.4 [INFO] [stderr] Checking rustyline v11.0.0 [INFO] [stdout] warning: unused import: `nix::sys::signal::Signal` [INFO] [stdout] --> src/shell.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use nix::sys::signal::Signal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::raw::c_int` [INFO] [stdout] --> src/shell.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::os::raw::c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VarData` [INFO] [stdout] --> src/shell.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::var::{VarData, VarDataUtils}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shell` [INFO] [stdout] --> src/completion.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::shell; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rustyline::completion::FilenameCompleter` [INFO] [stdout] --> src/completion.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rustyline::completion::FilenameCompleter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/ast.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::str::Split` [INFO] [stdout] --> src/ast.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use core::str::Split; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::__parse__CompleteCommand::CompleteCommandParser` [INFO] [stdout] --> /opt/rustwide/target/debug/build/rsh-c95a4c1dcb5e9ace/out/grammar.rs:2680:9 [INFO] [stdout] | [INFO] [stdout] 2680 | pub use self::__parse__CompleteCommand::CompleteCommandParser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::log` [INFO] [stdout] --> src/eval.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::log; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `set_exit_status` [INFO] [stdout] --> src/jobs.rs:11:36 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::eval::{get_exit_status, set_exit_status}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/trap.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self,Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fragile::Fragile` [INFO] [stdout] --> src/trap.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use fragile::Fragile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JobState` [INFO] [stdout] --> src/trap.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::jobs::{self,JobState}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shell::ShellJobUtils` [INFO] [stdout] --> src/trap.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::shell::ShellJobUtils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nix::errno::Errno` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use nix::errno::Errno; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nix::sys::signal::Signal` [INFO] [stdout] --> src/shell.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use nix::sys::signal::Signal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::raw::c_int` [INFO] [stdout] --> src/shell.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::os::raw::c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VarData` [INFO] [stdout] --> src/shell.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::var::{VarData, VarDataUtils}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shell` [INFO] [stdout] --> src/completion.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::shell; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rustyline::completion::FilenameCompleter` [INFO] [stdout] --> src/completion.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rustyline::completion::FilenameCompleter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/ast.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::str::Split` [INFO] [stdout] --> src/ast.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use core::str::Split; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::log` [INFO] [stdout] --> src/eval.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::log; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `set_exit_status` [INFO] [stdout] --> src/jobs.rs:11:36 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::eval::{get_exit_status, set_exit_status}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/trap.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self,Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fragile::Fragile` [INFO] [stdout] --> src/trap.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use fragile::Fragile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JobState` [INFO] [stdout] --> src/trap.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::jobs::{self,JobState}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shell::ShellJobUtils` [INFO] [stdout] --> src/trap.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::shell::ShellJobUtils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nix::errno::Errno` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use nix::errno::Errno; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/trap.rs:423:5 [INFO] [stdout] | [INFO] [stdout] 422 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 423 | / while get_pending_signal().is_none() { [INFO] [stdout] 424 | | //do nothing [INFO] [stdout] 425 | | } [INFO] [stdout] | |_____^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/trap.rs:423:5 [INFO] [stdout] | [INFO] [stdout] 422 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 423 | / while get_pending_signal().is_none() { [INFO] [stdout] 424 | | //do nothing [INFO] [stdout] 425 | | } [INFO] [stdout] | |_____^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VarDataUtils` [INFO] [stdout] --> src/shell.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::var::{VarData, VarDataUtils}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VarDataUtils` [INFO] [stdout] --> src/shell.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::var::{VarData, VarDataUtils}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/completion.rs:83:53 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn complete_cmd_unsorted(&self, line: &str, pos: usize) -> Result<(usize,Vec)> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/context.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | let mut var = context.borrow_mut().get_var(name); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/completion.rs:83:53 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn complete_cmd_unsorted(&self, line: &str, pos: usize) -> Result<(usize,Vec)> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/context.rs:476:21 [INFO] [stdout] | [INFO] [stdout] 476 | if let Some(func) = self.functions.remove(name) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/context.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 529 | let key = if var.chars().nth(0).unwrap().to_digit(10).is_some() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/context.rs:552:13 [INFO] [stdout] | [INFO] [stdout] 552 | let key = if var.chars().nth(0).unwrap().to_digit(10).is_some() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/context.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let key = if name.chars().nth(0).unwrap().to_digit(10).is_some() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/context.rs:593:13 [INFO] [stdout] | [INFO] [stdout] 593 | let key = if name.chars().nth(0).unwrap().to_digit(10).is_some() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/lexer.rs:17:49 [INFO] [stdout] | [INFO] [stdout] 17 | Error::UnrecognizedChar(start, chr, end) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/context.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | let mut var = context.borrow_mut().get_var(name); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/context.rs:476:21 [INFO] [stdout] | [INFO] [stdout] 476 | if let Some(func) = self.functions.remove(name) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/context.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 529 | let key = if var.chars().nth(0).unwrap().to_digit(10).is_some() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/context.rs:552:13 [INFO] [stdout] | [INFO] [stdout] 552 | let key = if var.chars().nth(0).unwrap().to_digit(10).is_some() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/context.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let key = if name.chars().nth(0).unwrap().to_digit(10).is_some() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/context.rs:593:13 [INFO] [stdout] | [INFO] [stdout] 593 | let key = if name.chars().nth(0).unwrap().to_digit(10).is_some() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/lexer.rs:17:49 [INFO] [stdout] | [INFO] [stdout] 17 | Error::UnrecognizedChar(start, chr, end) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end` is never read [INFO] [stdout] --> src/ast.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | let mut end = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end` is never read [INFO] [stdout] --> src/ast.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | let mut end = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/eval.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let mut pipeline: &mut PipeSequence = &mut pipeline.pipe_sequence; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stopped` is assigned to, but never used [INFO] [stdout] --> src/jobs.rs:519:17 [INFO] [stdout] | [INFO] [stdout] 519 | let mut stopped = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_stopped` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `stopped` is never read [INFO] [stdout] --> src/jobs.rs:534:17 [INFO] [stdout] | [INFO] [stdout] 534 | stopped = true; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/jobs.rs:493:9 [INFO] [stdout] | [INFO] [stdout] 493 | let mut status = result; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/jobs.rs:671:33 [INFO] [stdout] | [INFO] [stdout] 671 | WaitStatus::Exited(pid, status) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/eval.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let mut pipeline: &mut PipeSequence = &mut pipeline.pipe_sequence; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stopped` is assigned to, but never used [INFO] [stdout] --> src/jobs.rs:519:17 [INFO] [stdout] | [INFO] [stdout] 519 | let mut stopped = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_stopped` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `stopped` is never read [INFO] [stdout] --> src/jobs.rs:534:17 [INFO] [stdout] | [INFO] [stdout] 534 | stopped = true; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/jobs.rs:493:9 [INFO] [stdout] | [INFO] [stdout] 493 | let mut status = result; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/jobs.rs:671:33 [INFO] [stdout] | [INFO] [stdout] 671 | WaitStatus::Exited(pid, status) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `job` is never read [INFO] [stdout] --> src/builtins.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut job: Option>> = None; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `job` is never read [INFO] [stdout] --> src/builtins.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let mut job: Option>> = None; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/builtins.rs:383:9 [INFO] [stdout] | [INFO] [stdout] 383 | let mut lexer = Lexer::new(string.as_str()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/builtins.rs:674:9 [INFO] [stdout] | [INFO] [stdout] 674 | let mut file = if filename.contains('/') { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/builtins.rs:692:9 [INFO] [stdout] | [INFO] [stdout] 692 | let mut lexer = Lexer::new(contents.as_str()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mask` [INFO] [stdout] --> src/trap.rs:421:20 [INFO] [stdout] | [INFO] [stdout] 421 | pub fn sig_suspend(mask: &signal::SigSet) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `job` is never read [INFO] [stdout] --> src/builtins.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut job: Option>> = None; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `job` is never read [INFO] [stdout] --> src/builtins.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let mut job: Option>> = None; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/builtins.rs:383:9 [INFO] [stdout] | [INFO] [stdout] 383 | let mut lexer = Lexer::new(string.as_str()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/builtins.rs:674:9 [INFO] [stdout] | [INFO] [stdout] 674 | let mut file = if filename.contains('/') { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/builtins.rs:692:9 [INFO] [stdout] | [INFO] [stdout] 692 | let mut lexer = Lexer::new(contents.as_str()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mask` [INFO] [stdout] --> src/trap.rs:421:20 [INFO] [stdout] | [INFO] [stdout] 421 | pub fn sig_suspend(mask: &signal::SigSet) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_profile` is never used [INFO] [stdout] --> src/main.rs:287:4 [INFO] [stdout] | [INFO] [stdout] 287 | fn read_profile() -> Result<(), Box>{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/shell.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Shell { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 72 | curr_directory: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 73 | physical_directory: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | //jobs [INFO] [stdout] 75 | jobctl: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 76 | job_warning: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 77 | background_pid: Pid, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 78 | tty_fd: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | root_pid: Pid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 85 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | functions: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `load_history`, `background_jobs`, `is_background_job`, `get_current_job`, and `push_context` are never used [INFO] [stdout] --> src/shell.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 99 | impl Shell { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn load_history(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn background_jobs(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn is_background_job(&self, job_id: JobId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn get_current_job(&self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn push_context(&mut self, context: Context) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_history` is never used [INFO] [stdout] --> src/shell.rs:452:8 [INFO] [stdout] | [INFO] [stdout] 452 | pub fn load_history() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_job` is never used [INFO] [stdout] --> src/shell.rs:505:8 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn get_current_job() -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `background_jobs` is never used [INFO] [stdout] --> src/shell.rs:520:8 [INFO] [stdout] | [INFO] [stdout] 520 | pub fn background_jobs() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_background_job` is never used [INFO] [stdout] --> src/shell.rs:525:8 [INFO] [stdout] | [INFO] [stdout] 525 | pub fn is_background_job(job_id: JobId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `push_context` is never used [INFO] [stdout] --> src/shell.rs:584:8 [INFO] [stdout] | [INFO] [stdout] 584 | pub fn push_context(context: Context) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `make_readonly` and `export` are never used [INFO] [stdout] --> src/context.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Var { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn make_readonly(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn export(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push_context` and `all_vars` are never used [INFO] [stdout] --> src/context.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl ContextManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn push_context(&mut self, context: Context) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub fn all_vars(&self) -> BTreeMap>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `make_readonly_func` is never used [INFO] [stdout] --> src/context.rs:475:12 [INFO] [stdout] | [INFO] [stdout] 438 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 475 | pub fn make_readonly_func(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `take_until_seen_twice` is never used [INFO] [stdout] --> src/lexer.rs:292:8 [INFO] [stdout] | [INFO] [stdout] 251 | impl<'input> Lexer<'input> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 292 | fn take_until_seen_twice(&mut self, start: usize, mut end: usize, mut terminate: F) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> /opt/rustwide/target/debug/build/rsh-c95a4c1dcb5e9ace/out/grammar.rs:775:16 [INFO] [stdout] | [INFO] [stdout] 774 | impl CompleteCommandParser { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 775 | pub fn new() -> CompleteCommandParser { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_if_function` is never used [INFO] [stdout] --> src/eval.rs:554:4 [INFO] [stdout] | [INFO] [stdout] 554 | fn check_if_function(cmd_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DOWAIT_WAITCMD` is never used [INFO] [stdout] --> src/jobs.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const DOWAIT_WAITCMD: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jobctl` is never read [INFO] [stdout] --> src/jobs.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct JobControl { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub jobctl: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `background_jobs`, `is_background_job`, `get_current_job`, and `clear_completed_jobs` are never used [INFO] [stdout] --> src/jobs.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl JobControl { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn background_jobs(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn is_background_job(&self, job_id: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn get_current_job(&self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn clear_completed_jobs(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Waiting` is never constructed [INFO] [stdout] --> src/jobs.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 263 | pub enum JobState { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 264 | Waiting, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JobState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sigint`, `waited`, and `used` are never read [INFO] [stdout] --> src/jobs.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 322 | pub struct Job { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 334 | pub sigint: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 335 | /// A boolean for if the job has been waited on. [INFO] [stdout] 336 | pub waited: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 337 | /// A boolean for if the job has been used. [INFO] [stdout] 338 | pub used: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Job` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `S_RESET` is never used [INFO] [stdout] --> src/trap.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const S_RESET: usize = 5; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_path` and `add_var` are never used [INFO] [stdout] --> src/var.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub trait VarDataUtils { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] 39 | fn update_path(&mut self, path: V); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 40 | fn add_var(&mut self, var: V, position: isize); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/var.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl VarData { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 55 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn get_current_context_pos(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn convert_env(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn path(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn check_levels(&mut self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn pop_var_stack(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn lookup_internal(&self, key: &str) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn lookup_var(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn lookup_command(&self, cmd: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/var.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct ImportantVars { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 285 | pub home: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 286 | pub pwd: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 287 | pub path: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 288 | pub history_location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 289 | pub ps1: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 290 | pub ps2: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 291 | pub ps4: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 292 | pub ppid: Pid, [INFO] [stdout] | ^^^^ [INFO] [stdout] 293 | pub pid: Pid, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantVars` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `make_into_vars`, `export_env_vars`, `set_path`, and `set_var` are never used [INFO] [stdout] --> src/var.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 296 | impl ImportantVars { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 297 | pub fn make_into_vars(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn export_env_vars(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn set_path(&mut self, path: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn set_var(&mut self, var: Var) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/shell.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | FORKED.store(state, std::sync::atomic::Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/shell.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | FORKED.load(std::sync::atomic::Ordering::Relaxed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/context.rs:374:13 [INFO] [stdout] | [INFO] [stdout] 374 | &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 374 | let _ = &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());}); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/context.rs:377:13 [INFO] [stdout] | [INFO] [stdout] 377 | &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 377 | let _ = &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());}); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/eval.rs:26:48 [INFO] [stdout] | [INFO] [stdout] 26 | WaitStatus::from_raw(Pid::from_raw(-1),EXIT_STATUS.load(Ordering::Relaxed)).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/eval.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | EXIT_STATUS.store(status, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/eval.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | EXIT_STATUS.load(Ordering::Relaxed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_profile` is never used [INFO] [stdout] --> src/main.rs:287:4 [INFO] [stdout] | [INFO] [stdout] 287 | fn read_profile() -> Result<(), Box>{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/shell.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Shell { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 72 | curr_directory: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 73 | physical_directory: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | //jobs [INFO] [stdout] 75 | jobctl: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 76 | job_warning: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 77 | background_pid: Pid, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 78 | tty_fd: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | root_pid: Pid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 85 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | functions: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `load_history`, `background_jobs`, `is_background_job`, `get_current_job`, and `push_context` are never used [INFO] [stdout] --> src/shell.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 99 | impl Shell { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn load_history(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn background_jobs(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn is_background_job(&self, job_id: JobId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn get_current_job(&self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn push_context(&mut self, context: Context) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_history` is never used [INFO] [stdout] --> src/shell.rs:452:8 [INFO] [stdout] | [INFO] [stdout] 452 | pub fn load_history() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_job` is never used [INFO] [stdout] --> src/shell.rs:505:8 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn get_current_job() -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `background_jobs` is never used [INFO] [stdout] --> src/shell.rs:520:8 [INFO] [stdout] | [INFO] [stdout] 520 | pub fn background_jobs() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_background_job` is never used [INFO] [stdout] --> src/shell.rs:525:8 [INFO] [stdout] | [INFO] [stdout] 525 | pub fn is_background_job(job_id: JobId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `push_context` is never used [INFO] [stdout] --> src/shell.rs:584:8 [INFO] [stdout] | [INFO] [stdout] 584 | pub fn push_context(context: Context) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `make_readonly` and `export` are never used [INFO] [stdout] --> src/context.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Var { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn make_readonly(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn export(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push_context` and `all_vars` are never used [INFO] [stdout] --> src/context.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl ContextManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn push_context(&mut self, context: Context) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub fn all_vars(&self) -> BTreeMap>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `make_readonly_func` is never used [INFO] [stdout] --> src/context.rs:475:12 [INFO] [stdout] | [INFO] [stdout] 438 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 475 | pub fn make_readonly_func(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `take_until_seen_twice` is never used [INFO] [stdout] --> src/lexer.rs:292:8 [INFO] [stdout] | [INFO] [stdout] 251 | impl<'input> Lexer<'input> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 292 | fn take_until_seen_twice(&mut self, start: usize, mut end: usize, mut terminate: F) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_if_function` is never used [INFO] [stdout] --> src/eval.rs:554:4 [INFO] [stdout] | [INFO] [stdout] 554 | fn check_if_function(cmd_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DOWAIT_WAITCMD` is never used [INFO] [stdout] --> src/jobs.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const DOWAIT_WAITCMD: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jobctl` is never read [INFO] [stdout] --> src/jobs.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct JobControl { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub jobctl: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `background_jobs`, `is_background_job`, `get_current_job`, and `clear_completed_jobs` are never used [INFO] [stdout] --> src/jobs.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl JobControl { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn background_jobs(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn is_background_job(&self, job_id: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn get_current_job(&self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn clear_completed_jobs(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Waiting` is never constructed [INFO] [stdout] --> src/jobs.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 263 | pub enum JobState { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 264 | Waiting, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JobState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sigint`, `waited`, and `used` are never read [INFO] [stdout] --> src/jobs.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 322 | pub struct Job { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 334 | pub sigint: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 335 | /// A boolean for if the job has been waited on. [INFO] [stdout] 336 | pub waited: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 337 | /// A boolean for if the job has been used. [INFO] [stdout] 338 | pub used: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Job` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `S_RESET` is never used [INFO] [stdout] --> src/trap.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const S_RESET: usize = 5; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_path` and `add_var` are never used [INFO] [stdout] --> src/var.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub trait VarDataUtils { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] 39 | fn update_path(&mut self, path: V); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 40 | fn add_var(&mut self, var: V, position: isize); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/var.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl VarData { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 55 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn get_current_context_pos(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn convert_env(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn path(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn check_levels(&mut self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn pop_var_stack(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn lookup_internal(&self, key: &str) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn lookup_var(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn lookup_command(&self, cmd: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/var.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct ImportantVars { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 285 | pub home: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 286 | pub pwd: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 287 | pub path: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 288 | pub history_location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 289 | pub ps1: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 290 | pub ps2: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 291 | pub ps4: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 292 | pub ppid: Pid, [INFO] [stdout] | ^^^^ [INFO] [stdout] 293 | pub pid: Pid, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantVars` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `make_into_vars`, `export_env_vars`, `set_path`, and `set_var` are never used [INFO] [stdout] --> src/var.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 296 | impl ImportantVars { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 297 | pub fn make_into_vars(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn export_env_vars(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn set_path(&mut self, path: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn set_var(&mut self, var: Var) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/shell.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | FORKED.store(state, std::sync::atomic::Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/shell.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | FORKED.load(std::sync::atomic::Ordering::Relaxed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/context.rs:374:13 [INFO] [stdout] | [INFO] [stdout] 374 | &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 374 | let _ = &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());}); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/context.rs:377:13 [INFO] [stdout] | [INFO] [stdout] 377 | &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 377 | let _ = &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());}); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/eval.rs:600:5 [INFO] [stdout] | [INFO] [stdout] 600 | parse_tree(&mut compound_list.0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 600 | let _ = parse_tree(&mut compound_list.0.0); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/eval.rs:26:48 [INFO] [stdout] | [INFO] [stdout] 26 | WaitStatus::from_raw(Pid::from_raw(-1),EXIT_STATUS.load(Ordering::Relaxed)).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/eval.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | EXIT_STATUS.store(status, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/eval.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | EXIT_STATUS.load(Ordering::Relaxed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/eval.rs:600:5 [INFO] [stdout] | [INFO] [stdout] 600 | parse_tree(&mut compound_list.0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 600 | let _ = parse_tree(&mut compound_list.0.0); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | BLOCK_SIGNALS.load(Ordering::Relaxed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | GOT_SIGCHLD.store(val, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | GOT_SIGCHLD.load(Ordering::Relaxed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | GOT_SIGCHLD.store(true, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | if !SUPRESS_SIGINT.load(Ordering::Relaxed) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | SIGINT_PENDING.store(true, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | SIGINT_PENDING.store(false, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/log.rs:7:2 [INFO] [stdout] | [INFO] [stdout] 7 | PRINT_OUT.store(value, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/log.rs:13:2 [INFO] [stdout] | [INFO] [stdout] 13 | PRINT_OUT.load(Ordering::Relaxed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | BLOCK_SIGNALS.load(Ordering::Relaxed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | GOT_SIGCHLD.store(val, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | GOT_SIGCHLD.load(Ordering::Relaxed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | GOT_SIGCHLD.store(true, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | if !SUPRESS_SIGINT.load(Ordering::Relaxed) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | SIGINT_PENDING.store(true, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/trap.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | SIGINT_PENDING.store(false, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/log.rs:7:2 [INFO] [stdout] | [INFO] [stdout] 7 | PRINT_OUT.store(value, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/log.rs:13:2 [INFO] [stdout] | [INFO] [stdout] 13 | PRINT_OUT.load(Ordering::Relaxed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.02s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: lalrpop v0.19.8 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "946f2d32238ba958f5f2df14088c68f6f91b94d1b79be2591ca59cc04ddbd476", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "946f2d32238ba958f5f2df14088c68f6f91b94d1b79be2591ca59cc04ddbd476", kill_on_drop: false }` [INFO] [stdout] 946f2d32238ba958f5f2df14088c68f6f91b94d1b79be2591ca59cc04ddbd476