pub fn safe_to_unsafe_fn_ty(self, bare_fn: &BareFnTy<'tcx>) -> Ty<'tcx> {
        assert_eq!(bare_fn.unsafety, hir::Unsafety::Normal);
        self.mk_fn_ptr(self.mk_bare_fn(ty::BareFnTy {
            unsafety: hir::Unsafety::Unsafe,
            abi: bare_fn.abi,
            sig: bare_fn.sig.clone()
        }))
    }
/// Create an unsafe fn ty based on a safe fn ty.
Create an unsafe fn ty based on a safe fn ty.
Create an unsafe fn ty based on a safe fn ty .
pub fn safe_to_unsafe_fn_ty(self, bare_fn: &BareFnTy<'tcx>) -> Ty<'tcx> {
        assert_eq!(bare_fn.unsafety, hir::Unsafety::Normal);
        self.mk_fn_ptr(self.mk_bare_fn(ty::BareFnTy {
            unsafety: hir::Unsafety::Unsafe,
            abi: bare_fn.abi,
            sig: bare_fn.sig.clone()
        }))
    }
pub fn safe_to_unsafe_fn_ty ( self , bare_fn : & BareFnTy < ' tcx > ) -> Ty < ' tcx > { assert_eq ! ( bare_fn unsafety hir Unsafety Normal ) ; self . mk_fn_ptr ( self . mk_bare_fn ( ty :: BareFnTy { unsafety : hir :: Unsafety :: Unsafe , abi : bare_fn . abi , sig : bare_fn . sig . clone ( ) } ) ) }
Create an unsafe fn ty based on a safe fn ty.
Create an unsafe fn ty based on a safe fn ty .
self
bare_fn
&BareFnTy<'tcx>