Skip to content

Commit f02ce96

Browse files
Migrate rustc_monomorphize to use TyCtxt::emit_diag_node_span_lint
1 parent 480aa4d commit f02ce96

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

compiler/rustc_monomorphize/src/errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use rustc_macros::{Diagnostic, LintDiagnostic};
1+
use rustc_macros::Diagnostic;
22
use rustc_middle::ty::{Instance, Ty};
33
use rustc_span::{Span, Symbol};
44

@@ -24,7 +24,7 @@ pub(crate) struct NoOptimizedMir {
2424
pub instance: String,
2525
}
2626

27-
#[derive(LintDiagnostic)]
27+
#[derive(Diagnostic)]
2828
#[diag("moving {$size} bytes")]
2929
#[note(
3030
"the current maximum size is {$limit}, but it can be customized with the move_size_limit attribute: `#![move_size_limit = \"...\"]`"

compiler/rustc_monomorphize/src/mono_checks/move_check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl<'tcx> MoveCheckVisitor<'tcx> {
174174
}
175175
}
176176

177-
self.tcx.emit_node_span_lint(
177+
self.tcx.emit_diag_node_span_lint(
178178
LARGE_ASSIGNMENTS,
179179
lint_root,
180180
reported_span,

0 commit comments

Comments
 (0)