[INFO] cloning repository https://github.com/pawanspace/rlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pawanspace/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpawanspace%2Frlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpawanspace%2Frlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6ce0ccc7b564ae3165e510eb3ae3fe143ff6fce6 [INFO] checking pawanspace/rlox against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpawanspace%2Frlox" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pawanspace/rlox on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pawanspace/rlox [INFO] finished tweaking git repo https://github.com/pawanspace/rlox [INFO] tweaked toml for git repo https://github.com/pawanspace/rlox written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pawanspace/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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e86fa62b637d43c952492dbeac56ffbff0a5e446d87dcb143b08d89b99affd20 [INFO] running `Command { std: "docker" "start" "-a" "e86fa62b637d43c952492dbeac56ffbff0a5e446d87dcb143b08d89b99affd20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e86fa62b637d43c952492dbeac56ffbff0a5e446d87dcb143b08d89b99affd20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e86fa62b637d43c952492dbeac56ffbff0a5e446d87dcb143b08d89b99affd20", kill_on_drop: false }` [INFO] [stdout] e86fa62b637d43c952492dbeac56ffbff0a5e446d87dcb143b08d89b99affd20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd94fa80bcf9f8b7c30b92c1c32b1d7cf63c4634d582f29d787a7234be8257dd [INFO] running `Command { std: "docker" "start" "-a" "fd94fa80bcf9f8b7c30b92c1c32b1d7cf63c4634d582f29d787a7234be8257dd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.89 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling serde_json v1.0.89 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling anyhow v1.0.66 [INFO] [stderr] Checking itoa v1.0.4 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking os_str_bytes v6.3.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking once_cell v1.13.1 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling quote v1.0.16 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Compiling clap_derive v3.2.17 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking clap v3.2.17 [INFO] [stderr] Checking rustfix v0.6.1 [INFO] [stderr] Checking rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/hash_map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entry` [INFO] [stdout] --> src/vm.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::hash_map::{Table, Entry}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/hash_map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entry` [INFO] [stdout] --> src/vm.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::hash_map::{Table, Entry}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/common.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | Value::Obj(obj) => unsafe { obj.is_string() }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/common.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | Value::Obj(obj) => unsafe { obj.is_string() }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/compiler.rs:126:11 [INFO] [stdout] | [INFO] [stdout] 126 | | _ => ParseRule { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/compiler.rs:126:11 [INFO] [stdout] | [INFO] [stdout] 126 | | _ => ParseRule { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `set_op` is never read [INFO] [stdout] --> src/compiler.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | let mut set_op = OpCode::Nil; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `get_op` is never read [INFO] [stdout] --> src/compiler.rs:496:17 [INFO] [stdout] | [INFO] [stdout] 496 | let mut get_op = OpCode::Nil; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `set_op` is never read [INFO] [stdout] --> src/compiler.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | let mut set_op = OpCode::Nil; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `get_op` is never read [INFO] [stdout] --> src/compiler.rs:496:17 [INFO] [stdout] | [INFO] [stdout] 496 | let mut get_op = OpCode::Nil; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/debug.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 25 | Obj::Str(fat_ptr) => unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/hash_map.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | Entry::Occupied(value, data) => Some(data), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/hash_map.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | Entry::Occupied(value, data) => Some(data), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/debug.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 25 | Obj::Str(fat_ptr) => unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/hash_map.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | Entry::Occupied(value, data) => Some(data), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/hash_map.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | Entry::Occupied(value, data) => Some(data), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | unsafe { mem::size_of_val(&ptr) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | unsafe { std::ptr::eq(ptr, other_ptr) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | unsafe { mem::size_of_val(&ptr) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | unsafe { std::ptr::eq(ptr, other_ptr) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Repl` is never constructed [INFO] [stdout] --> src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Repl<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init` and `prompt` are never used [INFO] [stdout] --> src/main.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a> Repl<'a> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 44 | fn init(vm: &'a mut vm::VM) -> Repl<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn prompt(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repl` is never used [INFO] [stdout] --> src/main.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn repl() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `disassemble_chunk` is never used [INFO] [stdout] --> src/chunk.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> Chunk { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub(crate) fn disassemble_chunk(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `func_type` is never read [INFO] [stdout] --> src/common.rs:181:16 [INFO] [stdout] | [INFO] [stdout] 177 | pub(crate) struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 181 | pub(crate) func_type: FunctionType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` 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: variant `Function` is never constructed [INFO] [stdout] --> src/common.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 196 | pub(crate) enum FunctionType { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 197 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionType` 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: variant `Nil` is never constructed [INFO] [stdout] --> src/common.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 203 | pub(crate) enum Obj { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 207 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obj` 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: method `is_nil` is never used [INFO] [stdout] --> src/common.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 210 | impl Obj { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn is_nil(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `emit_bytes` is never used [INFO] [stdout] --> src/compiler.rs:834:8 [INFO] [stdout] | [INFO] [stdout] 204 | impl<'c> Compiler<'c> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 834 | fn emit_bytes(&mut self, byte_1: u8, byte_2: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_mut`, `dump`, and `find_entry_mut` are never used [INFO] [stdout] --> src/hash_map.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 24 | / impl Table [INFO] [stdout] 25 | | where [INFO] [stdout] 26 | | T: Clone, [INFO] [stdout] 27 | | T: Debug, [INFO] [stdout] | |_____________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub(crate) fn get_mut(&mut self, key: FatPointer) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub(crate) fn dump(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | fn find_entry_mut(&mut self, key: &FatPointer) -> Option<&mut Entry> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/hash_map.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 201 | struct TestValue { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 202 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestValue` 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: function `allocate_for_value` is never used [INFO] [stdout] --> src/memory.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn allocate_for_value(value: T) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/memory.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn add(ptr: *mut u8, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `size_of` is never used [INFO] [stdout] --> src/memory.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn size_of(ptr: *mut u8) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/memory.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn print(ptr: *mut u8) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop` is never used [INFO] [stdout] --> src/memory.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn drop(ptr: *mut u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/memory.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get(ptr: *mut T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display` is never used [INFO] [stdout] --> src/metrics.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn display() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset_stack` and `is_equal` are never used [INFO] [stdout] --> src/vm.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl VM { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | fn reset_stack(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 541 | fn is_equal(&self, left: Value, right: Value) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Repl` is never constructed [INFO] [stdout] --> src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Repl<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init` and `prompt` are never used [INFO] [stdout] --> src/main.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a> Repl<'a> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 44 | fn init(vm: &'a mut vm::VM) -> Repl<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn prompt(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repl` is never used [INFO] [stdout] --> src/main.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn repl() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `disassemble_chunk` is never used [INFO] [stdout] --> src/chunk.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> Chunk { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub(crate) fn disassemble_chunk(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `func_type` is never read [INFO] [stdout] --> src/common.rs:181:16 [INFO] [stdout] | [INFO] [stdout] 177 | pub(crate) struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 181 | pub(crate) func_type: FunctionType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` 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: variant `Function` is never constructed [INFO] [stdout] --> src/common.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 196 | pub(crate) enum FunctionType { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 197 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionType` 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: variant `Nil` is never constructed [INFO] [stdout] --> src/common.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 203 | pub(crate) enum Obj { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 207 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obj` 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: method `is_nil` is never used [INFO] [stdout] --> src/common.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 210 | impl Obj { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn is_nil(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `emit_bytes` is never used [INFO] [stdout] --> src/compiler.rs:834:8 [INFO] [stdout] | [INFO] [stdout] 204 | impl<'c> Compiler<'c> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 834 | fn emit_bytes(&mut self, byte_1: u8, byte_2: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dump` is never used [INFO] [stdout] --> src/hash_map.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 24 | / impl Table [INFO] [stdout] 25 | | where [INFO] [stdout] 26 | | T: Clone, [INFO] [stdout] 27 | | T: Debug, [INFO] [stdout] | |_____________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | pub(crate) fn dump(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `allocate_for_value` is never used [INFO] [stdout] --> src/memory.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn allocate_for_value(value: T) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/memory.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn add(ptr: *mut u8, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `size_of` is never used [INFO] [stdout] --> src/memory.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn size_of(ptr: *mut u8) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/memory.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn print(ptr: *mut u8) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop` is never used [INFO] [stdout] --> src/memory.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn drop(ptr: *mut u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/memory.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get(ptr: *mut T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display` is never used [INFO] [stdout] --> src/metrics.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn display() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset_stack` and `is_equal` are never used [INFO] [stdout] --> src/vm.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl VM { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | fn reset_stack(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 541 | fn is_equal(&self, left: Value, right: Value) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.95s [INFO] running `Command { std: "docker" "inspect" "fd94fa80bcf9f8b7c30b92c1c32b1d7cf63c4634d582f29d787a7234be8257dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd94fa80bcf9f8b7c30b92c1c32b1d7cf63c4634d582f29d787a7234be8257dd", kill_on_drop: false }` [INFO] [stdout] fd94fa80bcf9f8b7c30b92c1c32b1d7cf63c4634d582f29d787a7234be8257dd [INFO] checking pawanspace/rlox against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpawanspace%2Frlox" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pawanspace/rlox on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pawanspace/rlox [INFO] finished tweaking git repo https://github.com/pawanspace/rlox [INFO] tweaked toml for git repo https://github.com/pawanspace/rlox written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/pawanspace/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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bd0a5dad1e3e4a3e465b869da8c93400912b2ae68c81a1a14250e472c1e3ebd4 [INFO] running `Command { std: "docker" "start" "-a" "bd0a5dad1e3e4a3e465b869da8c93400912b2ae68c81a1a14250e472c1e3ebd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd0a5dad1e3e4a3e465b869da8c93400912b2ae68c81a1a14250e472c1e3ebd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd0a5dad1e3e4a3e465b869da8c93400912b2ae68c81a1a14250e472c1e3ebd4", kill_on_drop: false }` [INFO] [stdout] bd0a5dad1e3e4a3e465b869da8c93400912b2ae68c81a1a14250e472c1e3ebd4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c5bd2a90cd3a8527da0f82a5be9006d526384653265b213f0f188c56670a608 [INFO] running `Command { std: "docker" "start" "-a" "1c5bd2a90cd3a8527da0f82a5be9006d526384653265b213f0f188c56670a608", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.89 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling anyhow v1.0.66 [INFO] [stderr] Compiling serde_json v1.0.89 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking os_str_bytes v6.3.0 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking itoa v1.0.4 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking once_cell v1.13.1 [INFO] [stderr] Compiling quote v1.0.16 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Compiling clap_derive v3.2.17 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking clap v3.2.17 [INFO] [stderr] Checking rustfix v0.6.1 [INFO] [stderr] Checking rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/hash_map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entry` [INFO] [stdout] --> src/vm.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::hash_map::{Table, Entry}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/hash_map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entry` [INFO] [stdout] --> src/vm.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::hash_map::{Table, Entry}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/common.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | Value::Obj(obj) => unsafe { obj.is_string() }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/common.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | Value::Obj(obj) => unsafe { obj.is_string() }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/compiler.rs:126:11 [INFO] [stdout] | [INFO] [stdout] 126 | | _ => ParseRule { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/compiler.rs:126:11 [INFO] [stdout] | [INFO] [stdout] 126 | | _ => ParseRule { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `set_op` is never read [INFO] [stdout] --> src/compiler.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | let mut set_op = OpCode::Nil; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `get_op` is never read [INFO] [stdout] --> src/compiler.rs:496:17 [INFO] [stdout] | [INFO] [stdout] 496 | let mut get_op = OpCode::Nil; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `set_op` is never read [INFO] [stdout] --> src/compiler.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | let mut set_op = OpCode::Nil; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `get_op` is never read [INFO] [stdout] --> src/compiler.rs:496:17 [INFO] [stdout] | [INFO] [stdout] 496 | let mut get_op = OpCode::Nil; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/debug.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 25 | Obj::Str(fat_ptr) => unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/hash_map.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | Entry::Occupied(value, data) => Some(data), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/hash_map.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | Entry::Occupied(value, data) => Some(data), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/debug.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 25 | Obj::Str(fat_ptr) => unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/hash_map.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | Entry::Occupied(value, data) => Some(data), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/hash_map.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | Entry::Occupied(value, data) => Some(data), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | unsafe { mem::size_of_val(&ptr) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | unsafe { std::ptr::eq(ptr, other_ptr) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | unsafe { mem::size_of_val(&ptr) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | unsafe { std::ptr::eq(ptr, other_ptr) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Repl` is never constructed [INFO] [stdout] --> src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Repl<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init` and `prompt` are never used [INFO] [stdout] --> src/main.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a> Repl<'a> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 44 | fn init(vm: &'a mut vm::VM) -> Repl<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn prompt(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repl` is never used [INFO] [stdout] --> src/main.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn repl() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `disassemble_chunk` is never used [INFO] [stdout] --> src/chunk.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> Chunk { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub(crate) fn disassemble_chunk(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `func_type` is never read [INFO] [stdout] --> src/common.rs:181:16 [INFO] [stdout] | [INFO] [stdout] 177 | pub(crate) struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 181 | pub(crate) func_type: FunctionType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` 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: variant `Function` is never constructed [INFO] [stdout] --> src/common.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 196 | pub(crate) enum FunctionType { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 197 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionType` 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: variant `Nil` is never constructed [INFO] [stdout] --> src/common.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 203 | pub(crate) enum Obj { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 207 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obj` 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: method `is_nil` is never used [INFO] [stdout] --> src/common.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 210 | impl Obj { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn is_nil(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `emit_bytes` is never used [INFO] [stdout] --> src/compiler.rs:834:8 [INFO] [stdout] | [INFO] [stdout] 204 | impl<'c> Compiler<'c> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 834 | fn emit_bytes(&mut self, byte_1: u8, byte_2: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_mut`, `dump`, and `find_entry_mut` are never used [INFO] [stdout] --> src/hash_map.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 24 | / impl Table [INFO] [stdout] 25 | | where [INFO] [stdout] 26 | | T: Clone, [INFO] [stdout] 27 | | T: Debug, [INFO] [stdout] | |_____________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub(crate) fn get_mut(&mut self, key: FatPointer) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub(crate) fn dump(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | fn find_entry_mut(&mut self, key: &FatPointer) -> Option<&mut Entry> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/hash_map.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 201 | struct TestValue { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 202 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestValue` 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: function `allocate_for_value` is never used [INFO] [stdout] --> src/memory.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn allocate_for_value(value: T) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/memory.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn add(ptr: *mut u8, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `size_of` is never used [INFO] [stdout] --> src/memory.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn size_of(ptr: *mut u8) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/memory.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn print(ptr: *mut u8) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop` is never used [INFO] [stdout] --> src/memory.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn drop(ptr: *mut u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/memory.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get(ptr: *mut T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display` is never used [INFO] [stdout] --> src/metrics.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn display() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset_stack` and `is_equal` are never used [INFO] [stdout] --> src/vm.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl VM { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | fn reset_stack(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 541 | fn is_equal(&self, left: Value, right: Value) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/common.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(FromPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_OpCode` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/compiler.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(FromPrimitive, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_Precedence` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/scanner.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, PartialEq, Copy, Clone, FromPrimitive, Hash, Eq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_TokenType` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Repl` is never constructed [INFO] [stdout] --> src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Repl<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init` and `prompt` are never used [INFO] [stdout] --> src/main.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a> Repl<'a> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 44 | fn init(vm: &'a mut vm::VM) -> Repl<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn prompt(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repl` is never used [INFO] [stdout] --> src/main.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn repl() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `disassemble_chunk` is never used [INFO] [stdout] --> src/chunk.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> Chunk { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub(crate) fn disassemble_chunk(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `func_type` is never read [INFO] [stdout] --> src/common.rs:181:16 [INFO] [stdout] | [INFO] [stdout] 177 | pub(crate) struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 181 | pub(crate) func_type: FunctionType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` 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: variant `Function` is never constructed [INFO] [stdout] --> src/common.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 196 | pub(crate) enum FunctionType { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 197 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionType` 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: variant `Nil` is never constructed [INFO] [stdout] --> src/common.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 203 | pub(crate) enum Obj { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 207 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obj` 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: method `is_nil` is never used [INFO] [stdout] --> src/common.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 210 | impl Obj { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn is_nil(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `emit_bytes` is never used [INFO] [stdout] --> src/compiler.rs:834:8 [INFO] [stdout] | [INFO] [stdout] 204 | impl<'c> Compiler<'c> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 834 | fn emit_bytes(&mut self, byte_1: u8, byte_2: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dump` is never used [INFO] [stdout] --> src/hash_map.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 24 | / impl Table [INFO] [stdout] 25 | | where [INFO] [stdout] 26 | | T: Clone, [INFO] [stdout] 27 | | T: Debug, [INFO] [stdout] | |_____________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | pub(crate) fn dump(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `allocate_for_value` is never used [INFO] [stdout] --> src/memory.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn allocate_for_value(value: T) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/memory.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn add(ptr: *mut u8, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `size_of` is never used [INFO] [stdout] --> src/memory.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn size_of(ptr: *mut u8) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/memory.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn print(ptr: *mut u8) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop` is never used [INFO] [stdout] --> src/memory.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn drop(ptr: *mut u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/memory.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get(ptr: *mut T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display` is never used [INFO] [stdout] --> src/metrics.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn display() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset_stack` and `is_equal` are never used [INFO] [stdout] --> src/vm.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl VM { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | fn reset_stack(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 541 | fn is_equal(&self, left: Value, right: Value) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/common.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(FromPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_OpCode` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/compiler.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(FromPrimitive, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_Precedence` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/scanner.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, PartialEq, Copy, Clone, FromPrimitive, Hash, Eq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_TokenType` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rlox` (bin "rlox") due to 4 previous errors; 31 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors; 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rlox` (bin "rlox" test) due to 4 previous errors; 30 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1c5bd2a90cd3a8527da0f82a5be9006d526384653265b213f0f188c56670a608", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c5bd2a90cd3a8527da0f82a5be9006d526384653265b213f0f188c56670a608", kill_on_drop: false }` [INFO] [stdout] 1c5bd2a90cd3a8527da0f82a5be9006d526384653265b213f0f188c56670a608