Skip to content

Commit 1c6c0f7

Browse files
Migrate rustc_trait_selection to use TyCtxt::emit_diag_node_span_lint
1 parent 8f63c00 commit 1c6c0f7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

compiler/rustc_passes/src/check_attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
639639
}
640640
});
641641
if !has_generic {
642-
self.tcx.emit_node_span_lint(
642+
self.tcx.emit_diag_node_span_lint(
643643
MALFORMED_DIAGNOSTIC_FORMAT_LITERALS,
644644
hir_id,
645645
span,

compiler/rustc_passes/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ pub(crate) struct FunctionNamesDuplicated {
14501450
pub spans: Vec<Span>,
14511451
}
14521452

1453-
#[derive(LintDiagnostic)]
1453+
#[derive(Diagnostic)]
14541454
#[diag("there is no parameter `{$argument_name}` on trait `{$trait_name}`")]
14551455
pub(crate) struct UnknownFormatParameterForOnUnimplementedAttr {
14561456
pub argument_name: Symbol,

0 commit comments

Comments
 (0)