Fix ICE when negative impl is collected during eager mono
This commit is contained in:
parent
215e3cd218
commit
1013ee8df5
2 changed files with 16 additions and 0 deletions
|
@ -1336,6 +1336,10 @@ fn create_mono_items_for_default_impls<'tcx>(
|
|||
) {
|
||||
match item.kind {
|
||||
hir::ItemKind::Impl(ref impl_) => {
|
||||
if matches!(impl_.polarity, hir::ImplPolarity::Negative(_)) {
|
||||
return;
|
||||
}
|
||||
|
||||
for param in impl_.generics.params {
|
||||
match param.kind {
|
||||
hir::GenericParamKind::Lifetime { .. } => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue