-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix source quotation in driver errors with OCaml 5.2
The compiler removed some logic that was reopening the source file based on `Location.input_name` and instead only rely on `Location.input_lexbuf` for source quotation. This PR changes the way we read source files to stick to what the compiler does in `Pparse` while preserving our features such read from stdin. We now set the input_lexbuf properly. Signed-off-by: Nathan Rebours <[email protected]>
- Loading branch information
Showing
3 changed files
with
17 additions
and
15 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