tweak exhaustive matching of ty_infer
This commit is contained in:
parent
640000a7c0
commit
3ebc2abc6a
1 changed files with 3 additions and 1 deletions
|
|
@ -1683,7 +1683,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
ty::ty_trait(..) |
|
||||
ty::ty_param(..) |
|
||||
ty::ty_projection(..) |
|
||||
ty::ty_infer(ty::TyVar(_)) => {
|
||||
ty::ty_infer(ty::TyVar(_)) |
|
||||
ty::ty_infer(ty::FreshTy(_)) |
|
||||
ty::ty_infer(ty::FreshIntTy(_)) => {
|
||||
self.tcx().sess.bug(
|
||||
&format!(
|
||||
"asked to assemble constituent types of unexpected type: {}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue