You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both the DefaultSystem and the Number conflicts with each other, Int, UInt & Float are already defined within the DefaultSystem, so when you want to add trailing for those types it conflicts because of:
error[E0004]: non-exhaustive patterns: `&lexer::Literal::Int(_)` and `&lexer::Literal::Float(_)` not covered
--> atlas_frontend\src\lexer\mod.rs:3:1
|
3 | / lexer_builder! {
4 | | DefaultSystem {
5 | | number: true,
6 | | symbol: true,
... |
62 | | },
63 | | }
| |_^ patterns `&lexer::Literal::Int(_)` and `&lexer::Literal::Float(_)` not covered
|
note: `lexer::Literal` defined here
--> atlas_frontend\src\lexer\mod.rs:3:1
|
3 | / lexer_builder! {
4 | | DefaultSystem {
5 | | number: true,
6 | | symbol: true,
... |
55 | | "_int" => i64 => Int,
| | --- not covered
... |
62 | | },
63 | | }
| | ^
| |_|
| not covered
= note: the matched value is of type `&lexer::Literal`
= note: this error originates in the derive macro `Debug` which comes from the expansion of the macro `lexer_builder` (in Nightly builds, run with -Z macro-backtrace for more info)
Both the DefaultSystem and the Number conflicts with each other, Int, UInt & Float are already defined within the DefaultSystem, so when you want to add trailing for those types it conflicts because of: