[libc++] Avoid deprecation warning in the implementation of __has_rebind

Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: c030ba64e482b0dea2ef1e06e0ca1f3e27727334
diff --git a/include/memory b/include/memory
index bea55d6..bf31bfc 100644
--- a/include/memory
+++ b/include/memory
@@ -847,7 +847,9 @@
 private:
     struct __two {char __lx; char __lxx;};
     template <class _Xp> static __two __test(...);
+    _LIBCPP_SUPPRESS_DEPRECATED_PUSH
     template <class _Xp> static char __test(typename _Xp::template rebind<_Up>* = 0);
+    _LIBCPP_SUPPRESS_DEPRECATED_POP
 public:
     static const bool value = sizeof(__test<_Tp>(0)) == 1;
 };