[INFO] fetching crate commands 0.0.5... [INFO] testing commands-0.0.5 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate commands 0.0.5 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate commands 0.0.5 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate commands 0.0.5 [INFO] tweaked toml for crates.io crate commands 0.0.5 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate commands 0.0.5 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 17 packages to latest compatible versions [INFO] [stderr] Adding linefeed v0.2.6 (available: v0.6.0) [INFO] [stderr] Adding rustyline v1.0.0 (available: v17.0.2) [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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 6bfcab59cc86ff459b4c4ce255ecf9f3551bd11b7a497561f09c8b26791a047f [INFO] running `Command { std: "docker" "start" "-a" "6bfcab59cc86ff459b4c4ce255ecf9f3551bd11b7a497561f09c8b26791a047f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bfcab59cc86ff459b4c4ce255ecf9f3551bd11b7a497561f09c8b26791a047f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bfcab59cc86ff459b4c4ce255ecf9f3551bd11b7a497561f09c8b26791a047f", kill_on_drop: false }` [INFO] [stdout] 6bfcab59cc86ff459b4c4ce255ecf9f3551bd11b7a497561f09c8b26791a047f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 87d4bc54719a26f81f617023d95234efb9459b579bd16c053d6d46032b3659a0 [INFO] running `Command { std: "docker" "start" "-a" "87d4bc54719a26f81f617023d95234efb9459b579bd16c053d6d46032b3659a0", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling commands v0.0.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/parser/mod.rs:270:36 [INFO] [stdout] | [INFO] [stdout] 270 | TokenType::Word => try!(self.advance(token)), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/command_table.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | pub command: Rc, [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 [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] 23 | pub command: Rc, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser/mod.rs:367:14 [INFO] [stdout] | [INFO] [stdout] 367 | self.description().fmt(f) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser/mod.rs:391:14 [INFO] [stdout] | [INFO] [stdout] 391 | self.description().fmt(f) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/tokenizer.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | self.description().fmt(f) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/parser/mod.rs:231:21 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn complete(&self, token: Option>) -> Vec { [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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 231 | pub fn complete(&self, token: Option>) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/tokenizer.rs:188:86 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn new(text: &'text str, token_type: TokenType, location: SourceLocation) -> Token { [INFO] [stdout] | ----- the lifetime is named 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: consistently use `'text` [INFO] [stdout] | [INFO] [stdout] 188 | pub fn new(text: &'text str, token_type: TokenType, location: SourceLocation) -> Token<'text> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/tokenizer.rs:220:33 [INFO] [stdout] | [INFO] [stdout] 220 | fn new(text: &'text str) -> Tokenizer { [INFO] [stdout] | ----- ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'text` [INFO] [stdout] | [INFO] [stdout] 220 | fn new(text: &'text str) -> Tokenizer<'text> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tokenizer.rs:387:23 [INFO] [stdout] | [INFO] [stdout] 387 | pub fn tokenize(text: &str) -> Result, TokenizerError> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 387 | pub fn tokenize(text: &str) -> Result>, TokenizerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "87d4bc54719a26f81f617023d95234efb9459b579bd16c053d6d46032b3659a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87d4bc54719a26f81f617023d95234efb9459b579bd16c053d6d46032b3659a0", kill_on_drop: false }` [INFO] [stdout] 87d4bc54719a26f81f617023d95234efb9459b579bd16c053d6d46032b3659a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] ec266c7ef611f17692e7fb3e25e72f612142030b0d0b35696360bf75f2b9369c [INFO] running `Command { std: "docker" "start" "-a" "ec266c7ef611f17692e7fb3e25e72f612142030b0d0b35696360bf75f2b9369c", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling bitflags v0.4.0 [INFO] [stderr] Compiling encode_unicode v0.1.3 [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/parser/mod.rs:270:36 [INFO] [stdout] | [INFO] [stdout] 270 | TokenType::Word => try!(self.advance(token)), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/command_table.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | pub command: Rc, [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 [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] 23 | pub command: Rc, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser/mod.rs:367:14 [INFO] [stdout] | [INFO] [stdout] 367 | self.description().fmt(f) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser/mod.rs:391:14 [INFO] [stdout] | [INFO] [stdout] 391 | self.description().fmt(f) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/tokenizer.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | self.description().fmt(f) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/parser/mod.rs:231:21 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn complete(&self, token: Option>) -> Vec { [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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 231 | pub fn complete(&self, token: Option>) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/tokenizer.rs:188:86 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn new(text: &'text str, token_type: TokenType, location: SourceLocation) -> Token { [INFO] [stdout] | ----- the lifetime is named 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: consistently use `'text` [INFO] [stdout] | [INFO] [stdout] 188 | pub fn new(text: &'text str, token_type: TokenType, location: SourceLocation) -> Token<'text> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/tokenizer.rs:220:33 [INFO] [stdout] | [INFO] [stdout] 220 | fn new(text: &'text str) -> Tokenizer { [INFO] [stdout] | ----- ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'text` [INFO] [stdout] | [INFO] [stdout] 220 | fn new(text: &'text str) -> Tokenizer<'text> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tokenizer.rs:387:23 [INFO] [stdout] | [INFO] [stdout] 387 | pub fn tokenize(text: &str) -> Result, TokenizerError> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 387 | pub fn tokenize(text: &str) -> Result>, TokenizerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nix v0.5.1 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling nix v0.7.0 [INFO] [stderr] Compiling rustyline v1.0.0 [INFO] [stderr] Compiling linefeed v0.2.6 [INFO] [stderr] Compiling commands v0.0.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/parser/mod.rs:270:36 [INFO] [stdout] | [INFO] [stdout] 270 | TokenType::Word => try!(self.advance(token)), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/command_table.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | pub command: Rc, [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 [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] 23 | pub command: Rc, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser/mod.rs:367:14 [INFO] [stdout] | [INFO] [stdout] 367 | self.description().fmt(f) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser/mod.rs:391:14 [INFO] [stdout] | [INFO] [stdout] 391 | self.description().fmt(f) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/tokenizer.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | self.description().fmt(f) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/parser/mod.rs:231:21 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn complete(&self, token: Option>) -> Vec { [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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 231 | pub fn complete(&self, token: Option>) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/tokenizer.rs:188:86 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn new(text: &'text str, token_type: TokenType, location: SourceLocation) -> Token { [INFO] [stdout] | ----- the lifetime is named 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: consistently use `'text` [INFO] [stdout] | [INFO] [stdout] 188 | pub fn new(text: &'text str, token_type: TokenType, location: SourceLocation) -> Token<'text> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/tokenizer.rs:220:33 [INFO] [stdout] | [INFO] [stdout] 220 | fn new(text: &'text str) -> Tokenizer { [INFO] [stdout] | ----- ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'text` [INFO] [stdout] | [INFO] [stdout] 220 | fn new(text: &'text str) -> Tokenizer<'text> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tokenizer.rs:387:23 [INFO] [stdout] | [INFO] [stdout] 387 | pub fn tokenize(text: &str) -> Result, TokenizerError> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 387 | pub fn tokenize(text: &str) -> Result>, TokenizerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tokenizer.rs:399:23 [INFO] [stdout] | [INFO] [stdout] 399 | fn mk_token(text: &str, token_type: TokenType, start: usize, end: usize) -> Token { [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] 399 | fn mk_token(text: &str, token_type: TokenType, start: usize, end: usize) -> Token<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.54s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.4.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "ec266c7ef611f17692e7fb3e25e72f612142030b0d0b35696360bf75f2b9369c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec266c7ef611f17692e7fb3e25e72f612142030b0d0b35696360bf75f2b9369c", kill_on_drop: false }` [INFO] [stdout] ec266c7ef611f17692e7fb3e25e72f612142030b0d0b35696360bf75f2b9369c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] a3f2fed3ff0452a186401788d9a56ff6669a1ad9bfe49b02da326e3f73049303 [INFO] running `Command { std: "docker" "start" "-a" "a3f2fed3ff0452a186401788d9a56ff6669a1ad9bfe49b02da326e3f73049303", 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 macro `try`: use the `?` operator instead [INFO] [stderr] --> src/parser/mod.rs:270:36 [INFO] [stderr] | [INFO] [stderr] 270 | TokenType::Word => try!(self.advance(token)), [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/command_table.rs:23:21 [INFO] [stderr] | [INFO] [stderr] 23 | pub command: Rc, [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 [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] 23 | pub command: Rc, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/parser/mod.rs:367:14 [INFO] [stderr] | [INFO] [stderr] 367 | self.description().fmt(f) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/parser/mod.rs:391:14 [INFO] [stderr] | [INFO] [stderr] 391 | self.description().fmt(f) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/tokenizer.rs:157:14 [INFO] [stderr] | [INFO] [stderr] 157 | self.description().fmt(f) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/parser/mod.rs:231:21 [INFO] [stderr] | [INFO] [stderr] 231 | pub fn complete(&self, token: Option>) -> Vec { [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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 231 | pub fn complete(&self, token: Option>) -> Vec> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/tokenizer.rs:188:86 [INFO] [stderr] | [INFO] [stderr] 188 | pub fn new(text: &'text str, token_type: TokenType, location: SourceLocation) -> Token { [INFO] [stderr] | ----- the lifetime is named 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: consistently use `'text` [INFO] [stderr] | [INFO] [stderr] 188 | pub fn new(text: &'text str, token_type: TokenType, location: SourceLocation) -> Token<'text> { [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/tokenizer.rs:220:33 [INFO] [stderr] | [INFO] [stderr] 220 | fn new(text: &'text str) -> Tokenizer { [INFO] [stderr] | ----- ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: consistently use `'text` [INFO] [stderr] | [INFO] [stderr] 220 | fn new(text: &'text str) -> Tokenizer<'text> { [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tokenizer.rs:387:23 [INFO] [stderr] | [INFO] [stderr] 387 | pub fn tokenize(text: &str) -> Result, TokenizerError> { [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] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 387 | pub fn tokenize(text: &str) -> Result>, TokenizerError> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `commands` (lib) generated 9 warnings (run `cargo fix --lib -p commands` to apply 5 suggestions) [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tokenizer.rs:399:23 [INFO] [stderr] | [INFO] [stderr] 399 | fn mk_token(text: &str, token_type: TokenType, start: usize, end: usize) -> Token { [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] 399 | fn mk_token(text: &str, token_type: TokenType, start: usize, end: usize) -> Token<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `commands` (lib test) generated 10 warnings (9 duplicates) (run `cargo fix --lib -p commands --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.4.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/commands-68f648aba3ea5a68) [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test tokenizer::test::double_quoted_text ... ok [INFO] [stdout] test tokenizer::test::escaped_whitespace_in_word ... ok [INFO] [stdout] test tokenizer::test::empty_test ... ok [INFO] [stdout] test tokenizer::test::character_not_allowed_here ... ok [INFO] [stdout] test tokenizer::test::multiple_words ... ok [INFO] [stdout] test tokenizer::test::single_word ... ok [INFO] [stdout] test util::test::empty_lcp ... ok [INFO] [stdout] test util::test::no_lcp ... ok [INFO] [stdout] test util::test::single_lcp ... ok [INFO] [stdout] test util::test::valid_is_shortest_lcp ... ok [INFO] [stdout] test util::test::valid_lcp ... ok [INFO] [stdout] test tokenizer::test::single_quoted_text ... ok [INFO] [stdout] test parser::test::verify_signals_no_command - should panic ... ok [INFO] [stdout] test tokenizer::test::escaped_double_quote_at_end_of_input - should panic ... ok [INFO] [stdout] test tokenizer::test::escaping_backslash_at_end_of_input - should panic ... ok [INFO] [stdout] test tokenizer::test::unclosed_double_quote_at_end_of_input - should panic ... ok [INFO] [stdout] test parser::test::parse_signals_ambiguous_match - should panic ... ok [INFO] [stdout] test parser::test::parse_signals_no_matches - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] Doc-tests commands [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/tokenizer.rs - tokenizer (line 23) ... ok [INFO] [stdout] test src/util.rs - util::longest_common_prefix (line 16) ... ok [INFO] [stdout] test src/parser/mod.rs - parser::Parser<'text>::parse (line 253) ... ok [INFO] [stdout] test src/parser/mod.rs - parser::Parser (line 141) ... ok [INFO] [stdout] test src/parser/mod.rs - parser (line 79) ... ok [INFO] [stdout] test src/parser/mod.rs - parser (line 89) ... ok [INFO] [stdout] test src/parser/mod.rs - parser::Parser<'text>::complete (line 195) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.46s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a3f2fed3ff0452a186401788d9a56ff6669a1ad9bfe49b02da326e3f73049303", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3f2fed3ff0452a186401788d9a56ff6669a1ad9bfe49b02da326e3f73049303", kill_on_drop: false }` [INFO] [stdout] a3f2fed3ff0452a186401788d9a56ff6669a1ad9bfe49b02da326e3f73049303