Skip to content

Commit 1e16a74

Browse files
committed
feat: add SourceFile to the RichError and change the ErrorCollector
1 parent 768c569 commit 1e16a74

7 files changed

Lines changed: 211 additions & 92 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
3+
* Replaced the deprecated `WithFile` trait with `WithContent` and `WithSource` to cleanly separate single-file execution from multi-file environments. Additionally, replaced the `file()` method on `RichError` with `source()`. [#266](https://github.com/BlockstreamResearch/SimplicityHL/pull/266)
4+
15
# 0.5.0-rc.0 - 2026-03-14
26

37
* Migrate from the `pest` parser to a new `chumsky`-based parser, improving parser recovery and enabling multiple parse errors to be reported in one pass [#185](https://github.com/BlockstreamResearch/SimplicityHL/pull/185)

fuzz/fuzz_targets/compile_parse_tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
fn do_test(data: &[u8]) {
55
use arbitrary::Arbitrary;
66

7-
use simplicityhl::error::WithFile;
7+
use simplicityhl::error::WithContent;
88
use simplicityhl::{ast, named, parse, ArbitraryOfType, Arguments};
99

1010
let mut u = arbitrary::Unstructured::new(data);
@@ -22,7 +22,7 @@ fn do_test(data: &[u8]) {
2222
};
2323
let simplicity_named_construct = ast_program
2424
.compile(arguments, false)
25-
.with_file("")
25+
.with_content("")
2626
.expect("AST should compile with given arguments");
2727
let _simplicity_commit = named::forget_names(&simplicity_named_construct);
2828
}

0 commit comments

Comments
 (0)