summaryrefslogtreecommitdiff
path: root/oryxc/src/errors.rs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-03-04 00:13:12 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-03-04 00:13:12 +0100
commit4be26b845b8cfddfafa738f620a21894f65c4de6 (patch)
tree61bd43ff93f8d6e6892bf2c3b617c7cd67bc485b /oryxc/src/errors.rs
parentbb66e26e4fd766397bd0a32863f9d1ac3135744e (diff)
Big parser work + error recovery
Diffstat (limited to 'oryxc/src/errors.rs')
-rw-r--r--oryxc/src/errors.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/oryxc/src/errors.rs b/oryxc/src/errors.rs
index a8350dd..3c00220 100644
--- a/oryxc/src/errors.rs
+++ b/oryxc/src/errors.rs
@@ -11,13 +11,11 @@ use std::fmt::{
Formatter,
};
use std::io::Write;
-use std::ops::Deref;
use std::path::Path;
use std::sync::OnceLock;
use std::{
env,
io,
- process,
};
use unicode_width::UnicodeWidthStr;
@@ -81,15 +79,6 @@ macro_rules! err {
}};
}
-pub fn err_at_position<T, S>(filename: T, s: S) -> !
-where
- T: Deref<Target = OsStr>,
- S: Display,
-{
- eprintln!("{}: \x1b[31;1mError:\x1b[0m {}", filename.display(), s);
- process::exit(1);
-}
-
#[derive(Debug)]
pub struct OryxError {
pub span: (usize, usize),