[INFO] fetching crate calm 0.1.0...
[INFO] testing calm-0.1.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7
[INFO] extracting crate calm 0.1.0 into /workspace/builds/worker-6-tc2/source
[INFO] started tweaking crates.io crate calm 0.1.0
[INFO] finished tweaking crates.io crate calm 0.1.0
[INFO] tweaked toml for crates.io crate calm 0.1.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate calm 0.1.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 128 packages to latest compatible versions
[INFO] [stderr]       Adding clap v2.34.0 (available: v4.5.51)
[INFO] [stderr]       Adding console v0.5.0 (available: v0.16.1)
[INFO] [stderr]       Adding crossbeam v0.2.12 (available: v0.8.4)
[INFO] [stderr]       Adding dotenv v0.10.1 (available: v0.15.0)
[INFO] [stderr]       Adding elementtree v0.5.0 (available: v1.2.3)
[INFO] [stderr]       Adding error-chain v0.10.0 (available: v0.12.4)
[INFO] [stderr]       Adding git2 v0.6.11 (available: v0.20.2)
[INFO] [stderr]       Adding glob v0.2.11 (available: v0.3.3)
[INFO] [stderr]       Adding if_chain v0.1.3 (available: v1.0.3)
[INFO] [stderr]       Adding indicatif v0.6.0 (available: v0.18.2)
[INFO] [stderr]       Adding lazy_static v0.2.11 (available: v1.5.0)
[INFO] [stderr]       Adding parking_lot v0.4.8 (available: v0.12.5)
[INFO] [stderr]       Adding regex v0.2.11 (available: v1.12.2)
[INFO] [stderr]       Adding serde_yaml v0.7.5 (available: v0.9.34+deprecated)
[INFO] [stderr]       Adding sha1 v0.2.0 (available: v0.10.6)
[INFO] [stderr]       Adding walkdir v1.0.7 (available: v2.5.0)
[INFO] [stderr]       Adding which v1.0.5 (available: v8.0.0)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d12da2c3d51ba37be6ca9b6aa67484b05756e6fead5447019e84c6fee21631e2
[INFO] running `Command { std: "docker" "start" "-a" "d12da2c3d51ba37be6ca9b6aa67484b05756e6fead5447019e84c6fee21631e2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d12da2c3d51ba37be6ca9b6aa67484b05756e6fead5447019e84c6fee21631e2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d12da2c3d51ba37be6ca9b6aa67484b05756e6fead5447019e84c6fee21631e2", kill_on_drop: false }`
[INFO] [stdout] d12da2c3d51ba37be6ca9b6aa67484b05756e6fead5447019e84c6fee21631e2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f944dc3d670b3989e02f5e0da7cf3002be5d194bda974c1465ed38c7bf770e16
[INFO] running `Command { std: "docker" "start" "-a" "f944dc3d670b3989e02f5e0da7cf3002be5d194bda974c1465ed38c7bf770e16", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling maybe-uninit v2.0.0
[INFO] [stderr]    Compiling tinyvec v1.10.0
[INFO] [stderr]    Compiling libz-sys v1.1.22
[INFO] [stderr]    Compiling libssh2-sys v0.2.23
[INFO] [stderr]    Compiling curl-sys v0.4.84+curl-8.17.0
[INFO] [stderr]    Compiling cmake v0.1.54
[INFO] [stderr]    Compiling matches v0.1.10
[INFO] [stderr]    Compiling siphasher v1.0.1
[INFO] [stderr]    Compiling unicode-bidi v0.3.18
[INFO] [stderr]    Compiling syn v0.11.11
[INFO] [stderr]    Compiling clicolors-control v1.0.1
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling unicode-width v0.2.2
[INFO] [stderr]    Compiling precomputed-hash v0.1.1
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling textwrap v0.11.0
[INFO] [stderr]    Compiling owning_ref v0.3.3
[INFO] [stderr]    Compiling termios v0.2.2
[INFO] [stderr]    Compiling phf_shared v0.13.1
[INFO] [stderr]    Compiling clicolors-control v0.3.2
[INFO] [stderr]    Compiling bitflags v0.9.1
[INFO] [stderr]    Compiling xml-rs v0.8.28
[INFO] [stderr]    Compiling same-file v0.1.3
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling smallvec v0.6.14
[INFO] [stderr]    Compiling console v0.16.1
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling clap v2.34.0
[INFO] [stderr]    Compiling walkdir v1.0.7
[INFO] [stderr]    Compiling unicode-normalization v0.1.25
[INFO] [stderr]    Compiling which v1.0.5
[INFO] [stderr]    Compiling sha1 v0.2.0
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling if_chain v0.1.3
[INFO] [stderr]    Compiling crossbeam v0.2.12
[INFO] [stderr]    Compiling glob v0.2.11
[INFO] [stderr]    Compiling libgit2-sys v0.6.19
[INFO] [stderr]    Compiling string_cache v0.9.0
[INFO] [stderr]    Compiling console v0.5.0
[INFO] [stderr]    Compiling parking_lot_core v0.2.14
[INFO] [stderr]    Compiling indicatif v0.6.0
[INFO] [stderr]    Compiling idna v0.1.5
[INFO] [stderr]    Compiling parking_lot v0.4.8
[INFO] [stderr]    Compiling elementtree v0.5.0
[INFO] [stderr]    Compiling url v1.7.2
[INFO] [stderr]    Compiling derive-error-chain v0.10.1
[INFO] [stderr]    Compiling dotenv v0.10.1
[INFO] [stderr]    Compiling git2 v0.6.11
[INFO] [stderr]    Compiling calm v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/errors.rs:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / error_chain! {
[INFO] [stdout] 11 | |     errors {
[INFO] [stdout] 12 | |         QuietExit(code: i32) {
[INFO] [stdout] 13 | |             description("calm quit")
[INFO] [stdout] ...  |
[INFO] [stdout] 25 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stdout]   --> src/report.rs:19:1
[INFO] [stdout]    |
[INFO] [stdout] 19 | / lazy_static! {
[INFO] [stdout] 20 | |     static ref IDENT_RE: Regex = Regex::new(
[INFO] [stdout] 21 | |         r#"(?x)
[INFO] [stdout] 22 | |             [\d\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}$_]
[INFO] [stdout] 23 | |             [\d\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Mn}\p{Mc}\p{Nd}\p{Pc}$_]*
[INFO] [stdout] 24 | |         "#).unwrap();
[INFO] [stdout] 25 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stdout]    --> src/utils/cmd.rs:220:5
[INFO] [stdout]     |
[INFO] [stdout] 220 | /     lazy_static! {
[INFO] [stdout] 221 | |         static ref VAR_RE: Regex = Regex::new(
[INFO] [stdout] 222 | |             r"\$(\$|[a-zA-Z0-9_]+|\([^)]+\)|\{[^}]+\})").unwrap();
[INFO] [stdout] 223 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stdout]   --> src/utils/serde.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | / lazy_static! {
[INFO] [stdout] 15 | |     static ref REGEX_RE: Regex = Regex::new(
[INFO] [stdout] 16 | |         r#"(?sm)^\s*/(.*)/([a-z]*)\s*$"#).unwrap();
[INFO] [stdout] 17 | |     static ref LINK_RE: Regex = Regex::new(
[INFO] [stdout] 18 | |         r#"^(.+?)(?:\s+->\s+(.+?))?$"#).unwrap();
[INFO] [stdout] 19 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stdout]   --> src/utils/serde.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | / lazy_static! {
[INFO] [stdout] 15 | |     static ref REGEX_RE: Regex = Regex::new(
[INFO] [stdout] 16 | |         r#"(?sm)^\s*/(.*)/([a-z]*)\s*$"#).unwrap();
[INFO] [stdout] 17 | |     static ref LINK_RE: Regex = Regex::new(
[INFO] [stdout] 18 | |         r#"^(.+?)(?:\s+->\s+(.+?))?$"#).unwrap();
[INFO] [stdout] 19 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stdout]   --> src/utils/hooks.rs:12:1
[INFO] [stdout]    |
[INFO] [stdout] 12 | / lazy_static! {
[INFO] [stdout] 13 | |     static ref HOOK_RE: Regex = Regex::new(
[INFO] [stdout] 14 | |         r#"(?m)^calm\s+hook\s+--exec-([\w-]+)\s+\|\|\s+exit\s+1\s*?\r?\n?"#).unwrap();
[INFO] [stdout] 15 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/tools.rs:24:23
[INFO] [stdout]    |
[INFO] [stdout] 24 |     runtimes: Vec<Box<Runtime<'a> + 'a>>,
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 24 |     runtimes: Vec<Box<dyn Runtime<'a> + 'a>>,
[INFO] [stdout]    |                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/utils/cmd.rs:32:31
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub on_stdout: Option<Box<FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub on_stdout: Option<Box<dyn FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stdout]    |                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/utils/cmd.rs:33:31
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub on_stderr: Option<Box<FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub on_stderr: Option<Box<dyn FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stdout]    |                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/utils/cmd.rs:48:48
[INFO] [stdout]    |
[INFO] [stdout] 48 |                           mut f: Option<&mut Box<FnMut(&str)
[INFO] [stdout]    |  ________________________________________________^
[INFO] [stdout] 49 | |                             -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stdout]    | |___________________________________________________________________________^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 48 |                         mut f: Option<&mut Box<dyn FnMut(&str)
[INFO] [stdout]    |                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/rt/common.rs:32:35
[INFO] [stdout]    |
[INFO] [stdout] 32 |     fn update_env(&self, _f: &mut FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 32 |     fn update_env(&self, _f: &mut dyn FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/rt/python.rs:64:34
[INFO] [stdout]    |
[INFO] [stdout] 64 |     fn update_env(&self, f: &mut FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 64 |     fn update_env(&self, f: &mut dyn FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/rt/js.rs:59:34
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn update_env(&self, f: &mut FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn update_env(&self, f: &mut dyn FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/ctx.rs:114:23
[INFO] [stdout]     |
[INFO] [stdout] 114 |         -> Result<Box<Runtime<'a> + 'a>>
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 114 |         -> Result<Box<dyn Runtime<'a> + 'a>>
[INFO] [stdout]     |                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]    --> src/cli.rs:173:25
[INFO] [stdout]     |
[INFO] [stdout] 173 |     let mut cause = err.cause();
[INFO] [stdout]     |                         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]    --> src/cli.rs:176:27
[INFO] [stdout]     |
[INFO] [stdout] 176 |         cause = the_cause.cause();
[INFO] [stdout]     |                           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/errors.rs:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / error_chain! {
[INFO] [stdout] 11 | |     errors {
[INFO] [stdout] 12 | |         QuietExit(code: i32) {
[INFO] [stdout] 13 | |             description("calm quit")
[INFO] [stdout] ...  |
[INFO] [stdout] 25 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
[INFO] [stdout]    --> src/report.rs:103:42
[INFO] [stdout]     |
[INFO] [stdout] 103 |                 let stripped_line = line.trim_left();
[INFO] [stdout]     |                                          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 103 -                 let stripped_line = line.trim_left();
[INFO] [stdout] 103 +                 let stripped_line = line.trim_start();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_right`: superseded by `trim_end`
[INFO] [stdout]    --> src/report.rs:111:57
[INFO] [stdout]     |
[INFO] [stdout] 111 |                 write!(f, "\n  {}", style(stripped_line.trim_right()).dim())?;
[INFO] [stdout]     |                                                         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 111 -                 write!(f, "\n  {}", style(stripped_line.trim_right()).dim())?;
[INFO] [stdout] 111 +                 write!(f, "\n  {}", style(stripped_line.trim_end()).dim())?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tools.rs:134:50
[INFO] [stdout]     |
[INFO] [stdout] 134 |             if let Some(report) = opts.and_then(|mut x| x.report.as_mut()) {
[INFO] [stdout]     |                                                  ----^
[INFO] [stdout]     |                                                  |
[INFO] [stdout]     |                                                  help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `patterns` and `run` are never read
[INFO] [stdout]    --> src/config.rs:105:5
[INFO] [stdout]     |
[INFO] [stdout] 104 | pub struct Rule {
[INFO] [stdout]     |            ---- fields in this struct
[INFO] [stdout] 105 |     patterns: Vec<String>,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 106 |     run: String,
[INFO] [stdout]     |     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Rule` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rules` is never read
[INFO] [stdout]    --> src/config.rs:114:5
[INFO] [stdout]     |
[INFO] [stdout] 110 | pub struct ConfigValues {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 114 |     rules: Vec<Rule>,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ConfigValues` 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: field `filename` is never read
[INFO] [stdout]    --> src/config.rs:119:5
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub struct Config {
[INFO] [stdout]     |            ------ field in this struct
[INFO] [stdout] 119 |     filename: PathBuf,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Config` 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 `config` and `type_name` are never used
[INFO] [stdout]   --> src/rt/common.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub trait Runtime<'a>: Debug + Sync {
[INFO] [stdout]    |           ------- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 15 |     fn config(&'a self) -> &'a RuntimeConfig;
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 18 |     fn type_name(&self) -> &str;
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/config.rs:285:23
[INFO] [stdout]     |
[INFO] [stdout] 285 |     pub fn iter_tools(&self) -> HashMapKeys<String, ToolSpec> {
[INFO] [stdout]     |                       ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                       |
[INFO] [stdout]     |                       the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 285 |     pub fn iter_tools(&self) -> HashMapKeys<'_, String, ToolSpec> {
[INFO] [stdout]     |                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/ctx.rs:181:17
[INFO] [stdout]     |
[INFO] [stdout] 181 |     pub fn lint(&self, files: Option<&[&Path]>) -> Result<Report> {
[INFO] [stdout]     |                 ^^^^^ the lifetime is elided here         ^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 181 |     pub fn lint(&self, files: Option<&[&Path]>) -> Result<Report<'_>> {
[INFO] [stdout]     |                                                                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement
[INFO] [stdout]   --> src/utils/hooks.rs:42:22
[INFO] [stdout]    |
[INFO] [stdout] 42 |             for m in HOOK_RE.captures(&contents) {
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]    |
[INFO] [stdout] 42 -             for m in HOOK_RE.captures(&contents) {
[INFO] [stdout] 42 +             while let Some(m) = HOOK_RE.captures(&contents) {
[INFO] [stdout]    |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]    |
[INFO] [stdout] 42 -             for m in HOOK_RE.captures(&contents) {
[INFO] [stdout] 42 +             if let Some(m) = HOOK_RE.captures(&contents) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.05s
[INFO] running `Command { std: "docker" "inspect" "f944dc3d670b3989e02f5e0da7cf3002be5d194bda974c1465ed38c7bf770e16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f944dc3d670b3989e02f5e0da7cf3002be5d194bda974c1465ed38c7bf770e16", kill_on_drop: false }`
[INFO] [stdout] f944dc3d670b3989e02f5e0da7cf3002be5d194bda974c1465ed38c7bf770e16
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ff236ac60c50c0ea3c2d8e1c76f50fdf4a4210ea0e21baec5084ddbe0ed2da8a
[INFO] running `Command { std: "docker" "start" "-a" "ff236ac60c50c0ea3c2d8e1c76f50fdf4a4210ea0e21baec5084ddbe0ed2da8a", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr]    Compiling calm v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/errors.rs:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / error_chain! {
[INFO] [stdout] 11 | |     errors {
[INFO] [stdout] 12 | |         QuietExit(code: i32) {
[INFO] [stdout] 13 | |             description("calm quit")
[INFO] [stdout] ...  |
[INFO] [stdout] 25 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stdout]   --> src/report.rs:19:1
[INFO] [stdout]    |
[INFO] [stdout] 19 | / lazy_static! {
[INFO] [stdout] 20 | |     static ref IDENT_RE: Regex = Regex::new(
[INFO] [stdout] 21 | |         r#"(?x)
[INFO] [stdout] 22 | |             [\d\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}$_]
[INFO] [stdout] 23 | |             [\d\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Mn}\p{Mc}\p{Nd}\p{Pc}$_]*
[INFO] [stdout] 24 | |         "#).unwrap();
[INFO] [stdout] 25 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stdout]    --> src/utils/cmd.rs:220:5
[INFO] [stdout]     |
[INFO] [stdout] 220 | /     lazy_static! {
[INFO] [stdout] 221 | |         static ref VAR_RE: Regex = Regex::new(
[INFO] [stdout] 222 | |             r"\$(\$|[a-zA-Z0-9_]+|\([^)]+\)|\{[^}]+\})").unwrap();
[INFO] [stdout] 223 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stdout]   --> src/utils/serde.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | / lazy_static! {
[INFO] [stdout] 15 | |     static ref REGEX_RE: Regex = Regex::new(
[INFO] [stdout] 16 | |         r#"(?sm)^\s*/(.*)/([a-z]*)\s*$"#).unwrap();
[INFO] [stdout] 17 | |     static ref LINK_RE: Regex = Regex::new(
[INFO] [stdout] 18 | |         r#"^(.+?)(?:\s+->\s+(.+?))?$"#).unwrap();
[INFO] [stdout] 19 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stdout]   --> src/utils/serde.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | / lazy_static! {
[INFO] [stdout] 15 | |     static ref REGEX_RE: Regex = Regex::new(
[INFO] [stdout] 16 | |         r#"(?sm)^\s*/(.*)/([a-z]*)\s*$"#).unwrap();
[INFO] [stdout] 17 | |     static ref LINK_RE: Regex = Regex::new(
[INFO] [stdout] 18 | |         r#"^(.+?)(?:\s+->\s+(.+?))?$"#).unwrap();
[INFO] [stdout] 19 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stdout]   --> src/utils/hooks.rs:12:1
[INFO] [stdout]    |
[INFO] [stdout] 12 | / lazy_static! {
[INFO] [stdout] 13 | |     static ref HOOK_RE: Regex = Regex::new(
[INFO] [stdout] 14 | |         r#"(?m)^calm\s+hook\s+--exec-([\w-]+)\s+\|\|\s+exit\s+1\s*?\r?\n?"#).unwrap();
[INFO] [stdout] 15 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/tools.rs:24:23
[INFO] [stdout]    |
[INFO] [stdout] 24 |     runtimes: Vec<Box<Runtime<'a> + 'a>>,
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 24 |     runtimes: Vec<Box<dyn Runtime<'a> + 'a>>,
[INFO] [stdout]    |                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/utils/cmd.rs:32:31
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub on_stdout: Option<Box<FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub on_stdout: Option<Box<dyn FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stdout]    |                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/utils/cmd.rs:33:31
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub on_stderr: Option<Box<FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub on_stderr: Option<Box<dyn FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stdout]    |                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/utils/cmd.rs:48:48
[INFO] [stdout]    |
[INFO] [stdout] 48 |                           mut f: Option<&mut Box<FnMut(&str)
[INFO] [stdout]    |  ________________________________________________^
[INFO] [stdout] 49 | |                             -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stdout]    | |___________________________________________________________________________^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 48 |                         mut f: Option<&mut Box<dyn FnMut(&str)
[INFO] [stdout]    |                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/rt/common.rs:32:35
[INFO] [stdout]    |
[INFO] [stdout] 32 |     fn update_env(&self, _f: &mut FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 32 |     fn update_env(&self, _f: &mut dyn FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/rt/python.rs:64:34
[INFO] [stdout]    |
[INFO] [stdout] 64 |     fn update_env(&self, f: &mut FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 64 |     fn update_env(&self, f: &mut dyn FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/rt/js.rs:59:34
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn update_env(&self, f: &mut FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn update_env(&self, f: &mut dyn FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stdout]    |                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/ctx.rs:114:23
[INFO] [stdout]     |
[INFO] [stdout] 114 |         -> Result<Box<Runtime<'a> + 'a>>
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 114 |         -> Result<Box<dyn Runtime<'a> + 'a>>
[INFO] [stdout]     |                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]    --> src/cli.rs:173:25
[INFO] [stdout]     |
[INFO] [stdout] 173 |     let mut cause = err.cause();
[INFO] [stdout]     |                         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]    --> src/cli.rs:176:27
[INFO] [stdout]     |
[INFO] [stdout] 176 |         cause = the_cause.cause();
[INFO] [stdout]     |                           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/errors.rs:10:1
[INFO] [stdout]    |
[INFO] [stdout] 10 | / error_chain! {
[INFO] [stdout] 11 | |     errors {
[INFO] [stdout] 12 | |         QuietExit(code: i32) {
[INFO] [stdout] 13 | |             description("calm quit")
[INFO] [stdout] ...  |
[INFO] [stdout] 25 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
[INFO] [stdout]    --> src/report.rs:103:42
[INFO] [stdout]     |
[INFO] [stdout] 103 |                 let stripped_line = line.trim_left();
[INFO] [stdout]     |                                          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 103 -                 let stripped_line = line.trim_left();
[INFO] [stdout] 103 +                 let stripped_line = line.trim_start();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_right`: superseded by `trim_end`
[INFO] [stdout]    --> src/report.rs:111:57
[INFO] [stdout]     |
[INFO] [stdout] 111 |                 write!(f, "\n  {}", style(stripped_line.trim_right()).dim())?;
[INFO] [stdout]     |                                                         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]     |
[INFO] [stdout] 111 -                 write!(f, "\n  {}", style(stripped_line.trim_right()).dim())?;
[INFO] [stdout] 111 +                 write!(f, "\n  {}", style(stripped_line.trim_end()).dim())?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tools.rs:134:50
[INFO] [stdout]     |
[INFO] [stdout] 134 |             if let Some(report) = opts.and_then(|mut x| x.report.as_mut()) {
[INFO] [stdout]     |                                                  ----^
[INFO] [stdout]     |                                                  |
[INFO] [stdout]     |                                                  help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `patterns` and `run` are never read
[INFO] [stdout]    --> src/config.rs:105:5
[INFO] [stdout]     |
[INFO] [stdout] 104 | pub struct Rule {
[INFO] [stdout]     |            ---- fields in this struct
[INFO] [stdout] 105 |     patterns: Vec<String>,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 106 |     run: String,
[INFO] [stdout]     |     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Rule` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rules` is never read
[INFO] [stdout]    --> src/config.rs:114:5
[INFO] [stdout]     |
[INFO] [stdout] 110 | pub struct ConfigValues {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 114 |     rules: Vec<Rule>,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ConfigValues` 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: field `filename` is never read
[INFO] [stdout]    --> src/config.rs:119:5
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub struct Config {
[INFO] [stdout]     |            ------ field in this struct
[INFO] [stdout] 119 |     filename: PathBuf,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Config` 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 `config` and `type_name` are never used
[INFO] [stdout]   --> src/rt/common.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub trait Runtime<'a>: Debug + Sync {
[INFO] [stdout]    |           ------- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 15 |     fn config(&'a self) -> &'a RuntimeConfig;
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 18 |     fn type_name(&self) -> &str;
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/config.rs:285:23
[INFO] [stdout]     |
[INFO] [stdout] 285 |     pub fn iter_tools(&self) -> HashMapKeys<String, ToolSpec> {
[INFO] [stdout]     |                       ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                       |
[INFO] [stdout]     |                       the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 285 |     pub fn iter_tools(&self) -> HashMapKeys<'_, String, ToolSpec> {
[INFO] [stdout]     |                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/ctx.rs:181:17
[INFO] [stdout]     |
[INFO] [stdout] 181 |     pub fn lint(&self, files: Option<&[&Path]>) -> Result<Report> {
[INFO] [stdout]     |                 ^^^^^ the lifetime is elided here         ^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 181 |     pub fn lint(&self, files: Option<&[&Path]>) -> Result<Report<'_>> {
[INFO] [stdout]     |                                                                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement
[INFO] [stdout]   --> src/utils/hooks.rs:42:22
[INFO] [stdout]    |
[INFO] [stdout] 42 |             for m in HOOK_RE.captures(&contents) {
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]    |
[INFO] [stdout] 42 -             for m in HOOK_RE.captures(&contents) {
[INFO] [stdout] 42 +             while let Some(m) = HOOK_RE.captures(&contents) {
[INFO] [stdout]    |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]    |
[INFO] [stdout] 42 -             for m in HOOK_RE.captures(&contents) {
[INFO] [stdout] 42 +             if let Some(m) = HOOK_RE.captures(&contents) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.41s
[INFO] running `Command { std: "docker" "inspect" "ff236ac60c50c0ea3c2d8e1c76f50fdf4a4210ea0e21baec5084ddbe0ed2da8a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ff236ac60c50c0ea3c2d8e1c76f50fdf4a4210ea0e21baec5084ddbe0ed2da8a", kill_on_drop: false }`
[INFO] [stdout] ff236ac60c50c0ea3c2d8e1c76f50fdf4a4210ea0e21baec5084ddbe0ed2da8a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] ed26b7407026a9347797952d656a6dc5b16a0e4403cdca04ce07408287b17e4a
[INFO] running `Command { std: "docker" "start" "-a" "ed26b7407026a9347797952d656a6dc5b16a0e4403cdca04ce07408287b17e4a", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stderr]   --> src/errors.rs:10:1
[INFO] [stderr]    |
[INFO] [stderr] 10 | / error_chain! {
[INFO] [stderr] 11 | |     errors {
[INFO] [stderr] 12 | |         QuietExit(code: i32) {
[INFO] [stderr] 13 | |             description("calm quit")
[INFO] [stderr] ...  |
[INFO] [stderr] 25 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stderr]   --> src/report.rs:19:1
[INFO] [stderr]    |
[INFO] [stderr] 19 | / lazy_static! {
[INFO] [stderr] 20 | |     static ref IDENT_RE: Regex = Regex::new(
[INFO] [stderr] 21 | |         r#"(?x)
[INFO] [stderr] 22 | |             [\d\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}$_]
[INFO] [stderr] 23 | |             [\d\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Mn}\p{Mc}\p{Nd}\p{Pc}$_]*
[INFO] [stderr] 24 | |         "#).unwrap();
[INFO] [stderr] 25 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stderr]    --> src/utils/cmd.rs:220:5
[INFO] [stderr]     |
[INFO] [stderr] 220 | /     lazy_static! {
[INFO] [stderr] 221 | |         static ref VAR_RE: Regex = Regex::new(
[INFO] [stderr] 222 | |             r"\$(\$|[a-zA-Z0-9_]+|\([^)]+\)|\{[^}]+\})").unwrap();
[INFO] [stderr] 223 | |     }
[INFO] [stderr]     | |_____^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stderr]   --> src/utils/serde.rs:14:1
[INFO] [stderr]    |
[INFO] [stderr] 14 | / lazy_static! {
[INFO] [stderr] 15 | |     static ref REGEX_RE: Regex = Regex::new(
[INFO] [stderr] 16 | |         r#"(?sm)^\s*/(.*)/([a-z]*)\s*$"#).unwrap();
[INFO] [stderr] 17 | |     static ref LINK_RE: Regex = Regex::new(
[INFO] [stderr] 18 | |         r#"^(.+?)(?:\s+->\s+(.+?))?$"#).unwrap();
[INFO] [stderr] 19 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred
[INFO] [stderr]   --> src/utils/hooks.rs:12:1
[INFO] [stderr]    |
[INFO] [stderr] 12 | / lazy_static! {
[INFO] [stderr] 13 | |     static ref HOOK_RE: Regex = Regex::new(
[INFO] [stderr] 14 | |         r#"(?m)^calm\s+hook\s+--exec-([\w-]+)\s+\|\|\s+exit\s+1\s*?\r?\n?"#).unwrap();
[INFO] [stderr] 15 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/tools.rs:24:23
[INFO] [stderr]    |
[INFO] [stderr] 24 |     runtimes: Vec<Box<Runtime<'a> + 'a>>,
[INFO] [stderr]    |                       ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 24 |     runtimes: Vec<Box<dyn Runtime<'a> + 'a>>,
[INFO] [stderr]    |                       +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/utils/cmd.rs:32:31
[INFO] [stderr]    |
[INFO] [stderr] 32 |     pub on_stdout: Option<Box<FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 32 |     pub on_stdout: Option<Box<dyn FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stderr]    |                               +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/utils/cmd.rs:33:31
[INFO] [stderr]    |
[INFO] [stderr] 33 |     pub on_stderr: Option<Box<FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 33 |     pub on_stderr: Option<Box<dyn FnMut(&str) -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stderr]    |                               +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/utils/cmd.rs:48:48
[INFO] [stderr]    |
[INFO] [stderr] 48 |                           mut f: Option<&mut Box<FnMut(&str)
[INFO] [stderr]    |  ________________________________________________^
[INFO] [stderr] 49 | |                             -> Result<Cow<'static, str>> + Send + Sync + 'a>>,
[INFO] [stderr]    | |___________________________________________________________________________^
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 48 |                         mut f: Option<&mut Box<dyn FnMut(&str)
[INFO] [stderr]    |                                                +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/rt/common.rs:32:35
[INFO] [stderr]    |
[INFO] [stderr] 32 |     fn update_env(&self, _f: &mut FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stderr]    |                                   ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 32 |     fn update_env(&self, _f: &mut dyn FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stderr]    |                                   +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/rt/python.rs:64:34
[INFO] [stderr]    |
[INFO] [stderr] 64 |     fn update_env(&self, f: &mut FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stderr]    |                                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 64 |     fn update_env(&self, f: &mut dyn FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stderr]    |                                  +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/rt/js.rs:59:34
[INFO] [stderr]    |
[INFO] [stderr] 59 |     fn update_env(&self, f: &mut FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stderr]    |                                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 59 |     fn update_env(&self, f: &mut dyn FnMut(&OsStr, &OsStr)) -> Result<()> {
[INFO] [stderr]    |                                  +++
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]    --> src/ctx.rs:114:23
[INFO] [stderr]     |
[INFO] [stderr] 114 |         -> Result<Box<Runtime<'a> + 'a>>
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]     |
[INFO] [stderr] 114 |         -> Result<Box<dyn Runtime<'a> + 'a>>
[INFO] [stderr]     |                       +++
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stderr]    --> src/cli.rs:173:25
[INFO] [stderr]     |
[INFO] [stderr] 173 |     let mut cause = err.cause();
[INFO] [stderr]     |                         ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stderr]    --> src/cli.rs:176:27
[INFO] [stderr]     |
[INFO] [stderr] 176 |         cause = the_cause.cause();
[INFO] [stderr]     |                           ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stderr]   --> src/errors.rs:10:1
[INFO] [stderr]    |
[INFO] [stderr] 10 | / error_chain! {
[INFO] [stderr] 11 | |     errors {
[INFO] [stderr] 12 | |         QuietExit(code: i32) {
[INFO] [stderr] 13 | |             description("calm quit")
[INFO] [stderr] ...  |
[INFO] [stderr] 25 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this warning originates in the macro `error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
[INFO] [stderr]    --> src/report.rs:103:42
[INFO] [stderr]     |
[INFO] [stderr] 103 |                 let stripped_line = line.trim_left();
[INFO] [stderr]     |                                          ^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr] help: replace the use of the deprecated method
[INFO] [stderr]     |
[INFO] [stderr] 103 -                 let stripped_line = line.trim_left();
[INFO] [stderr] 103 +                 let stripped_line = line.trim_start();
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `core::str::<impl str>::trim_right`: superseded by `trim_end`
[INFO] [stderr]    --> src/report.rs:111:57
[INFO] [stderr]     |
[INFO] [stderr] 111 |                 write!(f, "\n  {}", style(stripped_line.trim_right()).dim())?;
[INFO] [stderr]     |                                                         ^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr] help: replace the use of the deprecated method
[INFO] [stderr]     |
[INFO] [stderr] 111 -                 write!(f, "\n  {}", style(stripped_line.trim_right()).dim())?;
[INFO] [stderr] 111 +                 write!(f, "\n  {}", style(stripped_line.trim_end()).dim())?;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/tools.rs:134:50
[INFO] [stderr]     |
[INFO] [stderr] 134 |             if let Some(report) = opts.and_then(|mut x| x.report.as_mut()) {
[INFO] [stderr]     |                                                  ----^
[INFO] [stderr]     |                                                  |
[INFO] [stderr]     |                                                  help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: fields `patterns` and `run` are never read
[INFO] [stderr]    --> src/config.rs:105:5
[INFO] [stderr]     |
[INFO] [stderr] 104 | pub struct Rule {
[INFO] [stderr]     |            ---- fields in this struct
[INFO] [stderr] 105 |     patterns: Vec<String>,
[INFO] [stderr]     |     ^^^^^^^^
[INFO] [stderr] 106 |     run: String,
[INFO] [stderr]     |     ^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `Rule` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `rules` is never read
[INFO] [stderr]    --> src/config.rs:114:5
[INFO] [stderr]     |
[INFO] [stderr] 110 | pub struct ConfigValues {
[INFO] [stderr]     |            ------------ field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 114 |     rules: Vec<Rule>,
[INFO] [stderr]     |     ^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `ConfigValues` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `filename` is never read
[INFO] [stderr]    --> src/config.rs:119:5
[INFO] [stderr]     |
[INFO] [stderr] 118 | pub struct Config {
[INFO] [stderr]     |            ------ field in this struct
[INFO] [stderr] 119 |     filename: PathBuf,
[INFO] [stderr]     |     ^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: methods `config` and `type_name` are never used
[INFO] [stderr]   --> src/rt/common.rs:15:8
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub trait Runtime<'a>: Debug + Sync {
[INFO] [stderr]    |           ------- methods in this trait
[INFO] [stderr] ...
[INFO] [stderr] 15 |     fn config(&'a self) -> &'a RuntimeConfig;
[INFO] [stderr]    |        ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 18 |     fn type_name(&self) -> &str;
[INFO] [stderr]    |        ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stderr]    --> src/config.rs:285:23
[INFO] [stderr]     |
[INFO] [stderr] 285 |     pub fn iter_tools(&self) -> HashMapKeys<String, ToolSpec> {
[INFO] [stderr]     |                       ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stderr]     |                       |
[INFO] [stderr]     |                       the lifetime is elided here
[INFO] [stderr]     |
[INFO] [stderr]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stderr] help: use `'_` for type paths
[INFO] [stderr]     |
[INFO] [stderr] 285 |     pub fn iter_tools(&self) -> HashMapKeys<'_, String, ToolSpec> {
[INFO] [stderr]     |                                             +++
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stderr]    --> src/ctx.rs:181:17
[INFO] [stderr]     |
[INFO] [stderr] 181 |     pub fn lint(&self, files: Option<&[&Path]>) -> Result<Report> {
[INFO] [stderr]     |                 ^^^^^ the lifetime is elided here         ^^^^^^ the same lifetime is hidden here
[INFO] [stderr]     |
[INFO] [stderr]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr] help: use `'_` for type paths
[INFO] [stderr]     |
[INFO] [stderr] 181 |     pub fn lint(&self, files: Option<&[&Path]>) -> Result<Report<'_>> {
[INFO] [stderr]     |                                                                 ++++
[INFO] [stderr] 
[INFO] [stderr] warning: for loop over an `Option`. This is more readably written as an `if let` statement
[INFO] [stderr]   --> src/utils/hooks.rs:42:22
[INFO] [stderr]    |
[INFO] [stderr] 42 |             for m in HOOK_RE.captures(&contents) {
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stderr] help: to check pattern in a loop use `while let`
[INFO] [stderr]    |
[INFO] [stderr] 42 -             for m in HOOK_RE.captures(&contents) {
[INFO] [stderr] 42 +             while let Some(m) = HOOK_RE.captures(&contents) {
[INFO] [stderr]    |
[INFO] [stderr] help: consider using `if let` to clear intent
[INFO] [stderr]    |
[INFO] [stderr] 42 -             for m in HOOK_RE.captures(&contents) {
[INFO] [stderr] 42 +             if let Some(m) = HOOK_RE.captures(&contents) {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: `calm` (bin "calm" test) generated 27 warnings (1 duplicate) (run `cargo fix --bin "calm" -p calm --tests` to apply 13 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/calm-f21c5b733994d05c)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "ed26b7407026a9347797952d656a6dc5b16a0e4403cdca04ce07408287b17e4a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ed26b7407026a9347797952d656a6dc5b16a0e4403cdca04ce07408287b17e4a", kill_on_drop: false }`
[INFO] [stdout] ed26b7407026a9347797952d656a6dc5b16a0e4403cdca04ce07408287b17e4a
