[INFO] cloning repository https://github.com/baoziv587/LoxLang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/baoziv587/LoxLang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaoziv587%2FLoxLang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaoziv587%2FLoxLang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c5f72cf61fa1d6b4fc5cc4f69385090c8930202d [INFO] testing baoziv587/LoxLang against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaoziv587%2FLoxLang" "/workspace/builds/worker-24/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-24/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/baoziv587/LoxLang on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/baoziv587/LoxLang [INFO] finished tweaking git repo https://github.com/baoziv587/LoxLang [INFO] tweaked toml for git repo https://github.com/baoziv587/LoxLang written to /workspace/builds/worker-24/source/Cargo.toml [INFO] crate git repo https://github.com/baoziv587/LoxLang already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pretty_env_logger v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ab3fbd4433ce1390726d96d402f5abbdd870767a909c5df3c16a834c7730424 [INFO] running `Command { std: "docker" "start" "-a" "7ab3fbd4433ce1390726d96d402f5abbdd870767a909c5df3c16a834c7730424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ab3fbd4433ce1390726d96d402f5abbdd870767a909c5df3c16a834c7730424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ab3fbd4433ce1390726d96d402f5abbdd870767a909c5df3c16a834c7730424", kill_on_drop: false }` [INFO] [stdout] 7ab3fbd4433ce1390726d96d402f5abbdd870767a909c5df3c16a834c7730424 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ddd041bc039da8f85bc80535a184bc28d35b0d96f5c3ca7d3304854154ebb488 [INFO] running `Command { std: "docker" "start" "-a" "ddd041bc039da8f85bc80535a184bc28d35b0d96f5c3ca7d3304854154ebb488", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling regex v1.1.7 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling utf8-ranges v1.0.3 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling termcolor v1.0.5 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling humantime v1.2.0 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling regex-syntax v0.6.7 [INFO] [stderr] Compiling aho-corasick v0.7.3 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling env_logger v0.6.1 [INFO] [stderr] Compiling lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core` [INFO] [stdout] --> src/cli/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/frontend/scanner.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 260 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/frontend/scanner.rs:261:5 [INFO] [stdout] | [INFO] [stdout] 261 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/result.rs:73:32 [INFO] [stdout] | [INFO] [stdout] 73 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 73 - fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] 73 + fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/result.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | Error::IO(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/result.rs:75:35 [INFO] [stdout] | [INFO] [stdout] 75 | Error::IO(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/core/lox.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | fn run(source: &str) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/frontend/scanner.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 142 | let content = self.slice(start, end); [INFO] [stdout] | ---------------------- immutable borrow occurs here [INFO] [stdout] 143 | / self.create_token( [INFO] [stdout] 144 | | TokenType::STRING, [INFO] [stdout] 145 | | self.line, [INFO] [stdout] 146 | | content.to_string(), [INFO] [stdout] | | ------------------- immutable borrow later used here [INFO] [stdout] 147 | | self.inline_offset, [INFO] [stdout] 148 | | ); [INFO] [stdout] | |_________^ mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/frontend/scanner.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 177 | let value = self.slice(self.start, self.current); [INFO] [stdout] | ------------------------------------ immutable borrow occurs here [INFO] [stdout] 178 | / self.create_token( [INFO] [stdout] 179 | | TokenType::NUMBER, [INFO] [stdout] 180 | | self.line, [INFO] [stdout] 181 | | value.to_string(), [INFO] [stdout] | | ----------------- immutable borrow later used here [INFO] [stdout] 182 | | self.inline_offset, [INFO] [stdout] 183 | | ); [INFO] [stdout] | |_________^ mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/core/lox.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn run(source: &str) {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tokens` [INFO] [stdout] --> src/frontend/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | tokens: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/parser.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current` [INFO] [stdout] --> src/frontend/parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | current: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/parser.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `expressions` [INFO] [stdout] --> src/frontend/parser.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn expressions(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equality` [INFO] [stdout] --> src/frontend/parser.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn equality(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `match_type` [INFO] [stdout] --> src/frontend/parser.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn match_type(&mut self, types: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `expect_next` [INFO] [stdout] --> src/frontend/parser.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn expect_next(&mut self, types: &Vec) -> Result<&Token> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_error` [INFO] [stdout] --> src/frontend/parser.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn peek_error(&mut self) -> Error { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `advance` [INFO] [stdout] --> src/frontend/parser.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn advance(&mut self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `previous` [INFO] [stdout] --> src/frontend/parser.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn previous(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check` [INFO] [stdout] --> src/frontend/parser.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn check(&self, t: &TokenType) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_at_end` [INFO] [stdout] --> src/frontend/parser.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn is_at_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/frontend/parser.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | fn peek(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/frontend/parser.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | fn comparison(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addition` [INFO] [stdout] --> src/frontend/parser.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | fn addition(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mutilplication` [INFO] [stdout] --> src/frontend/parser.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn mutilplication(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unray` [INFO] [stdout] --> src/frontend/parser.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | fn unray(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `primary` [INFO] [stdout] --> src/frontend/parser.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | fn primary(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unexpected` [INFO] [stdout] --> src/frontend/parser.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn unexpected(&mut self, t: &Token) -> Error { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `eof` [INFO] [stdout] --> src/frontend/parser.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn eof(&self) -> Error { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peeks` [INFO] [stdout] --> src/frontend/scanner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | peeks: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tokens` [INFO] [stdout] --> src/frontend/scanner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | tokens: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `start` [INFO] [stdout] --> src/frontend/scanner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | start: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `line` [INFO] [stdout] --> src/frontend/scanner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | line: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `inline_offset` [INFO] [stdout] --> src/frontend/scanner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | inline_offset: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current` [INFO] [stdout] --> src/frontend/scanner.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | current: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `count` [INFO] [stdout] --> src/frontend/scanner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | count: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `slice` [INFO] [stdout] --> src/frontend/scanner.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn slice(&self, start: usize, end: usize) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_tokens` [INFO] [stdout] --> src/frontend/scanner.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn scan_tokens(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_at_end` [INFO] [stdout] --> src/frontend/scanner.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | fn is_at_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_token` [INFO] [stdout] --> src/frontend/scanner.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | fn scan_token(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_string` [INFO] [stdout] --> src/frontend/scanner.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | fn scan_string(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_comment` [INFO] [stdout] --> src/frontend/scanner.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | fn scan_comment(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_new_line` [INFO] [stdout] --> src/frontend/scanner.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | fn scan_new_line(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_number` [INFO] [stdout] --> src/frontend/scanner.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn scan_number(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_identifier` [INFO] [stdout] --> src/frontend/scanner.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | fn scan_identifier(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `match_str` [INFO] [stdout] --> src/frontend/scanner.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | fn match_str(&mut self, expected: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `current_char` [INFO] [stdout] --> src/frontend/scanner.rs:210:8 [INFO] [stdout] | [INFO] [stdout] 210 | fn current_char(&mut self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `advance` [INFO] [stdout] --> src/frontend/scanner.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | fn advance(&mut self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/frontend/scanner.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | fn peek(&mut self, n: Option) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_next` [INFO] [stdout] --> src/frontend/scanner.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | fn peek_next(&mut self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_token` [INFO] [stdout] --> src/frontend/scanner.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | fn create_token(&mut self, t: TokenType, line: usize, val: String, pos: usize) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_token` [INFO] [stdout] --> src/frontend/scanner.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | fn add_token(&mut self, tok_type: TokenType) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `LoxKeywords` should have an upper case name [INFO] [stdout] --> src/frontend/keywords.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | pub static ref LoxKeywords: HashMap<&'static str, TokenType> = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `LOX_KEYWORDS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arg` [INFO] [stdout] --> src/bin/lox/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use clap::{Arg, App, SubCommand}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/bin/lox/commands/gen_ast.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn exec(dist: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_dir` [INFO] [stdout] --> src/bin/lox/commands/gen_ast.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base_name` [INFO] [stdout] --> src/bin/lox/commands/gen_ast.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast_types` [INFO] [stdout] --> src/bin/lox/commands/gen_ast.rs:23:47 [INFO] [stdout] | [INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ast_types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/bin/lox/commands/gen_ast.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | fn write(name: &str, content: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gen_ast` [INFO] [stdout] --> src/bin/lox/commands/gen_ast.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn gen_ast(out_dit: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `define_ast` [INFO] [stdout] --> src/bin/lox/commands/gen_ast.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write` [INFO] [stdout] --> src/bin/lox/commands/gen_ast.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn write(name: &str, content: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.07s [INFO] running `Command { std: "docker" "inspect" "ddd041bc039da8f85bc80535a184bc28d35b0d96f5c3ca7d3304854154ebb488", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddd041bc039da8f85bc80535a184bc28d35b0d96f5c3ca7d3304854154ebb488", kill_on_drop: false }` [INFO] [stdout] ddd041bc039da8f85bc80535a184bc28d35b0d96f5c3ca7d3304854154ebb488 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e31f5f3c3a1b61e08d807c584ebf63492f63b3c34fb8751a10ef7fa1e0beb36 [INFO] running `Command { std: "docker" "start" "-a" "2e31f5f3c3a1b61e08d807c584ebf63492f63b3c34fb8751a10ef7fa1e0beb36", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stdout] warning: unused import: `core` [INFO] [stdout] --> src/cli/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/frontend/scanner.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 260 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/frontend/scanner.rs:261:5 [INFO] [stdout] | [INFO] [stdout] 261 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/result.rs:73:32 [INFO] [stdout] | [INFO] [stdout] 73 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 73 - fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] 73 + fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/result.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | Error::IO(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/result.rs:75:35 [INFO] [stdout] | [INFO] [stdout] 75 | Error::IO(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/core/lox.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | fn run(source: &str) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/frontend/scanner.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 142 | let content = self.slice(start, end); [INFO] [stdout] | ---------------------- immutable borrow occurs here [INFO] [stdout] 143 | / self.create_token( [INFO] [stdout] 144 | | TokenType::STRING, [INFO] [stdout] 145 | | self.line, [INFO] [stdout] 146 | | content.to_string(), [INFO] [stdout] | | ------------------- immutable borrow later used here [INFO] [stdout] 147 | | self.inline_offset, [INFO] [stdout] 148 | | ); [INFO] [stdout] | |_________^ mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/frontend/scanner.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 177 | let value = self.slice(self.start, self.current); [INFO] [stdout] | ------------------------------------ immutable borrow occurs here [INFO] [stdout] 178 | / self.create_token( [INFO] [stdout] 179 | | TokenType::NUMBER, [INFO] [stdout] 180 | | self.line, [INFO] [stdout] 181 | | value.to_string(), [INFO] [stdout] | | ----------------- immutable borrow later used here [INFO] [stdout] 182 | | self.inline_offset, [INFO] [stdout] 183 | | ); [INFO] [stdout] | |_________^ mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/core/lox.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn run(source: &str) {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tokens` [INFO] [stdout] --> src/frontend/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | tokens: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/parser.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current` [INFO] [stdout] --> src/frontend/parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | current: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/parser.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `expressions` [INFO] [stdout] --> src/frontend/parser.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn expressions(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equality` [INFO] [stdout] --> src/frontend/parser.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn equality(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `match_type` [INFO] [stdout] --> src/frontend/parser.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn match_type(&mut self, types: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `expect_next` [INFO] [stdout] --> src/frontend/parser.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn expect_next(&mut self, types: &Vec) -> Result<&Token> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_error` [INFO] [stdout] --> src/frontend/parser.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn peek_error(&mut self) -> Error { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `advance` [INFO] [stdout] --> src/frontend/parser.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn advance(&mut self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `previous` [INFO] [stdout] --> src/frontend/parser.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn previous(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check` [INFO] [stdout] --> src/frontend/parser.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn check(&self, t: &TokenType) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_at_end` [INFO] [stdout] --> src/frontend/parser.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn is_at_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/frontend/parser.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | fn peek(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/frontend/parser.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | fn comparison(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addition` [INFO] [stdout] --> src/frontend/parser.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | fn addition(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mutilplication` [INFO] [stdout] --> src/frontend/parser.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn mutilplication(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unray` [INFO] [stdout] --> src/frontend/parser.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | fn unray(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `primary` [INFO] [stdout] --> src/frontend/parser.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | fn primary(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unexpected` [INFO] [stdout] --> src/frontend/parser.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn unexpected(&mut self, t: &Token) -> Error { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `eof` [INFO] [stdout] --> src/frontend/parser.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn eof(&self) -> Error { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peeks` [INFO] [stdout] --> src/frontend/scanner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | peeks: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tokens` [INFO] [stdout] --> src/frontend/scanner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | tokens: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `start` [INFO] [stdout] --> src/frontend/scanner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | start: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `line` [INFO] [stdout] --> src/frontend/scanner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | line: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `inline_offset` [INFO] [stdout] --> src/frontend/scanner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | inline_offset: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current` [INFO] [stdout] --> src/frontend/scanner.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | current: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `count` [INFO] [stdout] --> src/frontend/scanner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | count: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/scanner.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `slice` [INFO] [stdout] --> src/frontend/scanner.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn slice(&self, start: usize, end: usize) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_tokens` [INFO] [stdout] --> src/frontend/scanner.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn scan_tokens(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_at_end` [INFO] [stdout] --> src/frontend/scanner.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | fn is_at_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_token` [INFO] [stdout] --> src/frontend/scanner.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | fn scan_token(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_string` [INFO] [stdout] --> src/frontend/scanner.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | fn scan_string(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_comment` [INFO] [stdout] --> src/frontend/scanner.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | fn scan_comment(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_new_line` [INFO] [stdout] --> src/frontend/scanner.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | fn scan_new_line(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_number` [INFO] [stdout] --> src/frontend/scanner.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn scan_number(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scan_identifier` [INFO] [stdout] --> src/frontend/scanner.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | fn scan_identifier(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `match_str` [INFO] [stdout] --> src/frontend/scanner.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | fn match_str(&mut self, expected: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `current_char` [INFO] [stdout] --> src/frontend/scanner.rs:210:8 [INFO] [stdout] | [INFO] [stdout] 210 | fn current_char(&mut self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `advance` [INFO] [stdout] --> src/frontend/scanner.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | fn advance(&mut self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/frontend/scanner.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | fn peek(&mut self, n: Option) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_next` [INFO] [stdout] --> src/frontend/scanner.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | fn peek_next(&mut self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_token` [INFO] [stdout] --> src/frontend/scanner.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | fn create_token(&mut self, t: TokenType, line: usize, val: String, pos: usize) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_token` [INFO] [stdout] --> src/frontend/scanner.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | fn add_token(&mut self, tok_type: TokenType) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `LoxKeywords` should have an upper case name [INFO] [stdout] --> src/frontend/keywords.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | pub static ref LoxKeywords: HashMap<&'static str, TokenType> = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `LOX_KEYWORDS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling pretty_env_logger v0.3.0 [INFO] [stderr] Compiling lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core` [INFO] [stdout] --> src/cli/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/result.rs:73:32 [INFO] [stdout] | [INFO] [stdout] 73 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 73 - fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] 73 + fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/result.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | Error::IO(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/result.rs:75:35 [INFO] [stdout] | [INFO] [stdout] 75 | Error::IO(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/core/lox.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | fn run(source: &str) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/frontend/scanner.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 142 | let content = self.slice(start, end); [INFO] [stdout] | ---------------------- immutable borrow occurs here [INFO] [stdout] 143 | / self.create_token( [INFO] [stdout] 144 | | TokenType::STRING, [INFO] [stdout] 145 | | self.line, [INFO] [stdout] 146 | | content.to_string(), [INFO] [stdout] | | ------------------- immutable borrow later used here [INFO] [stdout] 147 | | self.inline_offset, [INFO] [stdout] 148 | | ); [INFO] [stdout] | |_________^ mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/frontend/scanner.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 177 | let value = self.slice(self.start, self.current); [INFO] [stdout] | ------------------------------------ immutable borrow occurs here [INFO] [stdout] 178 | / self.create_token( [INFO] [stdout] 179 | | TokenType::NUMBER, [INFO] [stdout] 180 | | self.line, [INFO] [stdout] 181 | | value.to_string(), [INFO] [stdout] | | ----------------- immutable borrow later used here [INFO] [stdout] 182 | | self.inline_offset, [INFO] [stdout] 183 | | ); [INFO] [stdout] | |_________^ mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/core/lox.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn run(source: &str) {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tokens` [INFO] [stdout] --> src/frontend/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | tokens: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/parser.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current` [INFO] [stdout] --> src/frontend/parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | current: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/frontend/parser.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `expressions` [INFO] [stdout] --> src/frontend/parser.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn expressions(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equality` [INFO] [stdout] --> src/frontend/parser.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn equality(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `match_type` [INFO] [stdout] --> src/frontend/parser.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn match_type(&mut self, types: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `expect_next` [INFO] [stdout] --> src/frontend/parser.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn expect_next(&mut self, types: &Vec) -> Result<&Token> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_error` [INFO] [stdout] --> src/frontend/parser.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn peek_error(&mut self) -> Error { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `advance` [INFO] [stdout] --> src/frontend/parser.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn advance(&mut self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `previous` [INFO] [stdout] --> src/frontend/parser.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn previous(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check` [INFO] [stdout] --> src/frontend/parser.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn check(&self, t: &TokenType) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_at_end` [INFO] [stdout] --> src/frontend/parser.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn is_at_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/frontend/parser.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | fn peek(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/frontend/parser.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | fn comparison(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addition` [INFO] [stdout] --> src/frontend/parser.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | fn addition(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mutilplication` [INFO] [stdout] --> src/frontend/parser.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn mutilplication(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unray` [INFO] [stdout] --> src/frontend/parser.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | fn unray(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `primary` [INFO] [stdout] --> src/frontend/parser.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | fn primary(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unexpected` [INFO] [stdout] --> src/frontend/parser.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | fn unexpected(&mut self, t: &Token) -> Error { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `eof` [INFO] [stdout] --> src/frontend/parser.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn eof(&self) -> Error { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `LoxKeywords` should have an upper case name [INFO] [stdout] --> src/frontend/keywords.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | pub static ref LoxKeywords: HashMap<&'static str, TokenType> = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `LOX_KEYWORDS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.23s [INFO] running `Command { std: "docker" "inspect" "2e31f5f3c3a1b61e08d807c584ebf63492f63b3c34fb8751a10ef7fa1e0beb36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e31f5f3c3a1b61e08d807c584ebf63492f63b3c34fb8751a10ef7fa1e0beb36", kill_on_drop: false }` [INFO] [stdout] 2e31f5f3c3a1b61e08d807c584ebf63492f63b3c34fb8751a10ef7fa1e0beb36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a880ba4db9fc095eb40690ecd8556ed40479c46a375cd1c5ceb6b39325266103 [INFO] running `Command { std: "docker" "start" "-a" "a880ba4db9fc095eb40690ecd8556ed40479c46a375cd1c5ceb6b39325266103", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `core` [INFO] [stderr] --> src/cli/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use core; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs::File` [INFO] [stderr] --> src/frontend/scanner.rs:260:5 [INFO] [stderr] | [INFO] [stderr] 260 | use std::fs::File; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Read` [INFO] [stderr] --> src/frontend/scanner.rs:261:5 [INFO] [stderr] | [INFO] [stderr] 261 | use std::io::Read; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/lib.rs:9:1 [INFO] [stderr] | [INFO] [stderr] 9 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/result.rs:73:32 [INFO] [stderr] | [INFO] [stderr] 73 | fn cause(&self) -> Option<&error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 73 - fn cause(&self) -> Option<&error::Error> { [INFO] [stderr] 73 + fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/result.rs:65:35 [INFO] [stderr] | [INFO] [stderr] 65 | Error::IO(ref e) => e.description(), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stderr] --> src/result.rs:75:35 [INFO] [stderr] | [INFO] [stderr] 75 | Error::IO(ref e) => e.cause(), [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `source` [INFO] [stderr] --> src/core/lox.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | fn run(source: &str) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/frontend/scanner.rs:143:9 [INFO] [stderr] | [INFO] [stderr] 142 | let content = self.slice(start, end); [INFO] [stderr] | ---------------------- immutable borrow occurs here [INFO] [stderr] 143 | / self.create_token( [INFO] [stderr] 144 | | TokenType::STRING, [INFO] [stderr] 145 | | self.line, [INFO] [stderr] 146 | | content.to_string(), [INFO] [stderr] | | ------------------- immutable borrow later used here [INFO] [stderr] 147 | | self.inline_offset, [INFO] [stderr] 148 | | ); [INFO] [stderr] | |_________^ mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/frontend/scanner.rs:178:9 [INFO] [stderr] | [INFO] [stderr] 177 | let value = self.slice(self.start, self.current); [INFO] [stderr] | ------------------------------------ immutable borrow occurs here [INFO] [stderr] 178 | / self.create_token( [INFO] [stderr] 179 | | TokenType::NUMBER, [INFO] [stderr] 180 | | self.line, [INFO] [stderr] 181 | | value.to_string(), [INFO] [stderr] | | ----------------- immutable borrow later used here [INFO] [stderr] 182 | | self.inline_offset, [INFO] [stderr] 183 | | ); [INFO] [stderr] | |_________^ mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `run` [INFO] [stderr] --> src/core/lox.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | fn run(source: &str) {} [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tokens` [INFO] [stderr] --> src/frontend/parser.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | tokens: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/frontend/parser.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `current` [INFO] [stderr] --> src/frontend/parser.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | current: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/frontend/parser.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `expressions` [INFO] [stderr] --> src/frontend/parser.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | fn expressions(&mut self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `equality` [INFO] [stderr] --> src/frontend/parser.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 21 | fn equality(&mut self) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `match_type` [INFO] [stderr] --> src/frontend/parser.rs:35:8 [INFO] [stderr] | [INFO] [stderr] 35 | fn match_type(&mut self, types: &Vec) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `expect_next` [INFO] [stderr] --> src/frontend/parser.rs:45:8 [INFO] [stderr] | [INFO] [stderr] 45 | fn expect_next(&mut self, types: &Vec) -> Result<&Token> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek_error` [INFO] [stderr] --> src/frontend/parser.rs:53:8 [INFO] [stderr] | [INFO] [stderr] 53 | fn peek_error(&mut self) -> Error { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `advance` [INFO] [stderr] --> src/frontend/parser.rs:67:8 [INFO] [stderr] | [INFO] [stderr] 67 | fn advance(&mut self) -> Option<&Token> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `previous` [INFO] [stderr] --> src/frontend/parser.rs:75:8 [INFO] [stderr] | [INFO] [stderr] 75 | fn previous(&self) -> Option<&Token> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `check` [INFO] [stderr] --> src/frontend/parser.rs:79:8 [INFO] [stderr] | [INFO] [stderr] 79 | fn check(&self, t: &TokenType) -> bool { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_at_end` [INFO] [stderr] --> src/frontend/parser.rs:86:8 [INFO] [stderr] | [INFO] [stderr] 86 | fn is_at_end(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek` [INFO] [stderr] --> src/frontend/parser.rs:90:8 [INFO] [stderr] | [INFO] [stderr] 90 | fn peek(&self) -> Option<&Token> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `comparison` [INFO] [stderr] --> src/frontend/parser.rs:95:8 [INFO] [stderr] | [INFO] [stderr] 95 | fn comparison(&mut self) -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `addition` [INFO] [stderr] --> src/frontend/parser.rs:113:8 [INFO] [stderr] | [INFO] [stderr] 113 | fn addition(&mut self) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `mutilplication` [INFO] [stderr] --> src/frontend/parser.rs:126:8 [INFO] [stderr] | [INFO] [stderr] 126 | fn mutilplication(&mut self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `unray` [INFO] [stderr] --> src/frontend/parser.rs:132:8 [INFO] [stderr] | [INFO] [stderr] 132 | fn unray(&mut self) -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `primary` [INFO] [stderr] --> src/frontend/parser.rs:143:8 [INFO] [stderr] | [INFO] [stderr] 143 | fn primary(&mut self) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `unexpected` [INFO] [stderr] --> src/frontend/parser.rs:163:8 [INFO] [stderr] | [INFO] [stderr] 163 | fn unexpected(&mut self, t: &Token) -> Error { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `eof` [INFO] [stderr] --> src/frontend/parser.rs:172:8 [INFO] [stderr] | [INFO] [stderr] 172 | fn eof(&self) -> Error { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `peeks` [INFO] [stderr] --> src/frontend/scanner.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | peeks: &'a str, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/frontend/scanner.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tokens` [INFO] [stderr] --> src/frontend/scanner.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | tokens: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/frontend/scanner.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `start` [INFO] [stderr] --> src/frontend/scanner.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | start: usize, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/frontend/scanner.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `line` [INFO] [stderr] --> src/frontend/scanner.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | line: usize, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/frontend/scanner.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `inline_offset` [INFO] [stderr] --> src/frontend/scanner.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | inline_offset: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/frontend/scanner.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `current` [INFO] [stderr] --> src/frontend/scanner.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | current: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/frontend/scanner.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `count` [INFO] [stderr] --> src/frontend/scanner.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | count: usize, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/frontend/scanner.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `slice` [INFO] [stderr] --> src/frontend/scanner.rs:38:8 [INFO] [stderr] | [INFO] [stderr] 38 | fn slice(&self, start: usize, end: usize) -> &str { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `scan_tokens` [INFO] [stderr] --> src/frontend/scanner.rs:42:8 [INFO] [stderr] | [INFO] [stderr] 42 | fn scan_tokens(&mut self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_at_end` [INFO] [stderr] --> src/frontend/scanner.rs:57:8 [INFO] [stderr] | [INFO] [stderr] 57 | fn is_at_end(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `scan_token` [INFO] [stderr] --> src/frontend/scanner.rs:61:8 [INFO] [stderr] | [INFO] [stderr] 61 | fn scan_token(&mut self) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `scan_string` [INFO] [stderr] --> src/frontend/scanner.rs:121:8 [INFO] [stderr] | [INFO] [stderr] 121 | fn scan_string(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `scan_comment` [INFO] [stderr] --> src/frontend/scanner.rs:151:8 [INFO] [stderr] | [INFO] [stderr] 151 | fn scan_comment(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `scan_new_line` [INFO] [stderr] --> src/frontend/scanner.rs:158:8 [INFO] [stderr] | [INFO] [stderr] 158 | fn scan_new_line(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `scan_number` [INFO] [stderr] --> src/frontend/scanner.rs:163:8 [INFO] [stderr] | [INFO] [stderr] 163 | fn scan_number(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `scan_identifier` [INFO] [stderr] --> src/frontend/scanner.rs:186:8 [INFO] [stderr] | [INFO] [stderr] 186 | fn scan_identifier(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `match_str` [INFO] [stderr] --> src/frontend/scanner.rs:201:8 [INFO] [stderr] | [INFO] [stderr] 201 | fn match_str(&mut self, expected: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `current_char` [INFO] [stderr] --> src/frontend/scanner.rs:210:8 [INFO] [stderr] | [INFO] [stderr] 210 | fn current_char(&mut self) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `advance` [INFO] [stderr] --> src/frontend/scanner.rs:214:8 [INFO] [stderr] | [INFO] [stderr] 214 | fn advance(&mut self) -> Option<&str> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek` [INFO] [stderr] --> src/frontend/scanner.rs:220:8 [INFO] [stderr] | [INFO] [stderr] 220 | fn peek(&mut self, n: Option) -> Option<&str> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek_next` [INFO] [stderr] --> src/frontend/scanner.rs:234:8 [INFO] [stderr] | [INFO] [stderr] 234 | fn peek_next(&mut self) -> Option<&str> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `create_token` [INFO] [stderr] --> src/frontend/scanner.rs:238:8 [INFO] [stderr] | [INFO] [stderr] 238 | fn create_token(&mut self, t: TokenType, line: usize, val: String, pos: usize) -> Token { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_token` [INFO] [stderr] --> src/frontend/scanner.rs:244:8 [INFO] [stderr] | [INFO] [stderr] 244 | fn add_token(&mut self, tok_type: TokenType) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static variable `LoxKeywords` should have an upper case name [INFO] [stderr] --> src/frontend/keywords.rs:5:20 [INFO] [stderr] | [INFO] [stderr] 5 | pub static ref LoxKeywords: HashMap<&'static str, TokenType> = { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to upper case: `LOX_KEYWORDS` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `lox` (lib) generated 54 warnings [INFO] [stderr] warning: `lox` (lib test) generated 28 warnings (28 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/lox-9aa98c859457e046) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test frontend::scanner::test_advance ... ok [INFO] [stdout] test frontend::scanner::test_scan_number ... ok [INFO] [stdout] test frontend::token::tests::test_token ... ok [INFO] [stdout] test frontend::token::tests::test_token_to_string ... ok [INFO] [stdout] test frontend::scanner::test_scan_tokens ... ok [INFO] [stdout] test frontend::scanner::test_scan_identifier ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- frontend::scanner::test_scan_identifier stdout ---- [INFO] [stdout] thread 'frontend::scanner::test_scan_identifier' panicked at 'env_logger::init should not be called after logger initialized: SetLoggerError(())', /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/env_logger-0.6.1/src/lib.rs:1043:16 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5559b2d3e94d - std::backtrace_rs::backtrace::libunwind::trace::hee598835bc88d35b [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x5559b2d3e94d - std::backtrace_rs::backtrace::trace_unsynchronized::h9cdc730ba5cf5d72 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5559b2d3e94d - std::sys_common::backtrace::_print_fmt::h75aeaf7ed30e43fa [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x5559b2d3e94d - ::fmt::h606862f787600875 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5559b2d64b9c - core::fmt::write::he803f0f418caf762 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/fmt/mod.rs:1190:17 [INFO] [stdout] 5: 0x5559b2d3a248 - std::io::Write::write_fmt::hbe7c1a63616291e2 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/io/mod.rs:1657:15 [INFO] [stdout] 6: 0x5559b2d40c27 - std::sys_common::backtrace::_print::h64d038cf8ac3e13e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x5559b2d40c27 - std::sys_common::backtrace::print::h359300b4a7fccf65 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x5559b2d40c27 - std::panicking::default_hook::{{closure}}::hf51be35e2f510149 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x5559b2d4095c - std::panicking::default_hook::h03ca0f22e1d2d25e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x5559b2d41379 - std::panicking::rust_panic_with_hook::h3b7380e99b825b63 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x5559b2d41067 - std::panicking::begin_panic_handler::{{closure}}::h8e849d0710154ce0 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x5559b2d3ee14 - std::sys_common::backtrace::__rust_end_short_backtrace::hedcdaddbd4c46cc5 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x5559b2d40d79 - rust_begin_unwind [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x5559b2b53673 - core::panicking::panic_fmt::he1bbc7336d49a357 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x5559b2b53763 - core::result::unwrap_failed::h719f957ed74f93fd [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/result.rs:1749:5 [INFO] [stdout] 16: 0x5559b2ba485e - core::result::Result::expect::hb22a7a09ada96089 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/result.rs:1022:23 [INFO] [stdout] 17: 0x5559b2b9ce21 - env_logger::init::hd71714bfbc5fd4c7 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/env_logger-0.6.1/src/lib.rs:1043:5 [INFO] [stdout] 18: 0x5559b2b59d87 - lox::frontend::scanner::tests::init::hafe69832364e81eb [INFO] [stdout] at /opt/rustwide/workdir/src/frontend/scanner.rs:254:9 [INFO] [stdout] 19: 0x5559b2b556ac - lox::frontend::scanner::test_scan_identifier::h0c9b0f24afc76f9d [INFO] [stdout] at /opt/rustwide/workdir/src/frontend/scanner.rs:264:5 [INFO] [stdout] 20: 0x5559b2b5568a - lox::frontend::scanner::test_scan_identifier::{{closure}}::h3b54231fc776447c [INFO] [stdout] at /opt/rustwide/workdir/src/frontend/scanner.rs:263:1 [INFO] [stdout] 21: 0x5559b2b5f33e - core::ops::function::FnOnce::call_once::h5ab3526527bc3f09 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x5559b2b8d113 - core::ops::function::FnOnce::call_once::h2a47b4b927cb6ca5 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 23: 0x5559b2b8d113 - test::__rust_begin_short_backtrace::h594ef8055a183b9b [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/test/src/lib.rs:575:5 [INFO] [stdout] 24: 0x5559b2b8bdf4 - as core::ops::function::FnOnce>::call_once::hb40cbb8bc3e1be15 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9 [INFO] [stdout] 25: 0x5559b2b8bdf4 - as core::ops::function::FnOnce<()>>::call_once::ha4f2bd3b806745a0 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 26: 0x5559b2b8bdf4 - std::panicking::try::do_call::h92af9f8bc77a5987 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40 [INFO] [stdout] 27: 0x5559b2b8bdf4 - std::panicking::try::h9df49eeae42572b7 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19 [INFO] [stdout] 28: 0x5559b2b8bdf4 - std::panic::catch_unwind::h101dbadc82bbe0fd [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14 [INFO] [stdout] 29: 0x5559b2b8bdf4 - test::run_test_in_process::h2ad7bffb068e750a [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/test/src/lib.rs:598:18 [INFO] [stdout] 30: 0x5559b2b8bdf4 - test::run_test::run_test_inner::{{closure}}::h384faf46554c5acb [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/test/src/lib.rs:492:39 [INFO] [stdout] 31: 0x5559b2b95711 - test::run_test::run_test_inner::{{closure}}::h17cfe94835a46685 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/test/src/lib.rs:519:37 [INFO] [stdout] 32: 0x5559b2b95711 - std::sys_common::backtrace::__rust_begin_short_backtrace::h82709e5086312627 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 33: 0x5559b2b61d8f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hdfea66a201b39571 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 34: 0x5559b2b61d8f - as core::ops::function::FnOnce<()>>::call_once::h4912df03598e67fa [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 35: 0x5559b2b61d8f - std::panicking::try::do_call::h6d5dc1045d0eade8 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40 [INFO] [stdout] 36: 0x5559b2b61d8f - std::panicking::try::hbc897fc717ec6571 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19 [INFO] [stdout] 37: 0x5559b2b61d8f - std::panic::catch_unwind::h27f1e958c91391ad [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14 [INFO] [stdout] 38: 0x5559b2b61d8f - std::thread::Builder::spawn_unchecked_::{{closure}}::h1b42e48537edc3c0 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 39: 0x5559b2b61d8f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h9137b3d6d2a88354 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 40: 0x5559b2d47073 - as core::ops::function::FnOnce>::call_once::hf70ac038171e3e1a [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9 [INFO] [stdout] 41: 0x5559b2d47073 - as core::ops::function::FnOnce>::call_once::he6690128792365ad [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9 [INFO] [stdout] 42: 0x5559b2d47073 - std::sys::unix::thread::Thread::new::thread_start::ha07928d93d5a5ec9 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 43: 0x7fe79d7f7609 - start_thread [INFO] [stdout] 44: 0x7fe79d5c7163 - clone [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] frontend::scanner::test_scan_identifier [INFO] [stdout] [INFO] [stdout] test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] running `Command { std: "docker" "inspect" "a880ba4db9fc095eb40690ecd8556ed40479c46a375cd1c5ceb6b39325266103", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a880ba4db9fc095eb40690ecd8556ed40479c46a375cd1c5ceb6b39325266103", kill_on_drop: false }` [INFO] [stdout] a880ba4db9fc095eb40690ecd8556ed40479c46a375cd1c5ceb6b39325266103