Skip to content

Commit e61fd87

Browse files
committed
Fix typo in hir lowering lint diag
1 parent ecade53 commit e61fd87

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_hir_analysis/src/hir_ty_lowering

1 file changed

+1
-1
lines changed

compiler/rustc_hir_analysis/src/hir_ty_lowering/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
411411
Applicability::MachineApplicable,
412412
);
413413
if !is_dyn_compatible {
414-
diag.note(format!("`{trait_name}` it is dyn-incompatible, so it can't be `dyn`"));
414+
diag.note(format!("`{trait_name}` is dyn-incompatible, so it can't be `dyn`"));
415415
} else {
416416
// No ampersand in suggestion if it's borrowed already
417417
let (dyn_str, paren_dyn_str) =

0 commit comments

Comments
 (0)