Struct flux_errors::FluxSession
source · pub struct FluxSession {
pub parse_sess: ParseSess,
}
Fields§
§parse_sess: ParseSess
Implementations§
source§impl FluxSession
impl FluxSession
pub fn new( opts: &Options, source_map: Arc<SourceMap>, fallback_bundle: LazyFallbackBundle, ) -> Self
pub fn err_count(&self) -> usize
pub fn emit_err<'a>(&'a self, err: impl Diagnostic<'a>) -> ErrorGuaranteed
pub fn emit_fatal<'a>(&'a self, fatal: impl Diagnostic<'a, FatalAbort>) -> !
pub fn abort(&self, _: ErrorGuaranteed) -> !
pub fn abort_if_errors(&self)
pub fn finish_diagnostics(&self)
pub fn dcx(&self) -> &DiagCtxt
Trait Implementations§
source§impl ErrorEmitter for FluxSession
impl ErrorEmitter for FluxSession
fn emit<'a>(&'a self, err: impl Diagnostic<'a>) -> ErrorGuaranteed
Auto Trait Implementations§
impl !Freeze for FluxSession
impl !RefUnwindSafe for FluxSession
impl !Send for FluxSession
impl !Sync for FluxSession
impl Unpin for FluxSession
impl !UnwindSafe for FluxSession
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more