Rename feature object_safe_for_dispatch to dyn_compatible_for_dispatch

This commit is contained in:
León Orell Valerian Liehr
2024-10-09 18:37:30 +02:00
parent 62b24ea7c5
commit 2e7a52b22f
42 changed files with 130 additions and 124 deletions

View File

@@ -829,7 +829,7 @@ impl<'a, 'tcx> TypeVisitor<TyCtxt<'tcx>> for WfPredicates<'a, 'tcx> {
// obligations that don't refer to Self and
// checking those
let defer_to_coercion = tcx.features().object_safe_for_dispatch;
let defer_to_coercion = tcx.features().dyn_compatible_for_dispatch;
if !defer_to_coercion {
if let Some(principal) = data.principal_def_id() {