[INFO] cloning repository https://github.com/fuixone/cheetah [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fuixone/cheetah" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffuixone%2Fcheetah", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffuixone%2Fcheetah'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 12680d24024fb20c04d3343db49fac7f3be92616 [INFO] testing fuixone/cheetah against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffuixone%2Fcheetah" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/fuixone/cheetah [INFO] finished tweaking git repo https://github.com/fuixone/cheetah [INFO] tweaked toml for git repo https://github.com/fuixone/cheetah written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/fuixone/cheetah on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/fuixone/cheetah 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff0acdfc5ca54af8d0b78a8c57b81c6178d5ec2f720b8216936c77f48124112e [INFO] running `Command { std: "docker" "start" "-a" "ff0acdfc5ca54af8d0b78a8c57b81c6178d5ec2f720b8216936c77f48124112e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff0acdfc5ca54af8d0b78a8c57b81c6178d5ec2f720b8216936c77f48124112e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff0acdfc5ca54af8d0b78a8c57b81c6178d5ec2f720b8216936c77f48124112e", kill_on_drop: false }` [INFO] [stdout] ff0acdfc5ca54af8d0b78a8c57b81c6178d5ec2f720b8216936c77f48124112e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e72cc8041378db60b821999f694bdde78887101dc1e407c162e16f1f046eda1c [INFO] running `Command { std: "docker" "start" "-a" "e72cc8041378db60b821999f694bdde78887101dc1e407c162e16f1f046eda1c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling serde_json v1.0.136 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling uuid v1.12.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling cheetah v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::read::tokenizer::ValueType` [INFO] [stdout] --> src/test/tokenizer/test.rs:3:69 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::read::tokenizer::{self, Identifier, Literal, TokenTrait, ValueType}; [INFO] [stdout] | ^^^^^^^^^ no `ValueType` in `read::tokenizer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ValueType` in this scope [INFO] [stdout] --> src/read/tokenizer.rs:326:28 [INFO] [stdout] | [INFO] [stdout] 326 | fn get_value(&self) -> ValueType { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/config.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Deserializer, Serialize}; [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 import: `crate::config` [INFO] [stdout] --> src/test/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::config; // Import the `config` module (from `lib.rs`) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config` [INFO] [stdout] --> src/test/license/test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::config; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `macros` and `test_utils` [INFO] [stdout] --> src/test/license/test.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::utils::{test_utils, macros}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/test/tokenizer/test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenTrait` and `self` [INFO] [stdout] --> src/test/tokenizer/test.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::read::tokenizer::{self, Identifier, Literal, TokenTrait, ValueType}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::test_utils` [INFO] [stdout] --> src/test/tokenizer/test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::utils::test_utils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_eq_with_cleanup` and `assert_with_cleanup` [INFO] [stdout] --> src/test/tokenizer/test.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{assert_eq_with_cleanup, assert_with_cleanup}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> src/generators/license.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/generators/license.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{write, Display}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de` [INFO] [stdout] --> src/generators/license.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{de, Deserialize, Deserializer, Serialize}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error` and `Visitor` [INFO] [stdout] --> src/generators/license.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::de::{Error, Visitor}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Empty` [INFO] [stdout] --> src/generators/license.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::config::{Empty, EmptyGeneric, Generator, KeyOfGeneric, Property, PropertyWithDefault}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/read/read.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/read/read.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/read/tokenizer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> src/read/tokenizer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/read/tokenizer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `byte_at_index` has 2 parameters but the declaration in trait `SharedToken::byte_at_index` has 1 [INFO] [stdout] --> src/read/tokenizer.rs:127:22 [INFO] [stdout] | [INFO] [stdout] 117 | fn byte_at_index(&self) -> u8; [INFO] [stdout] | ----- trait requires 1 parameter [INFO] [stdout] ... [INFO] [stdout] 127 | fn byte_at_index(&self, index: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected 1 parameter, found 2 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `byte_at_index` [INFO] [stdout] --> src/read/tokenizer.rs:249:1 [INFO] [stdout] | [INFO] [stdout] 117 | fn byte_at_index(&self) -> u8; [INFO] [stdout] | ------------------------------ `byte_at_index` from trait [INFO] [stdout] ... [INFO] [stdout] 249 | impl SharedToken for Identifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `byte_at_index` in implementation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `byte_at_index` [INFO] [stdout] --> src/read/tokenizer.rs:325:1 [INFO] [stdout] | [INFO] [stdout] 117 | fn byte_at_index(&self) -> u8; [INFO] [stdout] | ------------------------------ `byte_at_index` from trait [INFO] [stdout] ... [INFO] [stdout] 325 | impl SharedToken for Literal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `byte_at_index` in implementation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/read/tokenizer.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 37 | Self::set_possible_tokens_from_u8( [INFO] [stdout] | --------------------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 40 | byte, [INFO] [stdout] | ^^^^ expected `u8`, found `&u8` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/read/tokenizer.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn set_possible_tokens_from_u8( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | byte: u8, [INFO] [stdout] | ---- [INFO] [stdout] help: consider dereferencing the borrow [INFO] [stdout] | [INFO] [stdout] 40 | *byte, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CharType` [INFO] [stdout] --> src/read/tokenizer.rs:88:65 [INFO] [stdout] | [INFO] [stdout] 88 | let return_char = next_char.map(|character| CharType::Char(character)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `CharType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/read/tokenizer.rs:129:57 [INFO] [stdout] | [INFO] [stdout] 129 | Token::Identifier(identifier) => identifier.byte_at_index(index), [INFO] [stdout] | ^^^^^^^^^^^^^ ----- unexpected argument of type `u8` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/read/tokenizer.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn byte_at_index(&self) -> u8; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 129 - Token::Identifier(identifier) => identifier.byte_at_index(index), [INFO] [stdout] 129 + Token::Identifier(identifier) => identifier.byte_at_index(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/read/tokenizer.rs:130:40 [INFO] [stdout] | [INFO] [stdout] 128 | / match self { [INFO] [stdout] 129 | | Token::Identifier(identifier) => identifier.byte_at_index(index), [INFO] [stdout] | | ------------------------------- this is found to be of type `u8` [INFO] [stdout] 130 | | Token::Literal(literal) => literal.get_value(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ expected `u8`, found `&[u8]` [INFO] [stdout] 131 | | } [INFO] [stdout] | |_________- `match` arms have incompatible types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:328:35 [INFO] [stdout] | [INFO] [stdout] 328 | Literal::BACKSLASH => ValueType::U8(0x5C), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:329:41 [INFO] [stdout] | [INFO] [stdout] 329 | Literal::CARRIAGE_RETURN => ValueType::U8(0x0D), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:330:35 [INFO] [stdout] | [INFO] [stdout] 330 | Literal::LINE_FEED => ValueType::U8(0x0A), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:331:38 [INFO] [stdout] | [INFO] [stdout] 331 | Literal::SINGLE_QUOTE => ValueType::U8(0x27), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:332:38 [INFO] [stdout] | [INFO] [stdout] 332 | Literal::DOUBLE_QUOTE => ValueType::U8(0x22), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:333:35 [INFO] [stdout] | [INFO] [stdout] 333 | Literal::BACK_TICK => ValueType::U8(0x60), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:334:30 [INFO] [stdout] | [INFO] [stdout] 334 | Literal::PLUS => ValueType::U8(0x2B), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:335:31 [INFO] [stdout] | [INFO] [stdout] 335 | Literal::MINUS => ValueType::U8(0x2D), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:336:31 [INFO] [stdout] | [INFO] [stdout] 336 | Literal::EQUAL => ValueType::U8(0x3D), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:337:34 [INFO] [stdout] | [INFO] [stdout] 337 | Literal::ASTERISK => ValueType::U8(0x2A), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:338:31 [INFO] [stdout] | [INFO] [stdout] 338 | Literal::SLASH => ValueType::U8(0x2F), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:339:38 [INFO] [stdout] | [INFO] [stdout] 339 | Literal::GREATER_THAN => ValueType::U8(0x3E), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:340:35 [INFO] [stdout] | [INFO] [stdout] 340 | Literal::LESS_THAN => ValueType::U8(0x3C), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:341:35 [INFO] [stdout] | [INFO] [stdout] 341 | Literal::AMPERSAND => ValueType::U8(0x26), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:342:31 [INFO] [stdout] | [INFO] [stdout] 342 | Literal::SPACE => ValueType::U8(0x20), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:343:29 [INFO] [stdout] | [INFO] [stdout] 343 | Literal::TAB => ValueType::U8(0x09), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:344:31 [INFO] [stdout] | [INFO] [stdout] 344 | Literal::COMMA => ValueType::U8(0x2C), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:345:32 [INFO] [stdout] | [INFO] [stdout] 345 | Literal::PERIOD => ValueType::U8(0x2E), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:346:35 [INFO] [stdout] | [INFO] [stdout] 346 | Literal::SEMICOLON => ValueType::U8(0x3B), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:347:31 [INFO] [stdout] | [INFO] [stdout] 347 | Literal::COLON => ValueType::U8(0x3A), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:348:42 [INFO] [stdout] | [INFO] [stdout] 348 | Literal::EXCLAMATION_MARK => ValueType::U8(0x21), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:349:39 [INFO] [stdout] | [INFO] [stdout] 349 | Literal::QUESTION_MARK => ValueType::U8(0x3F), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:350:30 [INFO] [stdout] | [INFO] [stdout] 350 | Literal::PIPE => ValueType::U8(0x7C), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:351:31 [INFO] [stdout] | [INFO] [stdout] 351 | Literal::CARET => ValueType::U8(0x5E), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:352:43 [INFO] [stdout] | [INFO] [stdout] 352 | Literal::OPEN_BRACKET_LEFT => ValueType::U8(0x28), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:353:44 [INFO] [stdout] | [INFO] [stdout] 353 | Literal::OPEN_BRACKET_RIGHT => ValueType::U8(0x29), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:354:45 [INFO] [stdout] | [INFO] [stdout] 354 | Literal::SQUARE_BRACKET_LEFT => ValueType::U8(0x5B), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:355:46 [INFO] [stdout] | [INFO] [stdout] 355 | Literal::SQUARE_BRACKET_RIGHT => ValueType::U8(0x5D), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:356:44 [INFO] [stdout] | [INFO] [stdout] 356 | Literal::CURLY_BRACKET_LEFT => ValueType::U8(0x7B), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:357:45 [INFO] [stdout] | [INFO] [stdout] 357 | Literal::CURLY_BRACKET_RIGHT => ValueType::U8(0x7D), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:358:31 [INFO] [stdout] | [INFO] [stdout] 358 | Literal::TILDE => ValueType::U8(0x7E), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:359:32 [INFO] [stdout] | [INFO] [stdout] 359 | Literal::DOLLAR => ValueType::U8(0x24), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:360:28 [INFO] [stdout] | [INFO] [stdout] 360 | Literal::AT => ValueType::U8(0x40), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:361:36 [INFO] [stdout] | [INFO] [stdout] 361 | Literal::UNDERSCORE => ValueType::U8(0x5F), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:362:33 [INFO] [stdout] | [INFO] [stdout] 362 | Literal::PERCENT => ValueType::U8(0x25), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_comment` [INFO] [stdout] --> src/generators/license.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let final_comment: &str; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/generators/license.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | let mut location = &license.value.as_ref().unwrap().location; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/generators/license.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | let mut location = &license.value.as_ref().unwrap().location; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/read/read.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let tokens = Token::tokenize(data); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/read/read.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | let data: &[u8] = fs::read(file_path).unwrap().as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 9 | [INFO] [stdout] 10 | let tokens = Token::tokenize(data); [INFO] [stdout] | ---- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 8 ~ let binding = fs::read(file_path).unwrap(); [INFO] [stdout] 9 ~ let data: &[u8] = binding.as_ref(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | ValueType::Str(string_value) => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | ValueType::U8(v) => v.to_string(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | ValueType::U8(unsigned8) => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> src/read/tokenizer.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | ValueType::Str(v) => v.to_string(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ValueType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0050, E0061, E0308, E0412, E0432, E0433, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cheetah` (lib) due to 49 previous errors; 22 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e72cc8041378db60b821999f694bdde78887101dc1e407c162e16f1f046eda1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e72cc8041378db60b821999f694bdde78887101dc1e407c162e16f1f046eda1c", kill_on_drop: false }` [INFO] [stdout] e72cc8041378db60b821999f694bdde78887101dc1e407c162e16f1f046eda1c