[INFO] cloning repository https://github.com/apskhem/c-webassembly [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/apskhem/c-webassembly" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapskhem%2Fc-webassembly", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapskhem%2Fc-webassembly'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8c18e9c1bca70d8e3a8cc545e1943cecf94c23da [INFO] checking apskhem/c-webassembly/8c18e9c1bca70d8e3a8cc545e1943cecf94c23da against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapskhem%2Fc-webassembly" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/apskhem/c-webassembly on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/apskhem/c-webassembly [INFO] removed 0 missing tests [INFO] finished tweaking git repo https://github.com/apskhem/c-webassembly [INFO] tweaked toml for git repo https://github.com/apskhem/c-webassembly written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/apskhem/c-webassembly 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded predicates v2.0.2 [INFO] [stderr] Downloaded assert_cmd v2.0.1 [INFO] [stderr] Downloaded owo-colors v2.1.0 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e15c122ab23b754e9df89da6649742e922fd20f16fb41212941ee0bc6f08eeb [INFO] running `Command { std: "docker" "start" "-a" "3e15c122ab23b754e9df89da6649742e922fd20f16fb41212941ee0bc6f08eeb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e15c122ab23b754e9df89da6649742e922fd20f16fb41212941ee0bc6f08eeb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e15c122ab23b754e9df89da6649742e922fd20f16fb41212941ee0bc6f08eeb", kill_on_drop: false }` [INFO] [stdout] 3e15c122ab23b754e9df89da6649742e922fd20f16fb41212941ee0bc6f08eeb [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe621c8f9376825df652fcd79c0921cd041d8dae39d7f8a864238851be9215b6 [INFO] running `Command { std: "docker" "start" "-a" "fe621c8f9376825df652fcd79c0921cd041d8dae39d7f8a864238851be9215b6", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling libc v0.2.102 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling syn v1.0.78 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking unicode-xid v0.2.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Checking predicates-core v1.0.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking quote v1.0.10 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking itertools v0.10.1 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking treeline v0.1.0 [INFO] [stderr] Checking owo-colors v2.1.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Checking predicates-tree v1.0.3 [INFO] [stderr] Checking predicates v2.0.2 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking assert_cmd v2.0.1 [INFO] [stderr] Compiling structopt-derive v0.4.16 [INFO] [stderr] Checking structopt v0.3.23 [INFO] [stderr] Compiling c-webassembly v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> src/token.rs:163:31 [INFO] [stdout] | [INFO] [stdout] 163 | let RawToken { value, range } = value; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `range: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let ast = parser::parse_syntax(&tokens)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> src/token.rs:163:31 [INFO] [stdout] | [INFO] [stdout] 163 | let RawToken { value, range } = value; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `range: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Comment` is more private than the item `TokenGrammar::Comment::0` [INFO] [stdout] --> src/token_grammar.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | Comment(Comment), [INFO] [stdout] | ^^^^^^^ field `TokenGrammar::Comment::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Comment` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | enum Comment { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Keyword` is more private than the item `TokenGrammar::Keyword::0` [INFO] [stdout] --> src/token_grammar.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | Keyword(Keyword), [INFO] [stdout] | ^^^^^^^ field `TokenGrammar::Keyword::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Keyword` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | enum Keyword { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Type` is more private than the item `TokenGrammar::Type::0` [INFO] [stdout] --> src/token_grammar.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | Type(Type), [INFO] [stdout] | ^^^^ field `TokenGrammar::Type::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Type` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | enum Type { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Identifier` is more private than the item `TokenGrammar::Identifier::0` [INFO] [stdout] --> src/token_grammar.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | Identifier(Identifier), [INFO] [stdout] | ^^^^^^^^^^ field `TokenGrammar::Identifier::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Identifier` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Identifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Literal` is more private than the item `TokenGrammar::Literal::0` [INFO] [stdout] --> src/token_grammar.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | Literal(Literal), [INFO] [stdout] | ^^^^^^^ field `TokenGrammar::Literal::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Literal` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | enum Literal { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Symbol` is more private than the item `TokenGrammar::Symbol::0` [INFO] [stdout] --> src/token_grammar.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | Symbol(Symbol) [INFO] [stdout] | ^^^^^^ field `TokenGrammar::Symbol::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Symbol` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | enum Symbol { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_file` is never used [INFO] [stdout] --> src/io.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn write_file(path: &str, buf: &[u8]) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GrammarError` is never used [INFO] [stdout] --> src/grammar.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum GrammarError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `value` and `range` are never used [INFO] [stdout] --> src/token.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 142 | impl<'a> RawToken<'a> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn value(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub const fn range(&self) -> &Range { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Comment` is never constructed [INFO] [stdout] --> src/token_grammar.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TokenGrammar { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 9 | Comment(Comment), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenGrammar` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Any` is never constructed [INFO] [stdout] --> src/token_grammar.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | enum Comment { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 19 | Any [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Comment` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Any` is never constructed [INFO] [stdout] --> src/token_grammar.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | enum Keyword { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 24 | ByOriginal(token::Keyword), [INFO] [stdout] 25 | Any [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keyword` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ByOriginal` is never constructed [INFO] [stdout] --> src/token_grammar.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | enum Type { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 30 | ByOriginal(token::Type), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Any` is never constructed [INFO] [stdout] --> src/token_grammar.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 40 | enum Literal { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 43 | Any [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Any` is never constructed [INFO] [stdout] --> src/token_grammar.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 47 | enum Symbol { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 51 | Any [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `any_comment`, `any_keyword`, `from_type`, `any_literal`, and `any_symbol` are never used [INFO] [stdout] --> src/token_grammar.rs:129:18 [INFO] [stdout] | [INFO] [stdout] 54 | impl TokenGrammar { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub const fn any_comment() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub const fn any_keyword() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub const fn from_type(o: token::Type) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub const fn any_literal() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub const fn any_symbol() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ln` and `col` are never used [INFO] [stdout] --> src/tokenizer.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 25 | impl CharPositionCounter { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | const fn ln(&self) -> usize { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 46 | const fn col(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `outfile` and `opt_level` are never read [INFO] [stdout] --> src/cli.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Opt { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | outfile: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | opt_level: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opt_level` is never used [INFO] [stdout] --> src/cli.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Opt { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn opt_level(&self) -> OptLevel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let ast = parser::parse_syntax(&tokens)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Comment` is more private than the item `TokenGrammar::Comment::0` [INFO] [stdout] --> src/token_grammar.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | Comment(Comment), [INFO] [stdout] | ^^^^^^^ field `TokenGrammar::Comment::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Comment` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | enum Comment { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Keyword` is more private than the item `TokenGrammar::Keyword::0` [INFO] [stdout] --> src/token_grammar.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | Keyword(Keyword), [INFO] [stdout] | ^^^^^^^ field `TokenGrammar::Keyword::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Keyword` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | enum Keyword { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Type` is more private than the item `TokenGrammar::Type::0` [INFO] [stdout] --> src/token_grammar.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | Type(Type), [INFO] [stdout] | ^^^^ field `TokenGrammar::Type::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Type` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | enum Type { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Identifier` is more private than the item `TokenGrammar::Identifier::0` [INFO] [stdout] --> src/token_grammar.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | Identifier(Identifier), [INFO] [stdout] | ^^^^^^^^^^ field `TokenGrammar::Identifier::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Identifier` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Identifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Literal` is more private than the item `TokenGrammar::Literal::0` [INFO] [stdout] --> src/token_grammar.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | Literal(Literal), [INFO] [stdout] | ^^^^^^^ field `TokenGrammar::Literal::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Literal` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | enum Literal { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_grammar::Symbol` is more private than the item `TokenGrammar::Symbol::0` [INFO] [stdout] --> src/token_grammar.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | Symbol(Symbol) [INFO] [stdout] | ^^^^^^ field `TokenGrammar::Symbol::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `token_grammar::Symbol` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/token_grammar.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | enum Symbol { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_file` is never used [INFO] [stdout] --> src/io.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn write_file(path: &str, buf: &[u8]) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GrammarError` is never used [INFO] [stdout] --> src/grammar.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum GrammarError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `value` and `range` are never used [INFO] [stdout] --> src/token.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 142 | impl<'a> RawToken<'a> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn value(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub const fn range(&self) -> &Range { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Comment` is never constructed [INFO] [stdout] --> src/token_grammar.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TokenGrammar { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 9 | Comment(Comment), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenGrammar` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Any` is never constructed [INFO] [stdout] --> src/token_grammar.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | enum Comment { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 19 | Any [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Comment` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Any` is never constructed [INFO] [stdout] --> src/token_grammar.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | enum Keyword { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 24 | ByOriginal(token::Keyword), [INFO] [stdout] 25 | Any [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keyword` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ByOriginal` is never constructed [INFO] [stdout] --> src/token_grammar.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | enum Type { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 30 | ByOriginal(token::Type), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Any` is never constructed [INFO] [stdout] --> src/token_grammar.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 40 | enum Literal { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 43 | Any [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Any` is never constructed [INFO] [stdout] --> src/token_grammar.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 47 | enum Symbol { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 51 | Any [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `any_comment`, `any_keyword`, `from_type`, `any_literal`, and `any_symbol` are never used [INFO] [stdout] --> src/token_grammar.rs:129:18 [INFO] [stdout] | [INFO] [stdout] 54 | impl TokenGrammar { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub const fn any_comment() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub const fn any_keyword() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub const fn from_type(o: token::Type) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub const fn any_literal() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub const fn any_symbol() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ln` and `col` are never used [INFO] [stdout] --> src/tokenizer.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 25 | impl CharPositionCounter { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | const fn ln(&self) -> usize { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 46 | const fn col(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `outfile` and `opt_level` are never read [INFO] [stdout] --> src/cli.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Opt { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | outfile: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | opt_level: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opt_level` is never used [INFO] [stdout] --> src/cli.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Opt { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn opt_level(&self) -> OptLevel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.50s [INFO] running `Command { std: "docker" "inspect" "fe621c8f9376825df652fcd79c0921cd041d8dae39d7f8a864238851be9215b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe621c8f9376825df652fcd79c0921cd041d8dae39d7f8a864238851be9215b6", kill_on_drop: false }` [INFO] [stdout] fe621c8f9376825df652fcd79c0921cd041d8dae39d7f8a864238851be9215b6