[INFO] cloning repository https://github.com/illumi-engineering/maple-lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/illumi-engineering/maple-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fillumi-engineering%2Fmaple-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fillumi-engineering%2Fmaple-lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3b7964d733757ff6697a7be44f4250e534dc9a1b [INFO] checking illumi-engineering/maple-lang against master#9e293ae9f8abecb0be5105787d181518c9012a19 for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fillumi-engineering%2Fmaple-lang" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/illumi-engineering/maple-lang [INFO] finished tweaking git repo https://github.com/illumi-engineering/maple-lang [INFO] tweaked toml for git repo https://github.com/illumi-engineering/maple-lang written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/illumi-engineering/maple-lang on toolchain 9e293ae9f8abecb0be5105787d181518c9012a19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/illumi-engineering/maple-lang already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.71 [INFO] [stderr] Downloaded quote v1.0.33 [INFO] [stderr] Downloaded serde v1.0.193 [INFO] [stderr] Downloaded error-chain v0.12.4 [INFO] [stderr] Downloaded rustc-demangle v0.1.23 [INFO] [stderr] Downloaded miniz_oxide v0.7.1 [INFO] [stderr] Downloaded serde_derive v1.0.193 [INFO] [stderr] Downloaded cc v1.0.83 [INFO] [stderr] Downloaded backtrace v0.3.69 [INFO] [stderr] Downloaded memchr v2.6.4 [INFO] [stderr] Downloaded syn v2.0.42 [INFO] [stderr] Downloaded object v0.32.1 [INFO] [stderr] Downloaded libc v0.2.151 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 44299c53bf81ff01e96044d4de8f1b989fdd68b7e137e38d01ceb1fa41e0d7ae [INFO] running `Command { std: "docker" "start" "-a" "44299c53bf81ff01e96044d4de8f1b989fdd68b7e137e38d01ceb1fa41e0d7ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "44299c53bf81ff01e96044d4de8f1b989fdd68b7e137e38d01ceb1fa41e0d7ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44299c53bf81ff01e96044d4de8f1b989fdd68b7e137e38d01ceb1fa41e0d7ae", kill_on_drop: false }` [INFO] [stdout] 44299c53bf81ff01e96044d4de8f1b989fdd68b7e137e38d01ceb1fa41e0d7ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab3fa8432fce86e5277ad1354f384f5ccf30f566dae40f2af10287be701e6fdb [INFO] running `Command { std: "docker" "start" "-a" "ab3fa8432fce86e5277ad1354f384f5ccf30f566dae40f2af10287be701e6fdb", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling proc-macro2 v1.0.71 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking gimli v0.28.1 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Checking maple-ir v0.1.0 (/opt/rustwide/workdir/crates/maple-ir) [INFO] [stdout] warning: unused imports: `types::Type`, `values::Value`, and `variable::VariableDeclaration` [INFO] [stdout] --> crates/maple-ir/src/spread.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{variable::VariableDeclaration, types::Type, values::Value}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `types::Type`, `values::Value`, and `variable::VariableDeclaration` [INFO] [stdout] --> crates/maple-ir/src/spread.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{variable::VariableDeclaration, types::Type, values::Value}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reciever_values` is never read [INFO] [stdout] --> crates/maple-ir/src/prototype.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PrototypeMethod<'a,> { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 8 | closure: &'a mut Closure<'a>, [INFO] [stdout] 9 | reciever_values: Spread, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `receiver` is never read [INFO] [stdout] --> crates/maple-ir/src/prototype.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Prototype<'a, T : Type, V : Value> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 26 | pub(crate) receiver: V, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reciever_values` is never read [INFO] [stdout] --> crates/maple-ir/src/prototype.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PrototypeMethod<'a,> { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 8 | closure: &'a mut Closure<'a>, [INFO] [stdout] 9 | reciever_values: Spread, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `receiver` is never read [INFO] [stdout] --> crates/maple-ir/src/prototype.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Prototype<'a, T : Type, V : Value> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 26 | pub(crate) receiver: V, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking object v0.32.1 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.42 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Checking maple-lexer v0.1.0 (/opt/rustwide/workdir/crates/maple-lexer) [INFO] [stdout] warning: unexpected `cfg` condition name: `has_error_description_deprecated` [INFO] [stdout] --> crates/maple-lexer/src/errors.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / error_chain!{ [INFO] [stdout] 6 | | errors { [INFO] [stdout] 7 | | /// Got to the end of the input stream but was expecting more. [INFO] [stdout] 8 | | UnexpectedEOF { [INFO] [stdout] ... | [INFO] [stdout] 33 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 32 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `impl_error_chain_processed` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `has_error_description_deprecated` [INFO] [stdout] --> crates/maple-lexer/src/errors.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / error_chain!{ [INFO] [stdout] 6 | | errors { [INFO] [stdout] 7 | | /// Got to the end of the input stream but was expecting more. [INFO] [stdout] 8 | | UnexpectedEOF { [INFO] [stdout] ... | [INFO] [stdout] 33 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 32 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `impl_error_chain_processed` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:109:40 [INFO] [stdout] | [INFO] [stdout] 109 | Some(ch) if ch.is_digit(10) => return bail!("Identifiers can't start with a number"), [INFO] [stdout] | ^^^^^^^---------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | None => return bail!(ErrorKind::UnexpectedEOF), [INFO] [stdout] | ^^^^^^^------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:109:40 [INFO] [stdout] | [INFO] [stdout] 109 | Some(ch) if ch.is_digit(10) => return bail!("Identifiers can't start with a number"), [INFO] [stdout] | ^^^^^^^---------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | None => return bail!(ErrorKind::UnexpectedEOF), [INFO] [stdout] | ^^^^^^^------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 208 | '_' => (TokenKind::Underscore, 1), [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 224 | c @ '_' | c if c.is_alphabetic() => tokenize_identifier(data) [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 208 | '_' => (TokenKind::Underscore, 1), [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 224 | c @ '_' | c if c.is_alphabetic() => tokenize_identifier(data) [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TokenKind` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum TokenKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_while` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn take_while(data: &str, mut pred: F) -> Result<(&str, usize)> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokenize_identifier` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn tokenize_identifier(data: &str) -> Result<(TokenKind, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokenize_number` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn tokenize_number(data: &str) -> Result<(TokenKind, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip_whitespace` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:149:4 [INFO] [stdout] | [INFO] [stdout] 149 | fn skip_whitespace(data: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip_comments` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn skip_comments(src: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip_until` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn skip_until<'a>(mut src: &'a str, pattern: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:178:4 [INFO] [stdout] | [INFO] [stdout] 178 | fn skip(src: &str) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokenize_single_token` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn tokenize_single_token(data: &str) -> Result<(TokenKind, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tokenizer` is never constructed [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | struct Tokenizer<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next_token`, `skip_whitespace`, and `chomp` are never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 237 | impl<'a> Tokenizer<'a> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 238 | fn new(src: &str) -> Tokenizer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | fn next_token(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | fn skip_whitespace(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | fn chomp(&mut self, num_bytes: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokenize` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn tokenize(src: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:295:12 [INFO] [stdout] | [INFO] [stdout] 295 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:306:12 [INFO] [stdout] | [INFO] [stdout] 303 | impl Token { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 306 | pub fn new>(span: Span, kind: K) -> Token { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Span` is never constructed [INFO] [stdout] --> crates/maple-lexer/src/codemap.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Span(usize); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `dummy` is never used [INFO] [stdout] --> crates/maple-lexer/src/codemap.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl Span { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) fn dummy() -> Span { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeMap` is never constructed [INFO] [stdout] --> crates/maple-lexer/src/codemap.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct CodeMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileMap` is never constructed [INFO] [stdout] --> crates/maple-lexer/src/codemap.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct FileMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert_file`, `lookup`, and `files` are never used [INFO] [stdout] --> crates/maple-lexer/src/codemap.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl CodeMap { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 47 | /// Create a new, empty `CodeMap`. [INFO] [stdout] 48 | pub fn new() -> CodeMap { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn insert_file(&mut self, filename: F, contents: C) -> Rc [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn lookup(&self, span: Span) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn files(&self) -> &[Rc] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `filename`, `contents`, `lookup`, and `range_of` are never used [INFO] [stdout] --> crates/maple-lexer/src/codemap.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl FileMap { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 96 | /// Get the name of this `FileMap`. [INFO] [stdout] 97 | pub fn filename(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn contents(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn lookup(&self, span: Span) -> Option<&str> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn range_of(&self, span: Span) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_span`, `reverse_lookup`, `merge`, and `register_tokens` are never used [INFO] [stdout] --> crates/maple-lexer/src/codemap.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 132 | impl FileMap { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn insert_span(&self, start: usize, end: usize) -> Span { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | fn reverse_lookup(&self, needle: &Range) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn merge(&self, first: Span, second: Span) -> Span { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn register_tokens(&self, tokens: Vec<(TokenKind, usize, usize)>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 238 | fn new(src: &str) -> Tokenizer { [INFO] [stdout] | ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 238 | fn new(src: &str) -> Tokenizer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:295:12 [INFO] [stdout] | [INFO] [stdout] 295 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:306:12 [INFO] [stdout] | [INFO] [stdout] 303 | impl Token { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 306 | pub fn new>(span: Span, kind: K) -> Token { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `files` is never used [INFO] [stdout] --> crates/maple-lexer/src/codemap.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl CodeMap { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn files(&self) -> &[Rc] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `register_tokens` is never used [INFO] [stdout] --> crates/maple-lexer/src/codemap.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 132 | impl FileMap { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn register_tokens(&self, tokens: Vec<(TokenKind, usize, usize)>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> crates/maple-lexer/src/lex.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 238 | fn new(src: &str) -> Tokenizer { [INFO] [stdout] | ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 238 | fn new(src: &str) -> Tokenizer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.48s [INFO] running `Command { std: "docker" "inspect" "ab3fa8432fce86e5277ad1354f384f5ccf30f566dae40f2af10287be701e6fdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab3fa8432fce86e5277ad1354f384f5ccf30f566dae40f2af10287be701e6fdb", kill_on_drop: false }` [INFO] [stdout] ab3fa8432fce86e5277ad1354f384f5ccf30f566dae40f2af10287be701e6fdb