about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2024-08-24 20:40:02 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2024-08-24 20:40:02 +0000
commit902264b1a6c3d782df3242440cc6c5b866f982d0 (patch)
treea7da8dde461a5c17dbf79a4867444d13cad55a4d
parentad855fe6db641755c528fb5b1cc0308f3a4bf607 (diff)
downloadrust-902264b1a6c3d782df3242440cc6c5b866f982d0.tar.gz
rust-902264b1a6c3d782df3242440cc6c5b866f982d0.zip
allow cfg(bootstrap) to avoid check-cfg warning on stable
-rw-r--r--compiler/rustc_type_ir/Cargo.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_type_ir/Cargo.toml b/compiler/rustc_type_ir/Cargo.toml
index 2750838bbe9..785fa5e386a 100644
--- a/compiler/rustc_type_ir/Cargo.toml
+++ b/compiler/rustc_type_ir/Cargo.toml
@@ -31,3 +31,6 @@ nightly = [
     "rustc_index/nightly",
     "rustc_ast_ir/nightly"
 ]
+
+[lints.rust]
+unexpected_cfgs = { level = "warn", check-cfg = ['cfg(bootstrap)'] }