src/compiler/lib.rs is a stale, uncompiled duplicate of the crate-root API #24

Closed
opened 2026-08-07 13:33:14 +02:00 by Hemera · 0 comments
Owner

src/compiler/lib.rs is a leftover copy of the crate's top-level API (Nomo, Context, resume_after_cut, etc.). It is never compiled — the compiler module is resolved from src/compiler/mod.rs — and it is already out of sync (e.g. it calls parser::parse(parse.tokens()) with the old signature, while the real parser takes (source, tokens)).

It can confuse readers and editors (two definitions of the same types with different shapes). Recommend deleting it.

`src/compiler/lib.rs` is a leftover copy of the crate's top-level API (`Nomo`, `Context`, `resume_after_cut`, etc.). It is never compiled — the `compiler` module is resolved from `src/compiler/mod.rs` — and it is already out of sync (e.g. it calls `parser::parse(parse.tokens())` with the old signature, while the real parser takes `(source, tokens)`). It can confuse readers and editors (two definitions of the same types with different shapes). Recommend deleting it.
Sign in to join this conversation.
No labels
automated-🤖
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Hemera/nomo#24
No description provided.