Since this warning is not easily fixable, avoid it for now and wait for
the underlying issue to be resolved.
gcc/rust/ChangeLog:
PR rust/122498
* ast/rust-fmt.h: Add -Warray-bounds pragma to avoid the issue during
bootstraps
Co-authored-by: Thomas Schwinge <tschwinge@gcc.gnu.org>
#include "rust-system.h"
#include "optional.h"
+// PR122498 "rust-enabled bootstrap is broken after r16-4897"
+#pragma GCC diagnostic push
+#pragma GCC diagnostic warning "-Warray-bounds"
+
namespace Rust {
namespace Fmt {
} // namespace Fmt
} // namespace Rust
+// PR122498 "rust-enabled bootstrap is broken after r16-4897"
+#pragma GCC diagnostic push
+
#endif // !RUST_FMT_H