Struct rustc_error_messages::DelayDm
source · pub struct DelayDm<F>(pub F);
Expand description
A workaround for “good path” ICEs when formatting types in disabled lints.
Delays formatting until .into(): DiagnosticMessage
is used.
Tuple Fields§
§0: F
Trait Implementations§
Auto Trait Implementations§
impl<F> RefUnwindSafe for DelayDm<F>where F: RefUnwindSafe,
impl<F> Send for DelayDm<F>where F: Send,
impl<F> Sync for DelayDm<F>where F: Sync,
impl<F> Unpin for DelayDm<F>where F: Unpin,
impl<F> UnwindSafe for DelayDm<F>where F: UnwindSafe,
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: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.