You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -639,8 +639,8 @@ fn object_ty_for_trait<'tcx>(
639
639
/// contained by the trait object, because the object that needs to be coerced is behind
640
640
/// a pointer.
641
641
///
642
-
/// In practice, we cannot use `dyn Trait` explicitly in the obligation because it would result
643
-
/// in a new check that `Trait` is dyn-compatible, creating a cycle (until object_safe_for_dispatch
642
+
/// In practice, we cannot use `dyn Trait` explicitly in the obligation because it would result in
643
+
/// a new check that `Trait` is dyn-compatible, creating a cycle (until dyn_compatible_for_dispatch
644
644
/// is stabilized, see tracking issue <https://github.com/rust-lang/rust/issues/43561>).
645
645
/// Instead, we fudge a little by introducing a new type parameter `U` such that
646
646
/// `Self: Unsize<U>` and `U: Trait + ?Sized`, and use `U` in place of `dyn Trait`.
0 commit comments