diff options
author | David Tolnay <dtolnay@gmail.com> | 2022-12-03 00:10:42 -0800 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2022-12-03 00:10:42 -0800 |
commit | 4d70bead8344dc02c118b0dd4805a0359c329ea4 (patch) | |
tree | 5da48a4d25d9c238b974eb02f9215f128c2e2734 | |
parent | 7fbccc5ad68f6042a90b647740c60fe1a36447d5 (diff) | |
download | cxx-4d70bead8344dc02c118b0dd4805a0359c329ea4.tar.gz |
Suppress warnings in third-party crates just like Cargo does
-rw-r--r-- | third-party/BUCK | 29 | ||||
-rw-r--r-- | third-party/reindeer.toml | 1 |
2 files changed, 27 insertions, 3 deletions
diff --git a/third-party/BUCK b/third-party/BUCK index 876cd587..8036117e 100644 --- a/third-party/BUCK +++ b/third-party/BUCK @@ -12,6 +12,7 @@ rust_library( crate_root = "vendor/bitflags-1.3.2/src/lib.rs", edition = "2018", features = ["default"], + rustc_flags = ["--cap-lints=allow"], visibility = [], ) @@ -35,6 +36,7 @@ rust_library( crate = "cc", crate_root = "vendor/cc-1.0.77/src/lib.rs", edition = "2018", + rustc_flags = ["--cap-lints=allow"], visibility = [], ) @@ -131,6 +133,7 @@ rust_library( "std", "usage", ], + rustc_flags = ["--cap-lints=allow"], visibility = [], deps = [ ":bitflags-1.3.2", @@ -144,6 +147,7 @@ rust_library( crate = "clap_lex", crate_root = "vendor/clap_lex-0.3.0/src/lib.rs", edition = "2021", + rustc_flags = ["--cap-lints=allow"], visibility = [], deps = [":os_str_bytes-6.4.1"], ) @@ -168,6 +172,7 @@ rust_library( crate = "codespan_reporting", crate_root = "vendor/codespan-reporting-0.11.1/src/lib.rs", edition = "2018", + rustc_flags = ["--cap-lints=allow"], visibility = [], deps = [ ":termcolor-1.1.3", @@ -199,6 +204,7 @@ rust_library( "race", "std", ], + rustc_flags = ["--cap-lints=allow"], visibility = [], ) @@ -225,6 +231,7 @@ rust_library( crate_root = "vendor/os_str_bytes-6.4.1/src/lib.rs", edition = "2021", features = ["raw_os_str"], + rustc_flags = ["--cap-lints=allow"], visibility = [], ) @@ -253,7 +260,10 @@ rust_library( "proc-macro", "span-locations", ], - rustc_flags = ["@$(location :proc-macro2-1.0.47-build-script-build-args)"], + rustc_flags = [ + "--cap-lints=allow", + "@$(location :proc-macro2-1.0.47-build-script-build-args)", + ], visibility = [], deps = [":unicode-ident-1.0.5"], ) @@ -269,6 +279,7 @@ rust_binary( "proc-macro", "span-locations", ], + rustc_flags = ["--cap-lints=allow"], visibility = [], ) @@ -310,7 +321,10 @@ rust_library( "default", "proc-macro", ], - rustc_flags = ["@$(location :quote-1.0.21-build-script-build-args)"], + rustc_flags = [ + "--cap-lints=allow", + "@$(location :quote-1.0.21-build-script-build-args)", + ], visibility = [], deps = [":proc-macro2-1.0.47"], ) @@ -325,6 +339,7 @@ rust_binary( "default", "proc-macro", ], + rustc_flags = ["--cap-lints=allow"], visibility = [], ) @@ -356,6 +371,7 @@ rust_library( env = { "OUT_DIR": "generated", }, + rustc_flags = ["--cap-lints=allow"], visibility = [], ) @@ -434,7 +450,10 @@ rust_library( "proc-macro", "quote", ], - rustc_flags = ["@$(location :syn-1.0.105-build-script-build-args)"], + rustc_flags = [ + "--cap-lints=allow", + "@$(location :syn-1.0.105-build-script-build-args)", + ], visibility = [], deps = [ ":proc-macro2-1.0.47", @@ -459,6 +478,7 @@ rust_binary( "proc-macro", "quote", ], + rustc_flags = ["--cap-lints=allow"], visibility = [], ) @@ -487,6 +507,7 @@ rust_library( crate = "termcolor", crate_root = "vendor/termcolor-1.1.3/src/lib.rs", edition = "2018", + rustc_flags = ["--cap-lints=allow"], visibility = [], ) @@ -499,6 +520,7 @@ rust_library( crate = "unicode_ident", crate_root = "vendor/unicode-ident-1.0.5/src/lib.rs", edition = "2018", + rustc_flags = ["--cap-lints=allow"], visibility = [], ) @@ -513,5 +535,6 @@ rust_library( crate_root = "vendor/unicode-width-0.1.10/src/lib.rs", edition = "2015", features = ["default"], + rustc_flags = ["--cap-lints=allow"], visibility = [], ) diff --git a/third-party/reindeer.toml b/third-party/reindeer.toml index 72a477a1..eb65857c 100644 --- a/third-party/reindeer.toml +++ b/third-party/reindeer.toml @@ -1,4 +1,5 @@ precise_srcs = true +rustc_flags = ["--cap-lints=allow"] [cargo] versioned_dirs = true |