[libc++] Enable [[nodiscard]] extensions by default
Adding `[[nodiscard]]` to functions is a conforming extension and done extensively in the MSVC STL.
Reviewed By: ldionne, EricWF, #libc
Spies: #libc_vendors, cjdb, mgrang, jloser, libcxx-commits
Differential Revision: https://reviews.llvm.org/D128267
NOKEYCHECK=True
GitOrigin-RevId: 3c355e2881887fea6f4b31e26b68aefa4d216fd0
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index fda4b69..8d11c1b 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -75,7 +75,7 @@
- ``_LIBCPP_ENABLE_NODISCARD`` and ``_LIBCPP_DISABLE_NODISCARD_AFTER_CXX17`` are no longer respected.
Any standards-required ``[[nodiscard]]`` applications in C++20 are now always enabled. Any extended applications
- can now be enabled by defining ``_LIBCPP_ENABLE_NODISCARD_EXT``.
+ are now enabled by default and can be disabled by defining ``_LIBCPP_DISABLE_NODISCARD_EXT``.
ABI Affecting Changes
---------------------