diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-30 19:40:29 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-30 20:00:50 +0100 |
| commit | a6d90c1bf1e9fefa0af04206909a40e112d6bb14 (patch) | |
| tree | fc16276142f74b9a50102a2e855942f7e2593c25 /src/diag.rs | |
| parent | f70cea508cd30fa40770ea989fe2a19e715a357b (diff) | |
Numbering functions
Diffstat (limited to 'src/diag.rs')
| -rw-r--r-- | src/diag.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/diag.rs b/src/diag.rs index 55f16b5f..e0015fcc 100644 --- a/src/diag.rs +++ b/src/diag.rs @@ -66,7 +66,9 @@ pub struct SourceError { impl SourceError { /// Create a new, bare error. + #[track_caller] pub fn new(span: Span, message: impl Into<EcoString>) -> Self { + assert!(!span.is_detached()); Self { span, pos: ErrorPos::Full, |
