about summary refs log tree commit diff
path: root/compiler/rustc_index/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-19 17:15:04 +0000
committerbors <bors@rust-lang.org>2023-12-19 17:15:04 +0000
commit3a539c08891a422d34beb32d2556a08ea0357b7d (patch)
treeb1d455b8295df56e424ec801b3a99d888f81be56 /compiler/rustc_index/src/lib.rs
parentc9c9f527e373efbb755e88661aaf012ad6a2d17c (diff)
parent3016c296287da816fba5c4a9c7e2c8cdebbe0126 (diff)
downloadrust-3a539c08891a422d34beb32d2556a08ea0357b7d.tar.gz
rust-3a539c08891a422d34beb32d2556a08ea0357b7d.zip
Auto merge of #118842 - Nadrieril:librarify-further, r=compiler-errors
Make exhaustiveness usable outside of rustc

With this PR, `rustc_pattern_analysis` compiles on stable (with the `stable` feature)! `rust-analyzer` will be able to use it to provide match-related diagnostics and refactors.

Two questions:
- Should I name the feature `nightly` instead of `rustc` for consistency with other crates? `rustc` makes more sense imo.
- `typed-arena` is an optional dependency but tidy made me add it to the allow-list anyway. Can I avoid that somehow?

r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_index/src/lib.rs')
-rw-r--r--compiler/rustc_index/src/lib.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_index/src/lib.rs b/compiler/rustc_index/src/lib.rs
index c5602392c53..185e0c7d698 100644
--- a/compiler/rustc_index/src/lib.rs
+++ b/compiler/rustc_index/src/lib.rs
@@ -14,7 +14,6 @@
 )]
 #![cfg_attr(feature = "nightly", allow(internal_features))]
 
-#[cfg(feature = "nightly")]
 pub mod bit_set;
 #[cfg(feature = "nightly")]
 pub mod interval;