diff options
| -rw-r--r-- | src/librustc/ty/sty.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustc/ty/sty.rs b/src/librustc/ty/sty.rs index 7b7e2b8bfbd..f41fffe507d 100644 --- a/src/librustc/ty/sty.rs +++ b/src/librustc/ty/sty.rs @@ -385,7 +385,6 @@ impl<'tcx> ClosureSubsts<'tcx> { let ty = self.closure_sig_ty(def_id, tcx); match ty.sty { ty::FnPtr(sig) => sig, - ty::Infer(_) | ty::Error => ty::Binder::dummy(FnSig::fake()), // ignore errors _ => bug!("closure_sig_ty is not a fn-ptr: {:?}", ty.sty), } } |
