Struct rustc_passes::errors::NoMainErr
source · pub struct NoMainErr {
pub sp: Span,
pub crate_name: Symbol,
pub has_filename: bool,
pub filename: PathBuf,
pub file_empty: bool,
pub non_main_fns: Vec<Span>,
pub main_def_opt: Option<MainDefinition>,
pub add_teach_note: bool,
}Fields
sp: Spancrate_name: Symbolhas_filename: boolfilename: PathBuffile_empty: boolnon_main_fns: Vec<Span>main_def_opt: Option<MainDefinition>add_teach_note: boolTrait Implementations
sourceimpl<'a> IntoDiagnostic<'a, ErrorGuaranteed> for NoMainErr
impl<'a> IntoDiagnostic<'a, ErrorGuaranteed> for NoMainErr
sourcefn into_diagnostic(
self,
handler: &'a Handler
) -> DiagnosticBuilder<'a, ErrorGuaranteed>
fn into_diagnostic(
self,
handler: &'a Handler
) -> DiagnosticBuilder<'a, ErrorGuaranteed>
Write out as a diagnostic out of
Handler.Auto Trait Implementations
impl RefUnwindSafe for NoMainErr
impl !Send for NoMainErr
impl !Sync for NoMainErr
impl Unpin for NoMainErr
impl UnwindSafe for NoMainErr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 88 bytes