Remove GeneratorWitness and rename GeneratorWitnessMIR.
This commit is contained in:
parent
855a75b6d6
commit
44ac8dcc71
60 changed files with 91 additions and 333 deletions
|
@ -152,7 +152,7 @@ pub(crate) fn const_to_valtree_inner<'tcx>(
|
|||
// FIXME(oli-obk): we can probably encode closures just like structs
|
||||
| ty::Closure(..)
|
||||
| ty::Generator(..)
|
||||
| ty::GeneratorWitness(..) |ty::GeneratorWitnessMIR(..)=> Err(ValTreeCreationError::NonSupportedType),
|
||||
| ty::GeneratorWitness(..) => Err(ValTreeCreationError::NonSupportedType),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -280,7 +280,6 @@ pub fn valtree_to_const_value<'tcx>(
|
|||
| ty::Closure(..)
|
||||
| ty::Generator(..)
|
||||
| ty::GeneratorWitness(..)
|
||||
| ty::GeneratorWitnessMIR(..)
|
||||
| ty::FnPtr(_)
|
||||
| ty::RawPtr(_)
|
||||
| ty::Str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue