forked from mirrors/gecko-dev
Bug 1889308 - Remove proc-macro-back-compat flag. r=firefox-build-system-reviewers,ahochheiden
The flag was added because of problems building the rental crate, but that crate hasn't been used since bug 1724747. Differential Revision: https://phabricator.services.mozilla.com/D206458
This commit is contained in:
parent
2ae48ad49e
commit
e896a829d2
1 changed files with 2 additions and 5 deletions
|
|
@ -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"))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue