[INFO] cloning repository https://github.com/re-masashi/rlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/re-masashi/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fre-masashi%2Frlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fre-masashi%2Frlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 83ac58ad50e36f9926ee105e81002cea5cce5090 [INFO] checking re-masashi/rlox against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fre-masashi%2Frlox" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/re-masashi/rlox [INFO] finished tweaking git repo https://github.com/re-masashi/rlox [INFO] tweaked toml for git repo https://github.com/re-masashi/rlox written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/re-masashi/rlox on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/re-masashi/rlox 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking re-masashi/rlox against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fre-masashi%2Frlox" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/re-masashi/rlox [INFO] finished tweaking git repo https://github.com/re-masashi/rlox [INFO] tweaked toml for git repo https://github.com/re-masashi/rlox written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/re-masashi/rlox on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/re-masashi/rlox 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded memoffset v0.5.5 [INFO] [stderr] Downloaded either v1.6.0 [INFO] [stderr] Downloaded oorandom v11.1.2 [INFO] [stderr] Downloaded serde_derive v1.0.115 [INFO] [stderr] Downloaded rayon-core v1.7.1 [INFO] [stderr] Downloaded rayon v1.3.1 [INFO] [stderr] Downloaded serde_json v1.0.57 [INFO] [stderr] Downloaded serde v1.0.115 [INFO] [stderr] Downloaded syn v1.0.39 [INFO] [stderr] Downloaded bstr v0.2.13 [INFO] [stderr] Downloaded libc v0.2.76 [INFO] [stderr] Downloaded csv v1.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12f88d589c7e4c48673f0a39a638969ffa5b3a9b5bfbc4040a92b465d9b2a53a [INFO] running `Command { std: "docker" "start" "-a" "12f88d589c7e4c48673f0a39a638969ffa5b3a9b5bfbc4040a92b465d9b2a53a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12f88d589c7e4c48673f0a39a638969ffa5b3a9b5bfbc4040a92b465d9b2a53a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12f88d589c7e4c48673f0a39a638969ffa5b3a9b5bfbc4040a92b465d9b2a53a", kill_on_drop: false }` [INFO] [stdout] 12f88d589c7e4c48673f0a39a638969ffa5b3a9b5bfbc4040a92b465d9b2a53a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14c55c0d6ab98f8cd369d85dd98b574d9a1ebf4d14d2d2fa4546fb7b25d01177 [INFO] running `Command { std: "docker" "start" "-a" "14c55c0d6ab98f8cd369d85dd98b574d9a1ebf4d14d2d2fa4546fb7b25d01177", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling rayon-core v1.7.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Checking either v1.6.0 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking half v1.6.0 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking oorandom v11.1.2 [INFO] [stderr] Checking rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ModuleChunk` [INFO] [stdout] --> src/compiler.rs:1:75 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::chunk::{Chunk, ClassChunk, FunctionChunk, FunctionType, Instr, ModuleChunk, OpCode}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpret` [INFO] [stdout] --> src/compiler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::interpret; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Local` [INFO] [stdout] --> src/compiler.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::resolver::{Resolver, Local}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/native.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 66 | / match _args[1].clone() { [INFO] [stdout] 67 | | Value::LoxArray(mut v) => { [INFO] [stdout] 68 | | arr = v.clone(); [INFO] [stdout] 69 | | if arr.len() < index { [INFO] [stdout] ... | [INFO] [stdout] 86 | | }; [INFO] [stdout] | |_____- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 87 | Value::Double(21.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:492:21 [INFO] [stdout] | [INFO] [stdout] 492 | let mut compiler = Compiler::new(&s, self.quiet_mode); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler.rs:917:17 [INFO] [stdout] | [INFO] [stdout] 917 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/native.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut index: usize; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/native.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut arr: Vec; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/native.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut index: usize; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/native.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | Value::LoxArray(mut v) => { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/native.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | v => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/native.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | v => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/vm.rs:763:31 [INFO] [stdout] | [INFO] [stdout] 763 | } else if let (val1, val2) = t { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `classes`, and `functions` are never read [INFO] [stdout] --> src/chunk.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct ModuleChunk { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 132 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 133 | pub classes: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 134 | pub functions: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModuleChunk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/chunk.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl ModuleChunk { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 137 | pub fn new(name: String) -> ModuleChunk { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stdout] warning: variant `ModuleAccess` is never constructed [INFO] [stdout] --> src/prec.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum ParseFn { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 36 | ModuleAccess, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `modules` is never read [INFO] [stdout] --> src/vm.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 361 | pub struct VM { [INFO] [stdout] | -- field in this struct [INFO] [stdout] ... [INFO] [stdout] 368 | pub modules: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/compiler.rs:504:17 [INFO] [stdout] | [INFO] [stdout] 504 | / compile_result [INFO] [stdout] 505 | | .identifier_constants [INFO] [stdout] 506 | | .clone() [INFO] [stdout] 507 | | .into_iter() [INFO] [stdout] ... | [INFO] [stdout] 514 | | }) [INFO] [stdout] 515 | | .collect::>(); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [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] 504 | let _ = compile_result [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/compiler.rs:524:17 [INFO] [stdout] | [INFO] [stdout] 524 | / compile_result [INFO] [stdout] 525 | | .identifier_constants [INFO] [stdout] 526 | | .clone() [INFO] [stdout] 527 | | .into_iter() [INFO] [stdout] ... | [INFO] [stdout] 534 | | }) [INFO] [stdout] 535 | | .collect::>(); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 524 | let _ = compile_result [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/scanner.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn new(code: &str) -> Scanner { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 67 | pub fn new(code: &str) -> Scanner<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/value.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Clone, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 13 | NativeFunction(NativeFn), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/value.rs:90:65 [INFO] [stdout] | [INFO] [stdout] 90 | (Value::NativeFunction(x), Value::NativeFunction(y)) => x == y, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 90 - (Value::NativeFunction(x), Value::NativeFunction(y)) => x == y, [INFO] [stdout] 90 + (Value::NativeFunction(x), Value::NativeFunction(y)) => std::ptr::fn_addr_eq(*x, *y), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking criterion-plot v0.4.3 [INFO] [stderr] Checking plotters v0.2.15 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking bstr v0.2.13 [INFO] [stderr] Checking serde_cbor v0.11.1 [INFO] [stderr] Checking csv v1.1.3 [INFO] [stderr] Checking tinytemplate v1.1.0 [INFO] [stderr] Checking criterion v0.3.3 [INFO] [stdout] warning: unused import: `ModuleChunk` [INFO] [stdout] --> src/compiler.rs:1:75 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::chunk::{Chunk, ClassChunk, FunctionChunk, FunctionType, Instr, ModuleChunk, OpCode}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpret` [INFO] [stdout] --> src/compiler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::interpret; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Local` [INFO] [stdout] --> src/compiler.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::resolver::{Resolver, Local}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/native.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 66 | / match _args[1].clone() { [INFO] [stdout] 67 | | Value::LoxArray(mut v) => { [INFO] [stdout] 68 | | arr = v.clone(); [INFO] [stdout] 69 | | if arr.len() < index { [INFO] [stdout] ... | [INFO] [stdout] 86 | | }; [INFO] [stdout] | |_____- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 87 | Value::Double(21.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:492:21 [INFO] [stdout] | [INFO] [stdout] 492 | let mut compiler = Compiler::new(&s, self.quiet_mode); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler.rs:917:17 [INFO] [stdout] | [INFO] [stdout] 917 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/native.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut index: usize; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/native.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut arr: Vec; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/native.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut index: usize; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/native.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | Value::LoxArray(mut v) => { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/native.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | v => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/native.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | v => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/vm.rs:763:31 [INFO] [stdout] | [INFO] [stdout] 763 | } else if let (val1, val2) = t { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `classes`, and `functions` are never read [INFO] [stdout] --> src/chunk.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct ModuleChunk { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 132 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 133 | pub classes: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 134 | pub functions: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModuleChunk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/chunk.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl ModuleChunk { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 137 | pub fn new(name: String) -> ModuleChunk { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ModuleAccess` is never constructed [INFO] [stdout] --> src/prec.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum ParseFn { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 36 | ModuleAccess, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `modules` is never read [INFO] [stdout] --> src/vm.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 361 | pub struct VM { [INFO] [stdout] | -- field in this struct [INFO] [stdout] ... [INFO] [stdout] 368 | pub modules: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/compiler.rs:504:17 [INFO] [stdout] | [INFO] [stdout] 504 | / compile_result [INFO] [stdout] 505 | | .identifier_constants [INFO] [stdout] 506 | | .clone() [INFO] [stdout] 507 | | .into_iter() [INFO] [stdout] ... | [INFO] [stdout] 514 | | }) [INFO] [stdout] 515 | | .collect::>(); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [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] 504 | let _ = compile_result [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/compiler.rs:524:17 [INFO] [stdout] | [INFO] [stdout] 524 | / compile_result [INFO] [stdout] 525 | | .identifier_constants [INFO] [stdout] 526 | | .clone() [INFO] [stdout] 527 | | .into_iter() [INFO] [stdout] ... | [INFO] [stdout] 534 | | }) [INFO] [stdout] 535 | | .collect::>(); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 524 | let _ = compile_result [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/scanner.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn new(code: &str) -> Scanner { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 67 | pub fn new(code: &str) -> Scanner<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/value.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Clone, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 13 | NativeFunction(NativeFn), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/value.rs:90:65 [INFO] [stdout] | [INFO] [stdout] 90 | (Value::NativeFunction(x), Value::NativeFunction(y)) => x == y, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 90 - (Value::NativeFunction(x), Value::NativeFunction(y)) => x == y, [INFO] [stdout] 90 + (Value::NativeFunction(x), Value::NativeFunction(y)) => std::ptr::fn_addr_eq(*x, *y), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.61s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: criterion v0.3.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "14c55c0d6ab98f8cd369d85dd98b574d9a1ebf4d14d2d2fa4546fb7b25d01177", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14c55c0d6ab98f8cd369d85dd98b574d9a1ebf4d14d2d2fa4546fb7b25d01177", kill_on_drop: false }` [INFO] [stdout] 14c55c0d6ab98f8cd369d85dd98b574d9a1ebf4d14d2d2fa4546fb7b25d01177