[INFO] cloning repository https://github.com/IanS5/rush [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/IanS5/rush" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIanS5%2Frush", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIanS5%2Frush'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6a97536f28040d30cb896d74b5a7ab84bb1117dc [INFO] checking IanS5/rush/6a97536f28040d30cb896d74b5a7ab84bb1117dc against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIanS5%2Frush" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/IanS5/rush on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/IanS5/rush [INFO] finished tweaking git repo https://github.com/IanS5/rush [INFO] tweaked toml for git repo https://github.com/IanS5/rush written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/IanS5/rush 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdba602946f7c7389488a9da9ca739a190b531b228d361a6a904830db728da99 [INFO] running `Command { std: "docker" "start" "-a" "bdba602946f7c7389488a9da9ca739a190b531b228d361a6a904830db728da99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdba602946f7c7389488a9da9ca739a190b531b228d361a6a904830db728da99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdba602946f7c7389488a9da9ca739a190b531b228d361a6a904830db728da99", kill_on_drop: false }` [INFO] [stdout] bdba602946f7c7389488a9da9ca739a190b531b228d361a6a904830db728da99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a53b41e95b4bad12d5c90dddd0e7c811d0eeedef8b8dd908c4e21eea60f310e8 [INFO] running `Command { std: "docker" "start" "-a" "a53b41e95b4bad12d5c90dddd0e7c811d0eeedef8b8dd908c4e21eea60f310e8", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking libc v0.2.42 [INFO] [stderr] Checking cfg-if v0.1.5 [INFO] [stderr] Compiling cc v1.0.18 [INFO] [stderr] Compiling failure_derive v0.1.3 [INFO] [stderr] Checking rustc-demangle v0.1.8 [INFO] [stderr] Compiling memchr v2.1.0 [INFO] [stderr] Compiling nix v0.11.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking bitflags v1.0.3 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Compiling backtrace-sys v0.1.23 [INFO] [stderr] Checking nom v4.1.1 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling syn v0.15.21 [INFO] [stderr] Checking backtrace v0.3.9 [INFO] [stderr] Compiling synstructure v0.10.1 [INFO] [stderr] Checking failure v0.1.3 [INFO] [stderr] Checking nixterm v0.1.2 [INFO] [stderr] Checking rush v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rush` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/env/functions.rs [INFO] [stderr] * src/expr/parser.rs [INFO] [stderr] * src/lang/parser.rs [INFO] [stderr] * src/shell/mod.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/expr/parser.rs:14:20 [INFO] [stderr] | [INFO] [stderr] 14 | ($_self:ident, $working_tree:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lang/parser.rs:25:4 [INFO] [stderr] | [INFO] [stderr] 25 | ($i:expr_2021, $($args:tt)*) => ( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/env/functions.rs:49:62 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn entry<'a, T: Into>(&'a mut self, key: T) -> Entry { [INFO] [stderr] | -- lifetime `'a` declared here ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:10:1 [INFO] [stderr] | [INFO] [stderr] 10 | / /// eat any string of valid non-newline whitespace characters [INFO] [stderr] 11 | | /// Characters Recognized as Whitespace: [INFO] [stderr] 12 | | /// - \t (tab) [INFO] [stderr] 13 | | /// - \ (space) [INFO] [stderr] | |_---------------^ [INFO] [stderr] | | [INFO] [stderr] | rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | /// Line endings are whitespace that move the cursor to the next line [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:32:1 [INFO] [stderr] | [INFO] [stderr] 32 | / /// A conditional can join two commands, depending on the result of the prior command the second may not be executed [INFO] [stderr] 33 | | /// [INFO] [stderr] 34 | | /// Supported conditional operators [INFO] [stderr] 35 | | /// - && - proceed only if the last command was successful [INFO] [stderr] 36 | | /// - || - proceed only if the last command failed [INFO] [stderr] | |_-------------------------------------------------^ [INFO] [stderr] | | [INFO] [stderr] | rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:45:1 [INFO] [stderr] | [INFO] [stderr] 45 | / /// IO Operators can modify the modify the file descriptor table, close, open, read, and write to files. [INFO] [stderr] 46 | | /// [INFO] [stderr] 47 | | /// IO operations appear after a command, they are optionally proceeded by a file descriptor, and may be followed by several different ty... [INFO] [stderr] 48 | | /// [INFO] [stderr] ... | [INFO] [stderr] 57 | | /// - <& - Duplicate an input file descriptor (basically just the dup2 systemcall) [INFO] [stderr] 58 | | /// - <> - Open a file for reading an writing [INFO] [stderr] | |_--------------------------------------------^ [INFO] [stderr] | | [INFO] [stderr] | rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:74:1 [INFO] [stderr] | [INFO] [stderr] 74 | /// Pipes connect a command's standard out to another command's standard in [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:80:1 [INFO] [stderr] | [INFO] [stderr] 80 | / /// A separator splits WORDS into commands when they are on the same line [INFO] [stderr] 81 | | /// [INFO] [stderr] 82 | | /// For example `echo hello; echo hi` prints "hellohi" [INFO] [stderr] 83 | | /// while `echo hello echo hi` prints "hello echo hi" [INFO] [stderr] 84 | | /// Supported Separators [INFO] [stderr] 85 | | /// - ; Acts a newline [INFO] [stderr] 86 | | /// - & same as `;`, but asynchronously calls the previous command [INFO] [stderr] | |_-----------------------------------------------------------------^ [INFO] [stderr] | | [INFO] [stderr] | rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:95:1 [INFO] [stderr] | [INFO] [stderr] 95 | /// An io number is the file descriptor that comes before the an IO operator [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused variable: `environ` [INFO] [stderr] --> src/shell/mod.rs:87:32 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn readline(&mut self, environ: &mut lang::ExecutionContext) -> nixterm::Result { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environ` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 9 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/env/functions.rs:49:62 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn entry<'a, T: Into>(&'a mut self, key: T) -> Entry { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env/traps.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | static ref GLOBAL_TRAPS: RwLock = { RwLock::new(Traps::with_capacity(31)) }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 10 - static ref GLOBAL_TRAPS: RwLock = { RwLock::new(Traps::with_capacity(31)) }; [INFO] [stdout] 10 + static ref GLOBAL_TRAPS: RwLock = RwLock::new(Traps::with_capacity(31)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/expr/parser.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | ($_self:ident, $working_tree:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 14 | ($_self:ident, $working_tree:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / /// eat any string of valid non-newline whitespace characters [INFO] [stdout] 11 | | /// Characters Recognized as Whitespace: [INFO] [stdout] 12 | | /// - \t (tab) [INFO] [stdout] 13 | | /// - \ (space) [INFO] [stdout] | |_---------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | /// Line endings are whitespace that move the cursor to the next line [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / /// A conditional can join two commands, depending on the result of the prior command the second may not be executed [INFO] [stdout] 33 | | /// [INFO] [stdout] 34 | | /// Supported conditional operators [INFO] [stdout] 35 | | /// - && - proceed only if the last command was successful [INFO] [stdout] 36 | | /// - || - proceed only if the last command failed [INFO] [stdout] | |_-------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | / /// IO Operators can modify the modify the file descriptor table, close, open, read, and write to files. [INFO] [stdout] 46 | | /// [INFO] [stdout] 47 | | /// IO operations appear after a command, they are optionally proceeded by a file descriptor, and may be followed by several different ty... [INFO] [stdout] 48 | | /// [INFO] [stdout] ... | [INFO] [stdout] 57 | | /// - <& - Duplicate an input file descriptor (basically just the dup2 systemcall) [INFO] [stdout] 58 | | /// - <> - Open a file for reading an writing [INFO] [stdout] | |_--------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | /// Pipes connect a command's standard out to another command's standard in [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / /// A separator splits WORDS into commands when they are on the same line [INFO] [stdout] 81 | | /// [INFO] [stdout] 82 | | /// For example `echo hello; echo hi` prints "hellohi" [INFO] [stdout] 83 | | /// while `echo hello echo hi` prints "hello echo hi" [INFO] [stdout] 84 | | /// Supported Separators [INFO] [stdout] 85 | | /// - ; Acts a newline [INFO] [stdout] 86 | | /// - & same as `;`, but asynchronously calls the previous command [INFO] [stdout] | |_-----------------------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | /// An io number is the file descriptor that comes before the an IO operator [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lang/parser.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | ($i:expr, $($args:tt)*) => ( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 25 | ($i:expr_2021, $($args:tt)*) => ( [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lang::parser` [INFO] [stdout] --> src/shell/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lang::parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/shell/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `failure::core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/env/traps.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | .trim_left_matches("SIG") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 101 | .trim_start_matches("SIG") [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/env/variables.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | env::set_var(k, self.value(k)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 83 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 84 ~ unsafe { env::set_var(k, self.value(k)) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/jobs/spawn.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | env::set_var(key, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 315 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 316 ~ unsafe { env::set_var(key, value) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environ` [INFO] [stdout] --> src/shell/mod.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn readline(&mut self, environ: &mut lang::ExecutionContext) -> nixterm::Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environ` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lang/exec.rs:139:20 [INFO] [stdout] | [INFO] [stdout] 139 | if let Some(body) = ec.functions().value(&argv0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lang/exec.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 139 ~ match ec.functions().value(&argv0) { Some(body) => { [INFO] [stdout] 140 | self.spawn_procs_from_ast(opts, ec, &body) [INFO] [stdout] 141 ~ } _ => { [INFO] [stdout] 142 | let executable = if argv0.starts_with("./") { [INFO] [stdout] ... [INFO] [stdout] 164 | Ok(vec![self.add_job(pid)]) [INFO] [stdout] 165 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/shell/mod.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | / self.term [INFO] [stdout] 99 | | .writer() [INFO] [stdout] 100 | | .shift_cursor(xoffset - backtrack, 0) [INFO] [stdout] 101 | | .done(); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = self.term [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/shell/mod.rs:106:25 [INFO] [stdout] | [INFO] [stdout] 106 | / self.term [INFO] [stdout] 107 | | .writer() [INFO] [stdout] 108 | | .print(&self.command_buffer) [INFO] [stdout] 109 | | .print("exit") [INFO] [stdout] 110 | | .done(); [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] 106 | let _ = self.term [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/shell/mod.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | / self.term [INFO] [stdout] 116 | | .writer() [INFO] [stdout] 117 | | .print(&self.command_buffer) [INFO] [stdout] 118 | | .print("^C") [INFO] [stdout] 119 | | .done(); [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] 115 | let _ = self.term [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/shell/mod.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | self.term.update(self.old_settings.clone()); [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] 170 | let _ = self.term.update(self.old_settings.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rush` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/env/functions.rs [INFO] [stderr] * src/expr/parser.rs [INFO] [stderr] * src/lang/parser.rs [INFO] [stderr] * src/shell/mod.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/expr/parser.rs:14:20 [INFO] [stderr] | [INFO] [stderr] 14 | ($_self:ident, $working_tree:expr_2021) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lang/parser.rs:25:4 [INFO] [stderr] | [INFO] [stderr] 25 | ($i:expr_2021, $($args:tt)*) => ( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/env/functions.rs:49:62 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn entry<'a, T: Into>(&'a mut self, key: T) -> Entry { [INFO] [stderr] | -- lifetime `'a` declared here ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:10:1 [INFO] [stderr] | [INFO] [stderr] 10 | / /// eat any string of valid non-newline whitespace characters [INFO] [stderr] 11 | | /// Characters Recognized as Whitespace: [INFO] [stderr] 12 | | /// - \t (tab) [INFO] [stderr] 13 | | /// - \ (space) [INFO] [stderr] | |_---------------^ [INFO] [stderr] | | [INFO] [stderr] | rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | /// Line endings are whitespace that move the cursor to the next line [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:32:1 [INFO] [stderr] | [INFO] [stderr] 32 | / /// A conditional can join two commands, depending on the result of the prior command the second may not be executed [INFO] [stderr] 33 | | /// [INFO] [stderr] 34 | | /// Supported conditional operators [INFO] [stderr] 35 | | /// - && - proceed only if the last command was successful [INFO] [stderr] 36 | | /// - || - proceed only if the last command failed [INFO] [stderr] | |_-------------------------------------------------^ [INFO] [stderr] | | [INFO] [stderr] | rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:45:1 [INFO] [stderr] | [INFO] [stderr] 45 | / /// IO Operators can modify the modify the file descriptor table, close, open, read, and write to files. [INFO] [stderr] 46 | | /// [INFO] [stderr] 47 | | /// IO operations appear after a command, they are optionally proceeded by a file descriptor, and may be followed by several different ty... [INFO] [stderr] 48 | | /// [INFO] [stderr] ... | [INFO] [stderr] 57 | | /// - <& - Duplicate an input file descriptor (basically just the dup2 systemcall) [INFO] [stderr] 58 | | /// - <> - Open a file for reading an writing [INFO] [stderr] | |_--------------------------------------------^ [INFO] [stderr] | | [INFO] [stderr] | rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:74:1 [INFO] [stderr] | [INFO] [stderr] 74 | /// Pipes connect a command's standard out to another command's standard in [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/env/functions.rs:49:62 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn entry<'a, T: Into>(&'a mut self, key: T) -> Entry { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env/traps.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | static ref GLOBAL_TRAPS: RwLock = { RwLock::new(Traps::with_capacity(31)) }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 10 - static ref GLOBAL_TRAPS: RwLock = { RwLock::new(Traps::with_capacity(31)) }; [INFO] [stdout] 10 + static ref GLOBAL_TRAPS: RwLock = RwLock::new(Traps::with_capacity(31)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/expr/parser.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | ($_self:ident, $working_tree:expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 14 | ($_self:ident, $working_tree:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / /// eat any string of valid non-newline whitespace characters [INFO] [stdout] 11 | | /// Characters Recognized as Whitespace: [INFO] [stdout] 12 | | /// - \t (tab) [INFO] [stdout] 13 | | /// - \ (space) [INFO] [stdout] | |_---------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused doc comment [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | /// Line endings are whitespace that move the cursor to the next line [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/lang/parser.rs:80:1 [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / /// A conditional can join two commands, depending on the result of the prior command the second may not be executed [INFO] [stdout] 33 | | /// [INFO] [stdout] 34 | | /// Supported conditional operators [INFO] [stdout] 35 | | /// - && - proceed only if the last command was successful [INFO] [stdout] 36 | | /// - || - proceed only if the last command failed [INFO] [stdout] | |_-------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | / /// IO Operators can modify the modify the file descriptor table, close, open, read, and write to files. [INFO] [stdout] 46 | | /// [INFO] [stdout] 47 | | /// IO operations appear after a command, they are optionally proceeded by a file descriptor, and may be followed by several different ty... [INFO] [stdout] 48 | | /// [INFO] [stdout] ... | [INFO] [stdout] 57 | | /// - <& - Duplicate an input file descriptor (basically just the dup2 systemcall) [INFO] [stdout] 58 | | /// - <> - Open a file for reading an writing [INFO] [stdout] | |_--------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 80 | / /// A separator splits WORDS into commands when they are on the same line [INFO] [stderr] 81 | | /// [INFO] [stderr] 82 | | /// For example `echo hello; echo hi` prints "hellohi" [INFO] [stderr] 83 | | /// while `echo hello echo hi` prints "hello echo hi" [INFO] [stderr] 84 | | /// Supported Separators [INFO] [stderr] 85 | | /// - ; Acts a newline [INFO] [stderr] 86 | | /// - & same as `;`, but asynchronously calls the previous command [INFO] [stderr] | |_-----------------------------------------------------------------^ [INFO] [stderr] | | [INFO] [stderr] | rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/lang/parser.rs:95:1 [INFO] [stderr] | [INFO] [stderr] 95 | /// An io number is the file descriptor that comes before the an IO operator [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused variable: `environ` [INFO] [stderr] --> src/shell/mod.rs:87:32 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn readline(&mut self, environ: &mut lang::ExecutionContext) -> nixterm::Result { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environ` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | /// Pipes connect a command's standard out to another command's standard in [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: aborting due to 2 previous errors; 9 warnings emitted [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / /// A separator splits WORDS into commands when they are on the same line [INFO] [stdout] 81 | | /// [INFO] [stdout] 82 | | /// For example `echo hello; echo hi` prints "hellohi" [INFO] [stdout] 83 | | /// while `echo hello echo hi` prints "hello echo hi" [INFO] [stdout] 84 | | /// Supported Separators [INFO] [stdout] 85 | | /// - ; Acts a newline [INFO] [stdout] 86 | | /// - & same as `;`, but asynchronously calls the previous command [INFO] [stdout] | |_-----------------------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | /// An io number is the file descriptor that comes before the an IO operator [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lang/parser.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | ($i:expr, $($args:tt)*) => ( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 25 | ($i:expr_2021, $($args:tt)*) => ( [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Original diagnostics will follow. [INFO] [stdout] warning: unused import: `lang::parser` [INFO] [stdout] --> src/shell/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lang::parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/shell/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `failure::core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/env/traps.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | .trim_left_matches("SIG") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 101 | .trim_start_matches("SIG") [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/env/variables.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | env::set_var(k, self.value(k)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 83 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 84 ~ unsafe { env::set_var(k, self.value(k)) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/jobs/spawn.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | env::set_var(key, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 315 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 316 ~ unsafe { env::set_var(key, value) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/lang/exec.rs:504:9 [INFO] [stdout] | [INFO] [stdout] 504 | std::env::set_var("EXPAND_ENV_VARS_TEST", "helloworld"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 504 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 505 ~ unsafe { std::env::set_var("EXPAND_ENV_VARS_TEST", "helloworld") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environ` [INFO] [stdout] --> src/shell/mod.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn readline(&mut self, environ: &mut lang::ExecutionContext) -> nixterm::Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environ` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lang/exec.rs:139:20 [INFO] [stdout] | [INFO] [stdout] 139 | if let Some(body) = ec.functions().value(&argv0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lang/exec.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 139 ~ match ec.functions().value(&argv0) { Some(body) => { [INFO] [stdout] 140 | self.spawn_procs_from_ast(opts, ec, &body) [INFO] [stdout] 141 ~ } _ => { [INFO] [stdout] 142 | let executable = if argv0.starts_with("./") { [INFO] [stdout] ... [INFO] [stdout] 164 | Ok(vec![self.add_job(pid)]) [INFO] [stdout] 165 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/shell/mod.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | / self.term [INFO] [stdout] 99 | | .writer() [INFO] [stdout] 100 | | .shift_cursor(xoffset - backtrack, 0) [INFO] [stdout] 101 | | .done(); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = self.term [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/shell/mod.rs:106:25 [INFO] [stdout] | [INFO] [stdout] 106 | / self.term [INFO] [stdout] 107 | | .writer() [INFO] [stdout] 108 | | .print(&self.command_buffer) [INFO] [stdout] 109 | | .print("exit") [INFO] [stdout] 110 | | .done(); [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] 106 | let _ = self.term [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/shell/mod.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | / self.term [INFO] [stdout] 116 | | .writer() [INFO] [stdout] 117 | | .print(&self.command_buffer) [INFO] [stdout] 118 | | .print("^C") [INFO] [stdout] 119 | | .done(); [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] 115 | let _ = self.term [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/shell/mod.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | self.term.update(self.old_settings.clone()); [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] 170 | let _ = self.term.update(self.old_settings.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.54s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.1.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rush v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/env/functions.rs:49:62 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn entry<'a, T: Into>(&'a mut self, key: T) -> Entry { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env/traps.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | static ref GLOBAL_TRAPS: RwLock = { RwLock::new(Traps::with_capacity(31)) }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 10 - static ref GLOBAL_TRAPS: RwLock = { RwLock::new(Traps::with_capacity(31)) }; [INFO] [stdout] 10 + static ref GLOBAL_TRAPS: RwLock = RwLock::new(Traps::with_capacity(31)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/env/functions.rs:49:62 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn entry<'a, T: Into>(&'a mut self, key: T) -> Entry { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env/traps.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | static ref GLOBAL_TRAPS: RwLock = { RwLock::new(Traps::with_capacity(31)) }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 10 - static ref GLOBAL_TRAPS: RwLock = { RwLock::new(Traps::with_capacity(31)) }; [INFO] [stdout] 10 + static ref GLOBAL_TRAPS: RwLock = RwLock::new(Traps::with_capacity(31)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / /// eat any string of valid non-newline whitespace characters [INFO] [stdout] 11 | | /// Characters Recognized as Whitespace: [INFO] [stdout] 12 | | /// - \t (tab) [INFO] [stdout] 13 | | /// - \ (space) [INFO] [stdout] | |_---------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | /// Line endings are whitespace that move the cursor to the next line [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / /// A conditional can join two commands, depending on the result of the prior command the second may not be executed [INFO] [stdout] 33 | | /// [INFO] [stdout] 34 | | /// Supported conditional operators [INFO] [stdout] 35 | | /// - && - proceed only if the last command was successful [INFO] [stdout] 36 | | /// - || - proceed only if the last command failed [INFO] [stdout] | |_-------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | / /// IO Operators can modify the modify the file descriptor table, close, open, read, and write to files. [INFO] [stdout] 46 | | /// [INFO] [stdout] 47 | | /// IO operations appear after a command, they are optionally proceeded by a file descriptor, and may be followed by several different ty... [INFO] [stdout] 48 | | /// [INFO] [stdout] ... | [INFO] [stdout] 57 | | /// - <& - Duplicate an input file descriptor (basically just the dup2 systemcall) [INFO] [stdout] 58 | | /// - <> - Open a file for reading an writing [INFO] [stdout] | |_--------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | /// Pipes connect a command's standard out to another command's standard in [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / /// A separator splits WORDS into commands when they are on the same line [INFO] [stdout] 81 | | /// [INFO] [stdout] 82 | | /// For example `echo hello; echo hi` prints "hellohi" [INFO] [stdout] 83 | | /// while `echo hello echo hi` prints "hello echo hi" [INFO] [stdout] 84 | | /// Supported Separators [INFO] [stdout] 85 | | /// - ; Acts a newline [INFO] [stdout] 86 | | /// - & same as `;`, but asynchronously calls the previous command [INFO] [stdout] | |_-----------------------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | /// An io number is the file descriptor that comes before the an IO operator [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / /// eat any string of valid non-newline whitespace characters [INFO] [stdout] 11 | | /// Characters Recognized as Whitespace: [INFO] [stdout] 12 | | /// - \t (tab) [INFO] [stdout] 13 | | /// - \ (space) [INFO] [stdout] | |_---------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | /// Line endings are whitespace that move the cursor to the next line [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / /// A conditional can join two commands, depending on the result of the prior command the second may not be executed [INFO] [stdout] 33 | | /// [INFO] [stdout] 34 | | /// Supported conditional operators [INFO] [stdout] 35 | | /// - && - proceed only if the last command was successful [INFO] [stdout] 36 | | /// - || - proceed only if the last command failed [INFO] [stdout] | |_-------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | / /// IO Operators can modify the modify the file descriptor table, close, open, read, and write to files. [INFO] [stdout] 46 | | /// [INFO] [stdout] 47 | | /// IO operations appear after a command, they are optionally proceeded by a file descriptor, and may be followed by several different ty... [INFO] [stdout] 48 | | /// [INFO] [stdout] ... | [INFO] [stdout] 57 | | /// - <& - Duplicate an input file descriptor (basically just the dup2 systemcall) [INFO] [stdout] 58 | | /// - <> - Open a file for reading an writing [INFO] [stdout] | |_--------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | /// Pipes connect a command's standard out to another command's standard in [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / /// A separator splits WORDS into commands when they are on the same line [INFO] [stdout] 81 | | /// [INFO] [stdout] 82 | | /// For example `echo hello; echo hi` prints "hellohi" [INFO] [stdout] 83 | | /// while `echo hello echo hi` prints "hello echo hi" [INFO] [stdout] 84 | | /// Supported Separators [INFO] [stdout] 85 | | /// - ; Acts a newline [INFO] [stdout] 86 | | /// - & same as `;`, but asynchronously calls the previous command [INFO] [stdout] | |_-----------------------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lang/parser.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | /// An io number is the file descriptor that comes before the an IO operator [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lang::parser` [INFO] [stdout] --> src/shell/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lang::parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/shell/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lang::parser` [INFO] [stdout] --> src/shell/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lang::parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/shell/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `failure::core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/env/traps.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | .trim_left_matches("SIG") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 101 | .trim_start_matches("SIG") [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `failure::core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/env/traps.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | .trim_left_matches("SIG") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 101 | .trim_start_matches("SIG") [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/env/variables.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | env::set_var(k, self.value(k)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/env/variables.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | env::set_var(k, self.value(k)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/jobs/spawn.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | env::set_var(key, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/jobs/spawn.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | env::set_var(key, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environ` [INFO] [stdout] --> src/shell/mod.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn readline(&mut self, environ: &mut lang::ExecutionContext) -> nixterm::Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environ` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/lang/exec.rs:504:9 [INFO] [stdout] | [INFO] [stdout] 504 | std::env::set_var("EXPAND_ENV_VARS_TEST", "helloworld"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rush` (bin "rush") due to 3 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `environ` [INFO] [stdout] --> src/shell/mod.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn readline(&mut self, environ: &mut lang::ExecutionContext) -> nixterm::Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environ` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rush` (bin "rush" test) due to 4 previous errors; 13 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "a53b41e95b4bad12d5c90dddd0e7c811d0eeedef8b8dd908c4e21eea60f310e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a53b41e95b4bad12d5c90dddd0e7c811d0eeedef8b8dd908c4e21eea60f310e8", kill_on_drop: false }` [INFO] [stdout] a53b41e95b4bad12d5c90dddd0e7c811d0eeedef8b8dd908c4e21eea60f310e8