Rollup merge of #112165 - fee1-dead-contrib:rn-defualtness, r=compiler-errors
Rename `impl_defaultness` to `defaultness` Since this isn't just about the `impl`.
This commit is contained in:
commit
f121f77d8a
18 changed files with 33 additions and 32 deletions
|
@ -704,7 +704,7 @@ pub(super) fn check_specialization_validity<'tcx>(
|
|||
// grandparent. In that case, if parent is a `default impl`, inherited items use the
|
||||
// "defaultness" from the grandparent, else they are final.
|
||||
None => {
|
||||
if tcx.impl_defaultness(parent_impl.def_id()).is_default() {
|
||||
if tcx.defaultness(parent_impl.def_id()).is_default() {
|
||||
None
|
||||
} else {
|
||||
Some(Err(parent_impl.def_id()))
|
||||
|
@ -803,7 +803,7 @@ fn check_impl_items_against_trait<'tcx>(
|
|||
.as_ref()
|
||||
.is_some_and(|node_item| node_item.item.defaultness(tcx).has_value());
|
||||
|
||||
if !is_implemented && tcx.impl_defaultness(impl_id).is_final() {
|
||||
if !is_implemented && tcx.defaultness(impl_id).is_final() {
|
||||
missing_items.push(tcx.associated_item(trait_item_id));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue