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: Span
§crate_name: Symbol
§has_filename: bool
§filename: PathBuf
§file_empty: bool
§non_main_fns: Vec<Span>
§main_def_opt: Option<MainDefinition>
§add_teach_note: bool
Trait Implementations§
source§impl<'a> IntoDiagnostic<'a, ErrorGuaranteed> for NoMainErr
impl<'a> IntoDiagnostic<'a, ErrorGuaranteed> for NoMainErr
source§fn 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§
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
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