[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] checking baoziv587/LoxLang against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaoziv587%2FLoxLang" "/workspace/builds/worker-30/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-30/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/baoziv587/LoxLang on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-30/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pretty_env_logger v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b565d1e713f9d55590f6d653f4e5201d981a1e1fc76797908dd41c4c8a9ee7c1 [INFO] running `Command { std: "docker" "start" "-a" "b565d1e713f9d55590f6d653f4e5201d981a1e1fc76797908dd41c4c8a9ee7c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b565d1e713f9d55590f6d653f4e5201d981a1e1fc76797908dd41c4c8a9ee7c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b565d1e713f9d55590f6d653f4e5201d981a1e1fc76797908dd41c4c8a9ee7c1", kill_on_drop: false }` [INFO] [stdout] b565d1e713f9d55590f6d653f4e5201d981a1e1fc76797908dd41c4c8a9ee7c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b43109020a53063a8ca80978560fc6a3778073aa7d2269f9fc0cdf641c493d9 [INFO] running `Command { std: "docker" "start" "-a" "1b43109020a53063a8ca80978560fc6a3778073aa7d2269f9fc0cdf641c493d9", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] libc v0.2.58: default, std [INFO] [stderr] [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling regex v1.1.7 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking utf8-ranges v1.0.3 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Checking termcolor v1.0.5 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking humantime v1.2.0 [INFO] [stderr] Checking regex-syntax v0.6.7 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Checking aho-corasick v0.7.3 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking env_logger v0.6.1 [INFO] [stderr] Checking pretty_env_logger v0.3.0 [INFO] [stderr] Checking lox v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/cli/mod.rs (1 fix) [INFO] [stderr] Fixed src/frontend/scanner.rs (2 fixes) [INFO] [stderr] Fixed src/result.rs (1 fix) [INFO] [stderr] Fixed src/core/lox.rs (1 fix) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/frontend/scanner.rs:325:14 [INFO] [stdout] | [INFO] [stdout] 325 | let _f = File::open("./src/fixtures/ex1.lox").and_then(|mut f| f.read_to_string(&mut src)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/frontend/scanner.rs:343:14 [INFO] [stdout] | [INFO] [stdout] 343 | let _f = File::open("./src/fixtures/ex1.lox").and_then(|mut f| f.read_to_string(&mut src)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [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] = note: `#[warn(unused_imports)]` on by default [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: 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: 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] | ^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 146 | content.to_string(), [INFO] [stdout] | ------- immutable borrow later used 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] | ^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 181 | value.to_string(), [INFO] [stdout] | ----- immutable borrow later used 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] error: aborting due to 2 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lox` due to 3 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: 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: 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: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "1b43109020a53063a8ca80978560fc6a3778073aa7d2269f9fc0cdf641c493d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b43109020a53063a8ca80978560fc6a3778073aa7d2269f9fc0cdf641c493d9", kill_on_drop: false }` [INFO] [stdout] 1b43109020a53063a8ca80978560fc6a3778073aa7d2269f9fc0cdf641c493d9