[INFO] cloning repository https://github.com/bretcope/mot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bretcope/mot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbretcope%2Fmot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbretcope%2Fmot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1300e501bdbe62b04720a54b213d55cec7d98464 [INFO] testing bretcope/mot against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbretcope%2Fmot" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bretcope/mot [INFO] finished tweaking git repo https://github.com/bretcope/mot [INFO] tweaked toml for git repo https://github.com/bretcope/mot written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bretcope/mot on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bretcope/mot already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unic-ucd-category v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76855fce3e37f85189eec7ab493defb8c947755e76fe3104603c798f9eb559ce [INFO] running `Command { std: "docker" "start" "-a" "76855fce3e37f85189eec7ab493defb8c947755e76fe3104603c798f9eb559ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76855fce3e37f85189eec7ab493defb8c947755e76fe3104603c798f9eb559ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76855fce3e37f85189eec7ab493defb8c947755e76fe3104603c798f9eb559ce", kill_on_drop: false }` [INFO] [stdout] 76855fce3e37f85189eec7ab493defb8c947755e76fe3104603c798f9eb559ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] abd90f70c7a8723abe7e9acda421fa7396a9768d40f09b8fd2b9d174bfc71fea [INFO] running `Command { std: "docker" "start" "-a" "abd90f70c7a8723abe7e9acda421fa7396a9768d40f09b8fd2b9d174bfc71fea", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling unic-char-range v0.9.0 [INFO] [stderr] Compiling unic-common v0.9.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling unic-ucd-version v0.9.0 [INFO] [stderr] Compiling unic-char-property v0.9.0 [INFO] [stderr] Compiling unic-ucd-category v0.9.0 [INFO] [stderr] Compiling dirs-sys v0.3.4 [INFO] [stderr] Compiling dirs v2.0.2 [INFO] [stderr] Compiling cli_mot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `RunMode` is never used [INFO] [stdout] --> src/main.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum RunMode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/parsing.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileContent` is never constructed [INFO] [stdout] --> src/parsing/content.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct FileContent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileContent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parsing/content.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl FileContent { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | pub fn load(filename: &str) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn filename(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn text(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn iter(&self, start: usize) -> ContentIterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn position_details(&self, byte_offset: usize) -> PositionDetails { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn reset_line_markers(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn mark_line(&self, position: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositionDetails` is never constructed [INFO] [stdout] --> src/parsing/content.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct PositionDetails<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContentIterator` is never constructed [INFO] [stdout] --> src/parsing/content.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct ContentIterator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContentIterator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_end_of_input`, `position`, and `current_char` are never used [INFO] [stdout] --> src/parsing/content.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 152 | impl<'a> ContentIterator<'a> { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] 153 | pub fn is_end_of_input(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn position(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn current_char(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParsingError` is never constructed [INFO] [stdout] --> src/parsing/error.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ParsingError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParsingError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `fmt_position_line` are never used [INFO] [stdout] --> src/parsing/error.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ParsingError { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 16 | pub fn new(position: &PositionDetails, message: String) -> ParsingError { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn fmt_position_line(details: &PositionDetails) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `LexerResult` is never used [INFO] [stdout] --> src/parsing/lexer.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type LexerResult<'a> = super::Result>>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/parsing/lexer.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Lexer<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parsing/lexer.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 18 | pub fn new(file_content: &content::FileContent) -> Lexer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn peek_type(&mut self) -> TokenType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn advance(&'a mut self) -> LexerResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn start_new_line(&mut self, line_start: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn reset_iterator(&mut self, position: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn next_char(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn position(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn current_char(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn char_at(&self, pos: usize) -> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn is_end_of_input(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn content_slice(&self, start: usize, end: usize) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn error(&self, pos: usize, message: String) -> super::error::ParsingError { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn err_result(&self, pos: usize, message: String) -> super::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn err_unexpected_char(&self) -> super::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn create_start_of_input(&self) -> LexerResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | fn new_token(&mut self, token_type: TokenType, value: Option) -> LexerResult<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn consume_trivia(&mut self) -> super::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn consume_comment(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | fn handle_new_line_sequence(&mut self) -> super::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn lex(&mut self) -> LexerResult<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | fn lex_literal_value(&mut self) -> LexerResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | fn lex_multiline_value(&mut self) -> LexerResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | fn lex_value(&mut self) -> LexerResult<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | fn lex_identifier(&mut self) -> LexerResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_identifier_char` is never used [INFO] [stdout] --> src/parsing/lexer.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn is_identifier_char(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_whitespace` is never used [INFO] [stdout] --> src/parsing/lexer.rs:376:4 [INFO] [stdout] | [INFO] [stdout] 376 | fn is_whitespace(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_new_line_char` is never used [INFO] [stdout] --> src/parsing/lexer.rs:400:4 [INFO] [stdout] | [INFO] [stdout] 400 | fn is_new_line_char(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TokenType` is never used [INFO] [stdout] --> src/parsing/tokens.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TokenType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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: struct `Token` is never constructed [INFO] [stdout] --> src/parsing/tokens.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Token<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `leading_trivia`, `trailing_trivia`, `text`, `value`, and `value_or_text` are never used [INFO] [stdout] --> src/parsing/tokens.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl<'a> Token<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 29 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn leading_trivia(&self) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn trailing_trivia(&self) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn text(&self) -> &'a str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn value(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn value_or_text(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/content.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn iter(&self, start: usize) -> ContentIterator { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 35 | pub fn iter(&self, start: usize) -> ContentIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/content.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn position_details(&self, byte_offset: usize) -> PositionDetails { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 46 | pub fn position_details(&self, byte_offset: usize) -> PositionDetails<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/lexer.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(file_content: &content::FileContent) -> Lexer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(file_content: &content::FileContent) -> Lexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/lexer.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn advance(&'a mut self) -> LexerResult { [INFO] [stdout] | ^^ ----------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 51 | pub fn advance(&'a mut self) -> LexerResult<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/lexer.rs:107:30 [INFO] [stdout] | [INFO] [stdout] 107 | fn create_start_of_input(&self) -> LexerResult { [INFO] [stdout] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 107 | fn create_start_of_input(&self) -> LexerResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parsing/lexer.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | self.consume_trivia(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 116 | let _ = self.consume_trivia(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parsing/lexer.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | self.handle_new_line_sequence(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 288 | let _ = self.handle_new_line_sequence(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/tokens.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | file_content: &FileContent, [INFO] [stdout] | ^^^^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 36 | value: Option) -> Token { [INFO] [stdout] | ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 36 | value: Option) -> Token<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.76s [INFO] running `Command { std: "docker" "inspect" "abd90f70c7a8723abe7e9acda421fa7396a9768d40f09b8fd2b9d174bfc71fea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abd90f70c7a8723abe7e9acda421fa7396a9768d40f09b8fd2b9d174bfc71fea", kill_on_drop: false }` [INFO] [stdout] abd90f70c7a8723abe7e9acda421fa7396a9768d40f09b8fd2b9d174bfc71fea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 2e11970564c28a821b60956be75267e5055f4063e25a6acad720706d6cc28255 [INFO] running `Command { std: "docker" "start" "-a" "2e11970564c28a821b60956be75267e5055f4063e25a6acad720706d6cc28255", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling cli_mot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `RunMode` is never used [INFO] [stdout] --> src/main.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum RunMode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/parsing.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileContent` is never constructed [INFO] [stdout] --> src/parsing/content.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct FileContent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileContent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parsing/content.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl FileContent { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | pub fn load(filename: &str) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn filename(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn text(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn iter(&self, start: usize) -> ContentIterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn position_details(&self, byte_offset: usize) -> PositionDetails { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn reset_line_markers(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn mark_line(&self, position: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositionDetails` is never constructed [INFO] [stdout] --> src/parsing/content.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct PositionDetails<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContentIterator` is never constructed [INFO] [stdout] --> src/parsing/content.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct ContentIterator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContentIterator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_end_of_input`, `position`, and `current_char` are never used [INFO] [stdout] --> src/parsing/content.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 152 | impl<'a> ContentIterator<'a> { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] 153 | pub fn is_end_of_input(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn position(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn current_char(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParsingError` is never constructed [INFO] [stdout] --> src/parsing/error.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ParsingError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParsingError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `fmt_position_line` are never used [INFO] [stdout] --> src/parsing/error.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ParsingError { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 16 | pub fn new(position: &PositionDetails, message: String) -> ParsingError { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn fmt_position_line(details: &PositionDetails) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `LexerResult` is never used [INFO] [stdout] --> src/parsing/lexer.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type LexerResult<'a> = super::Result>>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/parsing/lexer.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Lexer<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parsing/lexer.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 18 | pub fn new(file_content: &content::FileContent) -> Lexer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn peek_type(&mut self) -> TokenType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn advance(&'a mut self) -> LexerResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn start_new_line(&mut self, line_start: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn reset_iterator(&mut self, position: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn next_char(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn position(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn current_char(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn char_at(&self, pos: usize) -> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn is_end_of_input(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn content_slice(&self, start: usize, end: usize) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn error(&self, pos: usize, message: String) -> super::error::ParsingError { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn err_result(&self, pos: usize, message: String) -> super::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn err_unexpected_char(&self) -> super::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn create_start_of_input(&self) -> LexerResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | fn new_token(&mut self, token_type: TokenType, value: Option) -> LexerResult<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn consume_trivia(&mut self) -> super::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn consume_comment(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | fn handle_new_line_sequence(&mut self) -> super::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn lex(&mut self) -> LexerResult<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | fn lex_literal_value(&mut self) -> LexerResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | fn lex_multiline_value(&mut self) -> LexerResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | fn lex_value(&mut self) -> LexerResult<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | fn lex_identifier(&mut self) -> LexerResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_identifier_char` is never used [INFO] [stdout] --> src/parsing/lexer.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn is_identifier_char(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_whitespace` is never used [INFO] [stdout] --> src/parsing/lexer.rs:376:4 [INFO] [stdout] | [INFO] [stdout] 376 | fn is_whitespace(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_new_line_char` is never used [INFO] [stdout] --> src/parsing/lexer.rs:400:4 [INFO] [stdout] | [INFO] [stdout] 400 | fn is_new_line_char(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TokenType` is never used [INFO] [stdout] --> src/parsing/tokens.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TokenType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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: struct `Token` is never constructed [INFO] [stdout] --> src/parsing/tokens.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Token<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `leading_trivia`, `trailing_trivia`, `text`, `value`, and `value_or_text` are never used [INFO] [stdout] --> src/parsing/tokens.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl<'a> Token<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 29 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn leading_trivia(&self) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn trailing_trivia(&self) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn text(&self) -> &'a str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn value(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn value_or_text(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/content.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn iter(&self, start: usize) -> ContentIterator { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 35 | pub fn iter(&self, start: usize) -> ContentIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/content.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn position_details(&self, byte_offset: usize) -> PositionDetails { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 46 | pub fn position_details(&self, byte_offset: usize) -> PositionDetails<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/lexer.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(file_content: &content::FileContent) -> Lexer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(file_content: &content::FileContent) -> Lexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/lexer.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn advance(&'a mut self) -> LexerResult { [INFO] [stdout] | ^^ ----------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 51 | pub fn advance(&'a mut self) -> LexerResult<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/lexer.rs:107:30 [INFO] [stdout] | [INFO] [stdout] 107 | fn create_start_of_input(&self) -> LexerResult { [INFO] [stdout] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 107 | fn create_start_of_input(&self) -> LexerResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parsing/lexer.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | self.consume_trivia(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 116 | let _ = self.consume_trivia(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parsing/lexer.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | self.handle_new_line_sequence(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 288 | let _ = self.handle_new_line_sequence(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/parsing/tokens.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | file_content: &FileContent, [INFO] [stdout] | ^^^^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 36 | value: Option) -> Token { [INFO] [stdout] | ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 36 | value: Option) -> Token<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "2e11970564c28a821b60956be75267e5055f4063e25a6acad720706d6cc28255", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e11970564c28a821b60956be75267e5055f4063e25a6acad720706d6cc28255", kill_on_drop: false }` [INFO] [stdout] 2e11970564c28a821b60956be75267e5055f4063e25a6acad720706d6cc28255 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 5c21b0873fe6ddf0cfbb282dce4723d2e39ab5b5cd1d02bf0fbc4fa03be5e548 [INFO] running `Command { std: "docker" "start" "-a" "5c21b0873fe6ddf0cfbb282dce4723d2e39ab5b5cd1d02bf0fbc4fa03be5e548", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: enum `RunMode` is never used [INFO] [stderr] --> src/main.rs:10:6 [INFO] [stderr] | [INFO] [stderr] 10 | enum RunMode { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type alias `Result` is never used [INFO] [stderr] --> src/parsing.rs:6:6 [INFO] [stderr] | [INFO] [stderr] 6 | type Result = std::result::Result; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `FileContent` is never constructed [INFO] [stderr] --> src/parsing/content.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct FileContent { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FileContent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/parsing/content.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl FileContent { [INFO] [stderr] | ---------------- associated items in this implementation [INFO] [stderr] 15 | pub fn load(filename: &str) -> Result> { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | pub fn filename(&self) -> &str { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 31 | pub fn text(&self) -> &str { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 35 | pub fn iter(&self, start: usize) -> ContentIterator { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 46 | pub fn position_details(&self, byte_offset: usize) -> PositionDetails { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 104 | pub fn reset_line_markers(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 108 | pub fn mark_line(&self, position: usize) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PositionDetails` is never constructed [INFO] [stderr] --> src/parsing/content.rs:114:12 [INFO] [stderr] | [INFO] [stderr] 114 | pub struct PositionDetails<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PositionDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `ContentIterator` is never constructed [INFO] [stderr] --> src/parsing/content.rs:123:12 [INFO] [stderr] | [INFO] [stderr] 123 | pub struct ContentIterator<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ContentIterator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `is_end_of_input`, `position`, and `current_char` are never used [INFO] [stderr] --> src/parsing/content.rs:153:12 [INFO] [stderr] | [INFO] [stderr] 152 | impl<'a> ContentIterator<'a> { [INFO] [stderr] | ---------------------------- methods in this implementation [INFO] [stderr] 153 | pub fn is_end_of_input(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 157 | pub fn position(&self) -> usize { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 161 | pub fn current_char(&self) -> char { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ParsingError` is never constructed [INFO] [stderr] --> src/parsing/error.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct ParsingError { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ParsingError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated functions `new` and `fmt_position_line` are never used [INFO] [stderr] --> src/parsing/error.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl ParsingError { [INFO] [stderr] | ----------------- associated functions in this implementation [INFO] [stderr] 16 | pub fn new(position: &PositionDetails, message: String) -> ParsingError { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 31 | pub fn fmt_position_line(details: &PositionDetails) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `LexerResult` is never used [INFO] [stderr] --> src/parsing/lexer.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | pub type LexerResult<'a> = super::Result>>; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Lexer` is never constructed [INFO] [stderr] --> src/parsing/lexer.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct Lexer<'a> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/parsing/lexer.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl<'a> Lexer<'a> { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 18 | pub fn new(file_content: &content::FileContent) -> Lexer { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 36 | pub fn peek_type(&mut self) -> TokenType { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | pub fn advance(&'a mut self) -> LexerResult { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 59 | fn start_new_line(&mut self, line_start: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | fn reset_iterator(&mut self, position: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 70 | fn next_char(&mut self) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 74 | fn position(&self) -> usize { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 78 | fn current_char(&self) -> char { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 82 | fn char_at(&self, pos: usize) -> char { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 86 | fn is_end_of_input(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 90 | fn content_slice(&self, start: usize, end: usize) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 94 | fn error(&self, pos: usize, message: String) -> super::error::ParsingError { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | fn err_result(&self, pos: usize, message: String) -> super::Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | fn err_unexpected_char(&self) -> super::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | fn create_start_of_input(&self) -> LexerResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 111 | fn new_token(&mut self, token_type: TokenType, value: Option) -> LexerResult<'a> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 129 | fn consume_trivia(&mut self) -> super::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 168 | fn consume_comment(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 178 | fn handle_new_line_sequence(&mut self) -> super::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 197 | fn lex(&mut self) -> LexerResult<'a> { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 250 | fn lex_literal_value(&mut self) -> LexerResult<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 284 | fn lex_multiline_value(&mut self) -> LexerResult<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 295 | fn lex_value(&mut self) -> LexerResult<'a> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 330 | fn lex_identifier(&mut self) -> LexerResult<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_identifier_char` is never used [INFO] [stderr] --> src/parsing/lexer.rs:344:4 [INFO] [stderr] | [INFO] [stderr] 344 | fn is_identifier_char(ch: char) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_whitespace` is never used [INFO] [stderr] --> src/parsing/lexer.rs:376:4 [INFO] [stderr] | [INFO] [stderr] 376 | fn is_whitespace(ch: char) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_new_line_char` is never used [INFO] [stderr] --> src/parsing/lexer.rs:400:4 [INFO] [stderr] | [INFO] [stderr] 400 | fn is_new_line_char(ch: char) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `TokenType` is never used [INFO] [stderr] --> src/parsing/tokens.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | pub enum TokenType { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `Token` is never constructed [INFO] [stderr] --> src/parsing/tokens.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct Token<'a> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `leading_trivia`, `trailing_trivia`, `text`, `value`, and `value_or_text` are never used [INFO] [stderr] --> src/parsing/tokens.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 28 | impl<'a> Token<'a> { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 29 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | pub fn leading_trivia(&self) -> &'a str { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 67 | pub fn trailing_trivia(&self) -> &'a str { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | pub fn text(&self) -> &'a str { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 75 | pub fn value(&self) -> Option<&str> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 82 | pub fn value_or_text(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/parsing/content.rs:35:17 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn iter(&self, start: usize) -> ContentIterator { [INFO] [stderr] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 35 | pub fn iter(&self, start: usize) -> ContentIterator<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/parsing/content.rs:46:29 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn position_details(&self, byte_offset: usize) -> PositionDetails { [INFO] [stderr] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 46 | pub fn position_details(&self, byte_offset: usize) -> PositionDetails<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/parsing/lexer.rs:18:30 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn new(file_content: &content::FileContent) -> Lexer { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 18 | pub fn new(file_content: &content::FileContent) -> Lexer<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/parsing/lexer.rs:51:21 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn advance(&'a mut self) -> LexerResult { [INFO] [stderr] | ^^ ----------- the lifetime gets resolved as `'a` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 51 | pub fn advance(&'a mut self) -> LexerResult<'a> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/parsing/lexer.rs:107:30 [INFO] [stderr] | [INFO] [stderr] 107 | fn create_start_of_input(&self) -> LexerResult { [INFO] [stderr] | ^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 107 | fn create_start_of_input(&self) -> LexerResult<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/parsing/lexer.rs:116:9 [INFO] [stderr] | [INFO] [stderr] 116 | self.consume_trivia(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 116 | let _ = self.consume_trivia(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/parsing/lexer.rs:288:9 [INFO] [stderr] | [INFO] [stderr] 288 | self.handle_new_line_sequence(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 288 | let _ = self.handle_new_line_sequence(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/parsing/tokens.rs:31:23 [INFO] [stderr] | [INFO] [stderr] 31 | file_content: &FileContent, [INFO] [stderr] | ^^^^^^^^^^^^ this lifetime flows to the output [INFO] [stderr] ... [INFO] [stderr] 36 | value: Option) -> Token { [INFO] [stderr] | ----- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 36 | value: Option) -> Token<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `cli_mot` (bin "cli_mot" test) generated 26 warnings (run `cargo fix --bin "cli_mot" --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/cli_mot-ba9f68275a5208cc) [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" "5c21b0873fe6ddf0cfbb282dce4723d2e39ab5b5cd1d02bf0fbc4fa03be5e548", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c21b0873fe6ddf0cfbb282dce4723d2e39ab5b5cd1d02bf0fbc4fa03be5e548", kill_on_drop: false }` [INFO] [stdout] 5c21b0873fe6ddf0cfbb282dce4723d2e39ab5b5cd1d02bf0fbc4fa03be5e548