Skip to content

Commit be7daf8

Browse files
committed
remove weird comment
1 parent 849844f commit be7daf8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/rustc_hir_typeck/src/coercion.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,6 @@ impl<'f, 'tcx> Coerce<'f, 'tcx> {
891891
let pointer_ty = Ty::new_fn_ptr(self.tcx, closure_sig);
892892
debug!("coerce_closure_to_fn(a={:?}, b={:?}, pty={:?})", a, b, pointer_ty);
893893

894-
// We don't use `self.coerce_fnptrs` as handling `fn` to `unsafe fn`
895-
// was trivial to do so ourselves.
896894
let adjust = Adjust::Pointer(PointerCoercion::ClosureFnPointer(safety));
897895
self.unify_and(pointer_ty, b, [], adjust, LeakCheck::Default)
898896
}

0 commit comments

Comments
 (0)