We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e3508 commit 3890befCopy full SHA for 3890bef
src/librustc/ty/sty.rs
@@ -385,7 +385,6 @@ impl<'tcx> ClosureSubsts<'tcx> {
385
let ty = self.closure_sig_ty(def_id, tcx);
386
match ty.sty {
387
ty::FnPtr(sig) => sig,
388
- ty::Infer(_) | ty::Error => ty::Binder::dummy(FnSig::fake()), // ignore errors
389
_ => bug!("closure_sig_ty is not a fn-ptr: {:?}", ty.sty),
390
}
391
0 commit comments