Remove GeneratorWitness and rename GeneratorWitnessMIR.
This commit is contained in:
parent
855a75b6d6
commit
44ac8dcc71
60 changed files with 91 additions and 333 deletions
|
@ -577,11 +577,7 @@ fn layout_of_uncached<'tcx>(
|
|||
return Err(error(cx, LayoutError::Unknown(ty)));
|
||||
}
|
||||
|
||||
ty::Bound(..)
|
||||
| ty::GeneratorWitness(..)
|
||||
| ty::GeneratorWitnessMIR(..)
|
||||
| ty::Infer(_)
|
||||
| ty::Error(_) => {
|
||||
ty::Bound(..) | ty::GeneratorWitness(..) | ty::Infer(_) | ty::Error(_) => {
|
||||
bug!("Layout::compute: unexpected type `{}`", ty)
|
||||
}
|
||||
|
||||
|
|
|
@ -192,7 +192,6 @@ where
|
|||
| ty::Tuple(_)
|
||||
| ty::Bound(..)
|
||||
| ty::GeneratorWitness(..)
|
||||
| ty::GeneratorWitnessMIR(..)
|
||||
| ty::Never
|
||||
| ty::Infer(_)
|
||||
| ty::Error(_) => {
|
||||
|
|
|
@ -21,13 +21,7 @@ fn sized_constraint_for_ty<'tcx>(
|
|||
Bool | Char | Int(..) | Uint(..) | Float(..) | RawPtr(..) | Ref(..) | FnDef(..)
|
||||
| FnPtr(_) | Array(..) | Closure(..) | Generator(..) | Never => vec![],
|
||||
|
||||
Str
|
||||
| Dynamic(..)
|
||||
| Slice(_)
|
||||
| Foreign(..)
|
||||
| Error(_)
|
||||
| GeneratorWitness(..)
|
||||
| GeneratorWitnessMIR(..) => {
|
||||
Str | Dynamic(..) | Slice(_) | Foreign(..) | Error(_) | GeneratorWitness(..) => {
|
||||
// these are never sized - return the target type
|
||||
vec![ty]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue