ICE on types that should not be defining opaque types
This commit is contained in:
parent
0af4a211be
commit
b0b4a07959
@ -217,7 +217,9 @@ fn opaque_types_defined_by<'tcx>(tcx: TyCtxt<'tcx>, item: LocalDefId) -> &'tcx [
|
||||
| DefKind::GlobalAsm
|
||||
| DefKind::Impl { .. }
|
||||
| DefKind::Closure
|
||||
| DefKind::Generator => &[],
|
||||
| DefKind::Generator => {
|
||||
span_bug!(tcx.def_span(item), "{kind:?} is type checked as part of its parent")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user