Skip to content

refactor: switch to nom-based parser #44

refactor: switch to nom-based parser

refactor: switch to nom-based parser #44

Triggered via pull request July 5, 2024 19:55
Status Failure
Total duration 42s
Artifacts

checks.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

24 errors
Tests / Test on stable: crates/jrsonnet-tokenizer/src/lexer.rs#L1
unused import: `core::ops::Range`
Tests / Test on stable: crates/jrsonnet-tokenizer/src/lexer.rs#L2
unused imports: `iter::Enumerate`, `marker::PhantomData`, `ops::RangeInclusive`
Tests / Test on stable: crates/jrsonnet-tokenizer/src/lexer.rs#L5
unused imports: `IResult`, `InputIter`, `InputTake`, `Needed`
Tests / Test on stable: crates/jrsonnet-tokenizer/src/lexer.rs#L19
associated function `new` is never used
Tests / Test on stable: crates/jrsonnet-tokenizer/src/lexer.rs#L74
function `lex` is never used
Tests / Test on stable
Process completed with exit code 101.
Tests / Test: crates/jrsonnet-tokenizer/src/lexer.rs#L1
unused import: `core::ops::Range`
Tests / Test: crates/jrsonnet-tokenizer/src/lexer.rs#L2
unused imports: `iter::Enumerate`, `marker::PhantomData`, `ops::RangeInclusive`
Tests / Test: crates/jrsonnet-tokenizer/src/lexer.rs#L5
unused imports: `IResult`, `InputIter`, `InputTake`, `Needed`
Tests / Test: crates/jrsonnet-tokenizer/src/lexer.rs#L10
unused import: `*`
Tests / Test: crates/jrsonnet-tokenizer/src/lexer.rs#L19
associated function `new` is never used
Tests / Test: crates/jrsonnet-tokenizer/src/lexer.rs#L74
function `lex` is never used
Tests / Test
Process completed with exit code 101.
unused import: `core::ops::Range`: crates/jrsonnet-tokenizer/src/lib.rs#L1
error: unused import: `core::ops::Range` --> crates/jrsonnet-tokenizer/src/lexer.rs:1:5 | 1 | use core::ops::Range; | ^^^^^^^^^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]`
unused imports: `iter::Enumerate`, `marker::PhantomData`, `ops::RangeInclusive`: crates/jrsonnet-tokenizer/src/lib.rs#L2
error: unused imports: `iter::Enumerate`, `marker::PhantomData`, `ops::RangeInclusive` --> crates/jrsonnet-tokenizer/src/lexer.rs:2:11 | 2 | use std::{iter::Enumerate, marker::PhantomData, ops::RangeInclusive}; | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
unused imports: `IResult`, `InputIter`, `InputTake`, `Needed`: crates/jrsonnet-tokenizer/src/lib.rs#L5
error: unused imports: `IResult`, `InputIter`, `InputTake`, `Needed` --> crates/jrsonnet-tokenizer/src/lexer.rs:5:11 | 5 | use nom::{IResult, InputIter, InputTake, Needed}; | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^
unused import: `*`: crates/jrsonnet-tokenizer/src/lib.rs#L10
error: unused import: `*` --> crates/jrsonnet-tokenizer/src/lexer.rs:10:20 | 10 | TokenKind::{self, *}, | ^
binding's name is too similar to existing binding: crates/jrsonnet-macros/src/lib.rs#L863
error: binding's name is too similar to existing binding --> crates/jrsonnet-macros/src/lib.rs:863:8 | 863 | let vid = &var.ident; | ^^^ | note: existing binding defined here --> crates/jrsonnet-macros/src/lib.rs:861:7 | 861 | let vis = &field.vis; | ^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names = note: `-D clippy::similar-names` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::similar_names)]`
associated function `new` is never used: crates/jrsonnet-tokenizer/src/lib.rs#L19
error: associated function `new` is never used --> crates/jrsonnet-tokenizer/src/lexer.rs:19:9 | 18 | impl<'a> Lexer<'a> { | ------------------ associated function in this implementation 19 | pub fn new(input: &'a str) -> Self { | ^^^ | = note: `-D dead-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(dead_code)]`
function `lex` is never used: crates/jrsonnet-tokenizer/src/lib.rs#L74
error: function `lex` is never used --> crates/jrsonnet-tokenizer/src/lexer.rs:74:8 | 74 | pub fn lex(input: &str) -> Vec<Lexeme<'_>> { | ^^^
name `TOMBSTONE` contains a capitalized acronym: crates/jrsonnet-tokenizer/src/lib.rs#L17
error: name `TOMBSTONE` contains a capitalized acronym --> crates/jrsonnet-tokenizer/src/syntax_kinds.rs:17:2 | 17 | TOMBSTONE, | ^^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Tombstone` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms = note: `-D clippy::upper-case-acronyms` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::upper_case_acronyms)]`
name `EOF` contains a capitalized acronym: crates/jrsonnet-tokenizer/src/lib.rs#L19
error: name `EOF` contains a capitalized acronym --> crates/jrsonnet-tokenizer/src/syntax_kinds.rs:19:2 | 19 | EOF, | ^^^ help: consider making the acronym lowercase, except the initial letter (notice the capitalization): `Eof` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
name `AND` contains a capitalized acronym: crates/jrsonnet-tokenizer/src/lib.rs#L25
error: name `AND` contains a capitalized acronym --> crates/jrsonnet-tokenizer/src/syntax_kinds.rs:25:2 | 25 | AND, | ^^^ help: consider making the acronym lowercase, except the initial letter: `And` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms