Give a more helpful error for "trimmed_def_paths construted"
This commit is contained in:
parent
2d76a9df5d
commit
e4330295d9
4 changed files with 11 additions and 2 deletions
|
@ -380,7 +380,7 @@ impl<S: Into<String>> From<S> for DiagnosticMessage {
|
|||
}
|
||||
}
|
||||
|
||||
/// A workaround for "good path" ICEs when formatting types in disables lints.
|
||||
/// A workaround for "good path" ICEs when formatting types in disabled lints.
|
||||
///
|
||||
/// Delays formatting until `.into(): DiagnosticMessage` is used.
|
||||
pub struct DelayDm<F>(pub F);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue