From b1765814b6db85dd5dd725734df76a4bd9426a23 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 11 Mar 2024 20:05:04 -0700 Subject: [PATCH] Prevent new lint from turning off nightly span support under -Dwarnings --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index 3347f87..266e52b 100644 --- a/build.rs +++ b/build.rs @@ -156,6 +156,7 @@ fn compile_probe(rustc_bootstrap: bool) -> bool { .arg("--edition=2021") .arg("--crate-name=proc_macro2") .arg("--crate-type=lib") + .arg("--cap-lints=allow") .arg("--emit=dep-info,metadata") .arg("--out-dir") .arg(out_dir)