pub(crate) fn is_inline_valid_on_fn<'tcx>( tcx: TyCtxt<'tcx>, def_id: DefId, ) -> Result<(), &'static str>