[libc++][chrono] Removes format include.
authorMark de Wever <koraq@xs4all.nl>
Tue, 13 Sep 2022 18:10:26 +0000 (20:10 +0200)
committerMark de Wever <koraq@xs4all.nl>
Tue, 20 Sep 2022 16:58:13 +0000 (18:58 +0200)
Switch to the new granular format_functions header. Since the chrono's
format dependency in C++20 hasn't been in a release it's save to remove
it.

Depends on D133665

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D133796

libcxx/include/__chrono/ostream.h
libcxx/test/libcxx/transitive_includes/cxx20/expected.chrono
libcxx/test/libcxx/transitive_includes/cxx2b/expected.chrono

index f45e949..7d67964 100644 (file)
@@ -13,7 +13,7 @@
 #include <__chrono/day.h>
 #include <__chrono/statically_widen.h>
 #include <__config>
-#include <format>
+#include <__format/format_functions.h>
 #include <ostream>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)