about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/multiple_supertrait_upcastable.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-01-22 05:14:07 +0100
committerLeón Orell Valerian Liehr <me@fmease.dev>2025-01-26 21:20:31 +0100
commit57b5d3af620345c16d5450c9532ee99873995323 (patch)
tree56f585a9dcebe986112b5b8800f756bc34f7cde6 /compiler/rustc_lint/src/multiple_supertrait_upcastable.rs
parent01a26c026ddd9f0da0307468b07b003b8759fc4a (diff)
downloadrust-57b5d3af620345c16d5450c9532ee99873995323.tar.gz
rust-57b5d3af620345c16d5450c9532ee99873995323.zip
Compiler: Finalize dyn compatibility renaming
Diffstat (limited to 'compiler/rustc_lint/src/multiple_supertrait_upcastable.rs')
-rw-r--r--compiler/rustc_lint/src/multiple_supertrait_upcastable.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/multiple_supertrait_upcastable.rs b/compiler/rustc_lint/src/multiple_supertrait_upcastable.rs
index 9fde35f82d8..35db8632625 100644
--- a/compiler/rustc_lint/src/multiple_supertrait_upcastable.rs
+++ b/compiler/rustc_lint/src/multiple_supertrait_upcastable.rs
@@ -37,7 +37,7 @@ declare_lint_pass!(MultipleSupertraitUpcastable => [MULTIPLE_SUPERTRAIT_UPCASTAB
 impl<'tcx> LateLintPass<'tcx> for MultipleSupertraitUpcastable {
     fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item<'tcx>) {
         let def_id = item.owner_id.to_def_id();
-        // NOTE(nbdd0121): use `object_safety_violations` instead of `is_dyn_compatible` because
+        // NOTE(nbdd0121): use `dyn_compatibility_violations` instead of `is_dyn_compatible` because
         // the latter will report `where_clause_object_safety` lint.
         if let hir::ItemKind::Trait(_, _, _, _, _) = item.kind
             && cx.tcx.is_dyn_compatible(def_id)