Migrate all diagnostics
This commit is contained in:
parent
2459569776
commit
c65ebae221
58 changed files with 1279 additions and 1318 deletions
|
@ -141,11 +141,11 @@ impl<'tcx> LateLintPass<'tcx> for OpaqueHiddenInferredBound {
|
|||
}
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint::opaque_hidden_inferred_bound)]
|
||||
#[diag(lint_opaque_hidden_inferred_bound)]
|
||||
struct OpaqueHiddenInferredBoundLint<'tcx> {
|
||||
ty: Ty<'tcx>,
|
||||
proj_ty: Ty<'tcx>,
|
||||
#[label(lint::specifically)]
|
||||
#[label(specifically)]
|
||||
assoc_pred_span: Span,
|
||||
#[subdiagnostic]
|
||||
add_bound: Option<AddBound<'tcx>>,
|
||||
|
@ -153,7 +153,7 @@ struct OpaqueHiddenInferredBoundLint<'tcx> {
|
|||
|
||||
#[derive(Subdiagnostic)]
|
||||
#[suggestion_verbose(
|
||||
lint::opaque_hidden_inferred_bound_sugg,
|
||||
lint_opaque_hidden_inferred_bound_sugg,
|
||||
applicability = "machine-applicable",
|
||||
code = " + {trait_ref}"
|
||||
)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue