We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Diag::new
1 parent 0ab373b commit bbd1242Copy full SHA for bbd1242
compiler/rustc_errors/src/diagnostic.rs
@@ -577,7 +577,7 @@ macro_rules! with_fn {
577
impl<'a, G: EmissionGuarantee> Diag<'a, G> {
578
#[rustc_lint_diagnostics]
579
#[track_caller]
580
- pub fn new<M: Into<DiagMessage>>(dcx: &'a DiagCtxt, level: Level, message: M) -> Self {
+ pub fn new(dcx: &'a DiagCtxt, level: Level, message: impl Into<DiagMessage>) -> Self {
581
Self::new_diagnostic(dcx, DiagInner::new(level, message))
582
}
583
0 commit comments