-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a recursion limit to background evaluation (#1878)
* Add a recursion limit to eval_permissive * Add a test * Review comments
- Loading branch information
Showing
4 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### /diagnostics-recursion.ncl | ||
let rec foo = { bar = foo } in | ||
[ | ||
foo, | ||
foo.bar.bar.bar.bar.bar.baz | ||
] | ||
### diagnostic = ["file:///diagnostics-recursion.ncl"] |
8 changes: 8 additions & 0 deletions
8
lsp/nls/tests/snapshots/main__lsp__nls__tests__inputs__diagnostics-recursion.ncl.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
source: lsp/nls/tests/main.rs | ||
expression: output | ||
--- | ||
(file:///diagnostics-recursion.ncl, 0:14-0:27: this record lacks the field `baz`) | ||
(file:///diagnostics-recursion.ncl, 3:2-3:29: missing field `baz` | ||
Did you mean `bar`?) | ||
(file:///diagnostics-recursion.ncl, 3:2-3:29: this requires the field `baz` to exist) |