No peeking
This commit is contained in:
parent
3e9f27dadf
commit
58a90de9ad
1 changed files with 1 additions and 7 deletions
|
@ -854,13 +854,7 @@ pub(super) fn check_specialization_validity<'tcx>(
|
|||
} else {
|
||||
Some((parent, parent.item(tcx, trait_item.ident, kind, trait_def.def_id)))
|
||||
}
|
||||
})
|
||||
.peekable();
|
||||
|
||||
if ancestor_impls.peek().is_none() {
|
||||
// No parent, nothing to specialize.
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
let opt_result = ancestor_impls.find_map(|(parent_impl, parent_item)| {
|
||||
match parent_item {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue