Skip to content

Commit dc37ddd

Browse files
committed
Rename DiagnosticMessage as DiagMessage.
1 parent b74b4b0 commit dc37ddd

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/ui-internal/disallow_span_lint.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ extern crate rustc_hir;
55
extern crate rustc_lint;
66
extern crate rustc_middle;
77

8-
use rustc_errors::{DiagnosticMessage, MultiSpan};
8+
use rustc_errors::{DiagMessage, MultiSpan};
99
use rustc_hir::hir_id::HirId;
1010
use rustc_lint::{Lint, LintContext};
1111
use rustc_middle::ty::TyCtxt;
1212

13-
pub fn a(cx: impl LintContext, lint: &'static Lint, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) {
13+
pub fn a(
14+
cx: impl LintContext,
15+
lint: &'static Lint,
16+
span: impl Into<MultiSpan>,
17+
msg: impl Into<DiagMessage>)
18+
{
1419
cx.span_lint(lint, span, msg, |_| {});
1520
}
1621

@@ -19,7 +24,7 @@ pub fn b(
1924
lint: &'static Lint,
2025
hir_id: HirId,
2126
span: impl Into<MultiSpan>,
22-
msg: impl Into<DiagnosticMessage>,
27+
msg: impl Into<DiagMessage>,
2328
) {
2429
tcx.node_span_lint(lint, hir_id, span, msg, |_| {});
2530
}

0 commit comments

Comments
 (0)