diff options
Diffstat (limited to 'build/moz.configure/rust.configure')
-rw-r--r-- | build/moz.configure/rust.configure | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure index 7a2fd1ae70..acac34ec05 100644 --- a/build/moz.configure/rust.configure +++ b/build/moz.configure/rust.configure @@ -766,17 +766,14 @@ def cargo_incremental( set_config("CARGO_INCREMENTAL", cargo_incremental) -@depends(rust_compile_flags, "--enable-warnings-as-errors", rustc_info) -def rust_flags(compile_flags, warnings_as_errors, rustc_info): +@depends(rust_compile_flags, "--enable-warnings-as-errors") +def rust_flags(compile_flags, warnings_as_errors): warning_flags = [] # Note that cargo passes --cap-lints warn to rustc for third-party code, so # we don't need a very complicated setup. if warnings_as_errors: warning_flags.append("-Dwarnings") - # Work around https://github.com/rust-lang/rust/issues/84428 - if rustc_info.version >= "1.52": - warning_flags.append("-Aproc-macro-back-compat") else: warning_flags.extend(("--cap-lints", "warn")) |