Follow-up review after the requested fixes.
-
The root-only path restriction is gone.
type_check()now accepts nested paths again in crates/monty-type-checking/src/type_check.rs.- Nested-path cleanup is covered by exact tests in crates/monty-type-checking/tests/main.rs.
-
Diagnostics are no longer eagerly pre-rendered in every format.
- Rendering is lazy again via the retained pooled db in crates/monty-type-checking/src/type_check.rs.
-
The benchmark no longer hides internal failures.
- The REPL-sequence benchmark now fails loudly on internal errors and unexpected type-check failures in crates/monty-type-checking/benches/type_check.rs.
-
The pool-isolation tests now use exact concise diagnostic assertions instead of broad substring checks.
- Tightened in crates/monty-type-checking/tests/main.rs.
-
The stale
SRC_ROOTdocstring is fixed.- Updated in crates/monty-type-checking/src/db.rs.
pool.rsstill uses panic-based fatal paths for internal pool corruption and drop-time cleanup failures.- Per user instruction, these were intentionally left in place.
- Ran
make format-rs - Ran
make lint-rs - Ran
cargo test -p monty_type_checking --tests - Result: all passed