Struct rustc_middle::lint::LintDiagnosticBuilder
source · [−]pub struct LintDiagnosticBuilder<'a>(DiagnosticBuilder<'a>);Tuple Fields
0: DiagnosticBuilder<'a>Implementations
sourceimpl<'a> LintDiagnosticBuilder<'a>
impl<'a> LintDiagnosticBuilder<'a>
sourcepub fn build(self, msg: &str) -> DiagnosticBuilder<'a>
pub fn build(self, msg: &str) -> DiagnosticBuilder<'a>
Return the inner DiagnosticBuilder, first setting the primary message to msg.
sourcepub fn new(err: DiagnosticBuilder<'a>) -> LintDiagnosticBuilder<'a>
pub fn new(err: DiagnosticBuilder<'a>) -> LintDiagnosticBuilder<'a>
Create a LintDiagnosticBuilder from some existing DiagnosticBuilder.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for LintDiagnosticBuilder<'a>
impl<'a> !Send for LintDiagnosticBuilder<'a>
impl<'a> !Sync for LintDiagnosticBuilder<'a>
impl<'a> Unpin for LintDiagnosticBuilder<'a>
impl<'a> !UnwindSafe for LintDiagnosticBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
impl<'a, T> Captures<'a> for T where
T: ?Sized,
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: 16 bytes