From nobody Fri May 29 23:01:57 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gRzPy2yjfz6gF6F for ; Fri, 29 May 2026 23:01:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gRzPx6Z67z3CCt for ; Fri, 29 May 2026 23:01:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780095717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MIvguAXfsDi3jQQj3LicK9O64iuYHIjHDsUIZbXDV6c=; b=eYB2l1MEWnCwwywiaVWw4CG2DuGyOb/PwT57ZVFh92I/p8wi/SL4NMtOJ0sz4XGGSAu/Mw 9RggTL15hm2aYvBMA4FX8EBxtA9J8S0AQe6xJfePs4Yn0HyGS1KP4n4hs7LckDexgWDjZP dwAUAHBCoRYXkUxzOuM1Nn2uAmw9wBTpyuafgSxBsosK18EajkNPKhJ2lmviqHHri/rLAm syJTCfUorzFogqekIZ9yTxsgZsZXw3SB6927AG31jOXCCvsD4E8wUk1U4ao5VUQ/TG3GD+ meL8/6w5XfT76ctCL7hxwZCy6plTorF/tFavnrbfmCzzKl3rTCucSPNvgdrz+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780095717; a=rsa-sha256; cv=none; b=LE/Bl9hu3UbxUTMJCQpl1iLUdtn+D7eA1AR6Hbg8haTYmFqrotAcmgeVVwAVjz9KV8+6C6 RFJEKRB3hwx4VQf7ejkISrBkO2u6Y/CbhyWp9eHfpneLA21T47JxFBkpJsaFkNGX0kUgcS FHmTmkhXC2oHrH1MRvQVztYWK0u8FGnz+oc8kUOp9imJtgVU8sTQX/vEv3IKGGGbb2ADak 0oXMMvWKjjUXdNz1kxe1JR0LtFBBIjC20Jcv4cF+MFmFYEZTiai00iNXQo+tPRbw4S9J4t 0/y6LdFjY/UYN6qWhCcudO8J0eR2Rr0X9LAYFWZJmHfz6ifMVNlNvoSHNeb+YQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780095717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MIvguAXfsDi3jQQj3LicK9O64iuYHIjHDsUIZbXDV6c=; b=dYLlcAvKpCmyhBc0vrV0euDGdD1RJYd4J0pLWjrJVABTKBx4iCHMh9iacZuxeXhvItC0HK gvS9HU9bkF5AtxvGWByw2cok7eKwGgYNyCNVeY4LUyvAE3owB63y+qckhI7Siw8+l353Jm eprXri5893BNlGPHGhdImRe/hCW3rM5wT1aQ7ipjo5Yk8layElm8A5DJuEnRabX9o9daQq nlr9+UpI+QsQQGPFfe9a4lEogx2O+L9ZB0fGoKRp99QCMmT8i3Sx16yBSByJttytAMYFXz 5GC9X8mZssm+n17Fpp6rPakfgtT0iG2jfS+AZaHiKxg9pWRM9gjXwDoi17x6sg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gRzPx5sXwztXn for ; Fri, 29 May 2026 23:01:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 42c82 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 29 May 2026 23:01:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Dimitry Andric From: Dimitry Andric Subject: git: 1445ef556ac1 - stable/15 - libcxx-compat: revert llvmorg-21-init-10154-ge43e8ec7afbd: List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 1445ef556ac153dc5f4b14b2f8f8580ef12c2f4d Auto-Submitted: auto-generated Date: Fri, 29 May 2026 23:01:57 +0000 Message-Id: <6a1a1ae5.42c82.75caff60@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=1445ef556ac153dc5f4b14b2f8f8580ef12c2f4d commit 1445ef556ac153dc5f4b14b2f8f8580ef12c2f4d Author: Dimitry Andric AuthorDate: 2026-01-05 19:55:12 +0000 Commit: Dimitry Andric CommitDate: 2026-05-29 22:57:32 +0000 libcxx-compat: revert llvmorg-21-init-10154-ge43e8ec7afbd: [libc++] Remove dead implementation of is_nothrow_convertible and merge the remaining code into is_convertible.h (#137717) We can use the `__is_nothrow_convertible` builtin unconditionally now, which makes the implementation very simple, so there isn't much of a need to keep a separate header around. This is part of making libc++ 21 build with clang 18. PR: 292067 MFC after: 1 month (cherry picked from commit 035396ceda495f456ca570fb715b04a7fc3b25c2) --- .../libcxx/include/__type_traits/is_convertible.h | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/contrib/llvm-project/libcxx/include/__type_traits/is_convertible.h b/contrib/llvm-project/libcxx/include/__type_traits/is_convertible.h index f0a859f9cc16..56f26ffaec71 100644 --- a/contrib/llvm-project/libcxx/include/__type_traits/is_convertible.h +++ b/contrib/llvm-project/libcxx/include/__type_traits/is_convertible.h @@ -10,6 +10,9 @@ #define _LIBCPP___TYPE_TRAITS_IS_CONVERTIBLE_H #include <__config> +#include <__type_traits/conjunction.h> +#include <__type_traits/disjunction.h> +#include <__type_traits/lazy.h> #include <__type_traits/integral_constant.h> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) @@ -28,12 +31,35 @@ _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_convertible_v = __is_convert #if _LIBCPP_STD_VER >= 20 +# if __has_builtin(__is_nothrow_convertible) + template struct _LIBCPP_NO_SPECIALIZATIONS is_nothrow_convertible : bool_constant<__is_nothrow_convertible(_Tp, _Up)> {}; template _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_nothrow_convertible_v = __is_nothrow_convertible(_Tp, _Up); +# else // __has_builtin(__is_nothrow_convertible) + +template +void __test_noexcept(_Tp) noexcept; + +template +bool_constant(std::declval<_Fm>()))> __is_nothrow_convertible_test(); + +template +struct __is_nothrow_convertible_helper : decltype(std::__is_nothrow_convertible_test<_Fm, _To>()) {}; + +template +struct is_nothrow_convertible + : _Or<_And, is_void<_Fm>>, + _Lazy<_And, is_convertible<_Fm, _To>, __is_nothrow_convertible_helper<_Fm, _To> > >::type {}; + +template +inline constexpr bool is_nothrow_convertible_v = is_nothrow_convertible<_Fm, _To>::value; + +# endif // __has_builtin(__is_nothrow_convertible) + #endif // _LIBCPP_STD_VER >= 20 _LIBCPP_END_NAMESPACE_STD