mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
tweak exhaustive matching of ty_infer
This commit is contained in:
parent
640000a7c0
commit
3ebc2abc6a
@ -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…
Reference in New Issue
Block a user