Struct rustc_builtin_macros::errors::FormatUnusedArg
source · pub(crate) struct FormatUnusedArg {
pub(crate) span: Span,
pub(crate) named: bool,
}
Fields§
§span: Span
§named: bool
Trait Implementations§
source§impl AddToDiagnostic for FormatUnusedArg
impl AddToDiagnostic for FormatUnusedArg
source§fn add_to_diagnostic_with<F>(self, diag: &mut Diagnostic, f: F)where
F: Fn(&mut Diagnostic, SubdiagnosticMessage) -> SubdiagnosticMessage,
fn add_to_diagnostic_with<F>(self, diag: &mut Diagnostic, f: F)where F: Fn(&mut Diagnostic, SubdiagnosticMessage) -> SubdiagnosticMessage,
Add a subdiagnostic to an existing diagnostic where
f
is invoked on every message used
(to optionally perform eager translation).source§fn add_to_diagnostic(self, diag: &mut Diagnostic)
fn add_to_diagnostic(self, diag: &mut Diagnostic)
Add a subdiagnostic to an existing diagnostic.
source§impl<'__diagnostic_handler_sess, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for FormatUnusedArgwhere
G: EmissionGuarantee,
impl<'__diagnostic_handler_sess, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for FormatUnusedArgwhere G: EmissionGuarantee,
source§fn into_diagnostic(
self,
handler: &'__diagnostic_handler_sess Handler
) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
fn into_diagnostic( self, handler: &'__diagnostic_handler_sess Handler ) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
Write out as a diagnostic out of
Handler
.Auto Trait Implementations§
impl RefUnwindSafe for FormatUnusedArg
impl !Send for FormatUnusedArg
impl !Sync for FormatUnusedArg
impl Unpin for FormatUnusedArg
impl UnwindSafe for FormatUnusedArg
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: 12 bytes