Store associated item defaultness in impl_defaultness.
This commit is contained in:
parent
c9e134e1b6
commit
110f0656cb
25 changed files with 89 additions and 107 deletions
|
@ -281,7 +281,7 @@ fn resolve_associated_item<'tcx>(
|
|||
}
|
||||
|
||||
// If the item does not have a value, then we cannot return an instance.
|
||||
if !leaf_def.item.defaultness.has_value() {
|
||||
if !leaf_def.item.defaultness(tcx).has_value() {
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue