From 15a1d647cf5e98835e800e5b6d17ec260dcb89cc Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 11 Mar 2024 19:52:46 -0700 Subject: [PATCH] Make compatible with -Dwarnings --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index 0b995d8..4216179 100644 --- a/build.rs +++ b/build.rs @@ -84,6 +84,7 @@ fn compile_probe(rustc_bootstrap: bool) -> bool { .arg("--edition=2018") .arg("--crate-name=thiserror") .arg("--crate-type=lib") + .arg("--cap-lints=allow") .arg("--emit=dep-info,metadata") .arg("--out-dir") .arg(out_dir)