From da4c7e7ed675c3bf405668739c3012d140856109 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:34:42 +0200 Subject: Adding upstream version 126.0. Signed-off-by: Daniel Baumann --- build/moz.configure/rust.configure | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'build/moz.configure/rust.configure') 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")) -- cgit v1.2.3