depot/third_party/nixpkgs/pkgs/development/tools/rubyfmt/0003-ignore-warnings.patch
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

21 lines
No EOL
816 B
Diff

diff --git i/librubyfmt/build.rs w/librubyfmt/build.rs
index 296b749..941a4ca 100644
--- i/librubyfmt/build.rs
+++ w/librubyfmt/build.rs
@@ -166,6 +166,7 @@ fn run_configure(ruby_checkout_path: &Path) -> Output {
command
.arg("--target=aarch64-unknown-linux-gnu")
.arg("--host=x86_64")
+ .arg("--disable-werror")
.env("CC", "aarch64-linux-gnu-gcc")
.env("AR", "aarch64-linux-gnu-ar")
.env("RANLIB", "aarch64-linux-gnu-ranlib");
diff --git i/librubyfmt/src/lib.rs w/librubyfmt/src/lib.rs
index 9b94b5f..b78e99f 100644
--- i/librubyfmt/src/lib.rs
+++ w/librubyfmt/src/lib.rs
@@ -1,4 +1,3 @@
-#![deny(warnings, missing_copy_implementations)]
#![allow(clippy::upper_case_acronyms, clippy::enum_variant_names)]
use serde::de::value;