From 4be26b845b8cfddfafa738f620a21894f65c4de6 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 4 Mar 2026 00:13:12 +0100 Subject: Big parser work + error recovery --- oryxc/src/errors.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'oryxc/src/errors.rs') 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(filename: T, s: S) -> ! -where - T: Deref, - S: Display, -{ - eprintln!("{}: \x1b[31;1mError:\x1b[0m {}", filename.display(), s); - process::exit(1); -} - #[derive(Debug)] pub struct OryxError { pub span: (usize, usize), -- cgit v1.2.3