rustc: add TyAnon (impl Trait) to the typesystem.
This commit is contained in:
parent
f0baec691f
commit
ef11d4e3c7
40 changed files with 250 additions and 85 deletions
|
|
@ -596,7 +596,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
|
|||
}
|
||||
|
||||
ty::TyParam(..) | ty::TyInfer(..) | ty::TyError |
|
||||
ty::TyClosure(..) | ty::TyProjection(..) |
|
||||
ty::TyClosure(..) | ty::TyProjection(..) | ty::TyAnon(..) |
|
||||
ty::TyFnDef(..) => {
|
||||
bug!("Unexpected type in foreign function")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue