Give a more helpful error for "trimmed_def_paths construted"

This commit is contained in:
Joshua Nelson 2022-12-22 12:57:47 -06:00
parent 2d76a9df5d
commit e4330295d9
4 changed files with 11 additions and 2 deletions

View file

@ -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);