refactor: switch to nom-based parser #44
Annotations
10 errors
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)]`
|
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};
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
|
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};
| ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^
|
crates/jrsonnet-tokenizer/src/lib.rs#L10
error: unused import: `*`
--> crates/jrsonnet-tokenizer/src/lexer.rs:10:20
|
10 | TokenKind::{self, *},
| ^
|
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)]`
|
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)]`
|
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<'_>> {
| ^^^
|
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)]`
|
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
|
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
|
This job failed
Loading