Skip to content

Commit 3890bef

Browse files
committed
review comment
1 parent 73e3508 commit 3890bef

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustc/ty/sty.rs

-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ impl<'tcx> ClosureSubsts<'tcx> {
385385
let ty = self.closure_sig_ty(def_id, tcx);
386386
match ty.sty {
387387
ty::FnPtr(sig) => sig,
388-
ty::Infer(_) | ty::Error => ty::Binder::dummy(FnSig::fake()), // ignore errors
389388
_ => bug!("closure_sig_ty is not a fn-ptr: {:?}", ty.sty),
390389
}
391390
}

0 commit comments

Comments
 (0)