mirror of
https://github.com/tweag/nickel.git
synced 2024-10-06 08:07:37 +03:00
f06bda9239
* Duplicate contrat elision: first tentative * Fix contract deduplication The previous attempt wasn't fruitful, because we don't pass the initial environment to the contract equality checker. This commit thread the initial environment through the virtual machine and various functions to make it available to the contract deduplicator * Use contract deduplication for annotations as well Use a special contract deduplication to avoid pretty printing many many identical type annotations when evaluating. The actual contract applications were already elided as far as evaluation is concerned, but contracts annotations were still accumulated without deduplication. * Rename elision->dedup which is better descriptive * Fix clippy warning * Fix cargo doc warnings * Cosmetic improvements * Mention idempotency assumption in the manual * Update core/src/typecheck/eq.rs Co-authored-by: Taeer Bar-Yam <Radvendii@users.noreply.github.com> * Fix REPL query not working anymore * Update core/src/typecheck/eq.rs Co-authored-by: jneem <joeneeman@gmail.com> * Formatting * Fix clippy error * Update core/src/program.rs Co-authored-by: Viktor Kleen <viktor.kleen@tweag.io> --------- Co-authored-by: Taeer Bar-Yam <Radvendii@users.noreply.github.com> Co-authored-by: jneem <joeneeman@gmail.com> Co-authored-by: Viktor Kleen <viktor.kleen@tweag.io> |
||
---|---|---|
.. | ||
annotated_test.rs | ||
bench.rs | ||
lib.rs | ||
project_root.rs | ||
test_program.rs |