[INFO] fetching crate parse-js 0.24.1... [INFO] testing parse-js-0.24.1 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate parse-js 0.24.1 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate parse-js 0.24.1 [INFO] finished tweaking crates.io crate parse-js 0.24.1 [INFO] tweaked toml for crates.io crate parse-js 0.24.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate parse-js 0.24.1 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 25 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ahash v0.8.12 [INFO] [stderr] Downloaded zerocopy-derive v0.8.27 [INFO] [stderr] Downloaded zerocopy v0.8.27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eaf6bf97d798bb284c2e608f9b5a4f2cba2e10c649578118e5bd033c79a7841b [INFO] running `Command { std: "docker" "start" "-a" "eaf6bf97d798bb284c2e608f9b5a4f2cba2e10c649578118e5bd033c79a7841b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eaf6bf97d798bb284c2e608f9b5a4f2cba2e10c649578118e5bd033c79a7841b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaf6bf97d798bb284c2e608f9b5a4f2cba2e10c649578118e5bd033c79a7841b", kill_on_drop: false }` [INFO] [stdout] eaf6bf97d798bb284c2e608f9b5a4f2cba2e10c649578118e5bd033c79a7841b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1638cb0d69a2bd26f294838c4d8cbbe4a1fda6c8002a5fa3417d1378d7477824 [INFO] running `Command { std: "docker" "start" "-a" "1638cb0d69a2bd26f294838c4d8cbbe4a1fda6c8002a5fa3417d1378d7477824", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling parse-js v0.24.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/expr.rs:248:36 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn parse_jsx_name(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/expr.rs:264:40 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn parse_jsx_tag_name(&mut self, ctx: ParseCtx) -> SyntaxResult> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/literal.rs:140:56 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn parse_and_normalise_literal_string(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direct_key_name` [INFO] [stdout] --> src/parse/pattern.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | let direct_key_name = match &key { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direct_key_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/stmt.rs:23:45 [INFO] [stdout] | [INFO] [stdout] 23 | fn parse_import_or_export_name(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/stmt.rs:102:38 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn parse_stmt_empty(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/stmt.rs:151:41 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn parse_stmt_debugger(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | fn on_syntax_down(&mut self, node: &Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctl` [INFO] [stdout] --> src/visit.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | fn on_syntax_down(&mut self, node: &Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | fn on_syntax_up(&mut self, node: &Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:473:32 [INFO] [stdout] | [INFO] [stdout] 473 | fn on_syntax_down(&mut self, node: &mut Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctl` [INFO] [stdout] --> src/visit.rs:473:49 [INFO] [stdout] | [INFO] [stdout] 473 | fn on_syntax_down(&mut self, node: &mut Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:475:30 [INFO] [stdout] | [INFO] [stdout] 475 | fn on_syntax_up(&mut self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `through_char` and `while_not_char` are never used [INFO] [stdout] --> src/lex/mod.rs:152:6 [INFO] [stdout] | [INFO] [stdout] 77 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn through_char(&self, c: u8) -> SyntaxResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn while_not_char(&self, a: u8) -> Match { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/lex/tests/mod.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn check(code: &str, expecteds: &[TokenType], expected_err: Option) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/num.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | unsafe { mem::transmute::(self.0) }.hash(state); [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `MaybeToken` that must be used [INFO] [stdout] --> src/parse/class_or_object.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 45 | let _ = self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `MaybeToken` that must be used [INFO] [stdout] --> src/parse/stmt.rs:582:5 [INFO] [stdout] | [INFO] [stdout] 582 | self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 582 | let _ = self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/visit.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | for name in names { [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] 273 - for name in names { [INFO] [stdout] 273 + while let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 273 - for name in names { [INFO] [stdout] 273 + if let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/visit.rs:730:21 [INFO] [stdout] | [INFO] [stdout] 730 | for name in names { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 730 - for name in names { [INFO] [stdout] 730 + while let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 730 - for name in names { [INFO] [stdout] 730 + if let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.15s [INFO] running `Command { std: "docker" "inspect" "1638cb0d69a2bd26f294838c4d8cbbe4a1fda6c8002a5fa3417d1378d7477824", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1638cb0d69a2bd26f294838c4d8cbbe4a1fda6c8002a5fa3417d1378d7477824", kill_on_drop: false }` [INFO] [stdout] 1638cb0d69a2bd26f294838c4d8cbbe4a1fda6c8002a5fa3417d1378d7477824 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a67dcfc809e05fad63403bab5e38a9b1343908299fe0caf217d0c7178cc856b1 [INFO] running `Command { std: "docker" "start" "-a" "a67dcfc809e05fad63403bab5e38a9b1343908299fe0caf217d0c7178cc856b1", kill_on_drop: false }` [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/expr.rs:248:36 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn parse_jsx_name(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/expr.rs:264:40 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn parse_jsx_tag_name(&mut self, ctx: ParseCtx) -> SyntaxResult> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/literal.rs:140:56 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn parse_and_normalise_literal_string(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direct_key_name` [INFO] [stdout] --> src/parse/pattern.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | let direct_key_name = match &key { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direct_key_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/stmt.rs:23:45 [INFO] [stdout] | [INFO] [stdout] 23 | fn parse_import_or_export_name(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/stmt.rs:102:38 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn parse_stmt_empty(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/stmt.rs:151:41 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn parse_stmt_debugger(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | fn on_syntax_down(&mut self, node: &Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctl` [INFO] [stdout] --> src/visit.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | fn on_syntax_down(&mut self, node: &Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | fn on_syntax_up(&mut self, node: &Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:473:32 [INFO] [stdout] | [INFO] [stdout] 473 | fn on_syntax_down(&mut self, node: &mut Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctl` [INFO] [stdout] --> src/visit.rs:473:49 [INFO] [stdout] | [INFO] [stdout] 473 | fn on_syntax_down(&mut self, node: &mut Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:475:30 [INFO] [stdout] | [INFO] [stdout] 475 | fn on_syntax_up(&mut self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `through_char` and `while_not_char` are never used [INFO] [stdout] --> src/lex/mod.rs:152:6 [INFO] [stdout] | [INFO] [stdout] 77 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn through_char(&self, c: u8) -> SyntaxResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn while_not_char(&self, a: u8) -> Match { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/lex/tests/mod.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn check(code: &str, expecteds: &[TokenType], expected_err: Option) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/num.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | unsafe { mem::transmute::(self.0) }.hash(state); [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `MaybeToken` that must be used [INFO] [stdout] --> src/parse/class_or_object.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 45 | let _ = self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `MaybeToken` that must be used [INFO] [stdout] --> src/parse/stmt.rs:582:5 [INFO] [stdout] | [INFO] [stdout] 582 | self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 582 | let _ = self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/visit.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | for name in names { [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] 273 - for name in names { [INFO] [stdout] 273 + while let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 273 - for name in names { [INFO] [stdout] 273 + if let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/visit.rs:730:21 [INFO] [stdout] | [INFO] [stdout] 730 | for name in names { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 730 - for name in names { [INFO] [stdout] 730 + while let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 730 - for name in names { [INFO] [stdout] 730 + if let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling parse-js v0.24.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/expr.rs:248:36 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn parse_jsx_name(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/expr.rs:264:40 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn parse_jsx_tag_name(&mut self, ctx: ParseCtx) -> SyntaxResult> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/literal.rs:140:56 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn parse_and_normalise_literal_string(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direct_key_name` [INFO] [stdout] --> src/parse/pattern.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | let direct_key_name = match &key { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direct_key_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/stmt.rs:23:45 [INFO] [stdout] | [INFO] [stdout] 23 | fn parse_import_or_export_name(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/stmt.rs:102:38 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn parse_stmt_empty(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/parse/stmt.rs:151:41 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn parse_stmt_debugger(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | fn on_syntax_down(&mut self, node: &Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctl` [INFO] [stdout] --> src/visit.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | fn on_syntax_down(&mut self, node: &Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | fn on_syntax_up(&mut self, node: &Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:473:32 [INFO] [stdout] | [INFO] [stdout] 473 | fn on_syntax_down(&mut self, node: &mut Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctl` [INFO] [stdout] --> src/visit.rs:473:49 [INFO] [stdout] | [INFO] [stdout] 473 | fn on_syntax_down(&mut self, node: &mut Node, ctl: &mut JourneyControls) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/visit.rs:475:30 [INFO] [stdout] | [INFO] [stdout] 475 | fn on_syntax_up(&mut self, node: &mut Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `through_char` and `while_not_char` are never used [INFO] [stdout] --> src/lex/mod.rs:152:6 [INFO] [stdout] | [INFO] [stdout] 77 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn through_char(&self, c: u8) -> SyntaxResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn while_not_char(&self, a: u8) -> Match { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/num.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | unsafe { mem::transmute::(self.0) }.hash(state); [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `MaybeToken` that must be used [INFO] [stdout] --> src/parse/class_or_object.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 45 | let _ = self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `MaybeToken` that must be used [INFO] [stdout] --> src/parse/stmt.rs:582:5 [INFO] [stdout] | [INFO] [stdout] 582 | self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 582 | let _ = self.consume_if(TokenType::Semicolon)?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/visit.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | for name in names { [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] 273 - for name in names { [INFO] [stdout] 273 + while let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 273 - for name in names { [INFO] [stdout] 273 + if let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/visit.rs:730:21 [INFO] [stdout] | [INFO] [stdout] 730 | for name in names { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 730 - for name in names { [INFO] [stdout] 730 + while let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 730 - for name in names { [INFO] [stdout] 730 + if let Some(name) = names { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.40s [INFO] running `Command { std: "docker" "inspect" "a67dcfc809e05fad63403bab5e38a9b1343908299fe0caf217d0c7178cc856b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a67dcfc809e05fad63403bab5e38a9b1343908299fe0caf217d0c7178cc856b1", kill_on_drop: false }` [INFO] [stdout] a67dcfc809e05fad63403bab5e38a9b1343908299fe0caf217d0c7178cc856b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1450ff6ae7e4d7df0d8af8e2a7c7097ba573668a9ae11bd5ea46147f9285b84d [INFO] running `Command { std: "docker" "start" "-a" "1450ff6ae7e4d7df0d8af8e2a7c7097ba573668a9ae11bd5ea46147f9285b84d", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/parse/expr.rs:248:36 [INFO] [stderr] | [INFO] [stderr] 248 | pub fn parse_jsx_name(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/parse/expr.rs:264:40 [INFO] [stderr] | [INFO] [stderr] 264 | pub fn parse_jsx_tag_name(&mut self, ctx: ParseCtx) -> SyntaxResult> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/parse/literal.rs:140:56 [INFO] [stderr] | [INFO] [stderr] 140 | pub fn parse_and_normalise_literal_string(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `direct_key_name` [INFO] [stderr] --> src/parse/pattern.rs:118:15 [INFO] [stderr] | [INFO] [stderr] 118 | let direct_key_name = match &key { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direct_key_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/parse/stmt.rs:23:45 [INFO] [stderr] | [INFO] [stderr] 23 | fn parse_import_or_export_name(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/parse/stmt.rs:102:38 [INFO] [stderr] | [INFO] [stderr] 102 | pub fn parse_stmt_empty(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/parse/stmt.rs:151:41 [INFO] [stderr] | [INFO] [stderr] 151 | pub fn parse_stmt_debugger(&mut self, ctx: ParseCtx) -> SyntaxResult { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/visit.rs:24:32 [INFO] [stderr] | [INFO] [stderr] 24 | fn on_syntax_down(&mut self, node: &Node, ctl: &mut JourneyControls) {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctl` [INFO] [stderr] --> src/visit.rs:24:45 [INFO] [stderr] | [INFO] [stderr] 24 | fn on_syntax_down(&mut self, node: &Node, ctl: &mut JourneyControls) {} [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctl` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/visit.rs:26:30 [INFO] [stderr] | [INFO] [stderr] 26 | fn on_syntax_up(&mut self, node: &Node) {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/visit.rs:473:32 [INFO] [stderr] | [INFO] [stderr] 473 | fn on_syntax_down(&mut self, node: &mut Node, ctl: &mut JourneyControls) {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctl` [INFO] [stderr] --> src/visit.rs:473:49 [INFO] [stderr] | [INFO] [stderr] 473 | fn on_syntax_down(&mut self, node: &mut Node, ctl: &mut JourneyControls) {} [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctl` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/visit.rs:475:30 [INFO] [stderr] | [INFO] [stderr] 475 | fn on_syntax_up(&mut self, node: &mut Node) {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: methods `through_char` and `while_not_char` are never used [INFO] [stderr] --> src/lex/mod.rs:152:6 [INFO] [stderr] | [INFO] [stderr] 77 | impl<'a> Lexer<'a> { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 152 | fn through_char(&self, c: u8) -> SyntaxResult { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 158 | fn while_not_char(&self, a: u8) -> Match { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `check` is never used [INFO] [stderr] --> src/lex/tests/mod.rs:8:4 [INFO] [stderr] | [INFO] [stderr] 8 | fn check(code: &str, expecteds: &[TokenType], expected_err: Option) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/num.rs:42:16 [INFO] [stderr] | [INFO] [stderr] 42 | unsafe { mem::transmute::(self.0) }.hash(state); [INFO] [stderr] | --------------------------^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `f64::to_bits` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `MaybeToken` that must be used [INFO] [stderr] --> src/parse/class_or_object.rs:45:7 [INFO] [stderr] | [INFO] [stderr] 45 | self.consume_if(TokenType::Semicolon)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 45 | let _ = self.consume_if(TokenType::Semicolon)?; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `MaybeToken` that must be used [INFO] [stderr] --> src/parse/stmt.rs:582:5 [INFO] [stderr] | [INFO] [stderr] 582 | self.consume_if(TokenType::Semicolon)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 582 | let _ = self.consume_if(TokenType::Semicolon)?; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/visit.rs:273:21 [INFO] [stderr] | [INFO] [stderr] 273 | for name in names { [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] 273 - for name in names { [INFO] [stderr] 273 + while let Some(name) = names { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 273 - for name in names { [INFO] [stderr] 273 + if let Some(name) = names { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&mut Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/visit.rs:730:21 [INFO] [stderr] | [INFO] [stderr] 730 | for name in names { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 730 - for name in names { [INFO] [stderr] 730 + while let Some(name) = names { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 730 - for name in names { [INFO] [stderr] 730 + if let Some(name) = names { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `parse-js` (lib) generated 20 warnings (run `cargo fix --lib -p parse-js` to apply 1 suggestion) [INFO] [stderr] warning: `parse-js` (lib test) generated 19 warnings (19 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/parse_js-3cba7898f0f0eec3) [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test ast::tests::test_node_assoc_data ... ok [INFO] [stdout] test lex::tests::test_lex_identifiers ... ok [INFO] [stdout] test lex::tests::test_lex_import_statement ... ok [INFO] [stdout] test lex::tests::test_lex_literal_strings ... ok [INFO] [stdout] test lex::tests::test_lex_literal_bigints ... ok [INFO] [stdout] test lex::tests::test_lex_keywords ... ok [INFO] [stdout] test lex::tests::test_lex_literal_numbers ... ok [INFO] [stdout] test parse::tests::expr::test_parse_expression ... ok [INFO] [stdout] test parse::tests::stmt::test_parse_expression ... ok [INFO] [stderr] Doc-tests parse_js [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [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" "1450ff6ae7e4d7df0d8af8e2a7c7097ba573668a9ae11bd5ea46147f9285b84d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1450ff6ae7e4d7df0d8af8e2a7c7097ba573668a9ae11bd5ea46147f9285b84d", kill_on_drop: false }` [INFO] [stdout] 1450ff6ae7e4d7df0d8af8e2a7c7097ba573668a9ae11bd5ea46147f9285b84d