Remove the rustc_data_structures::assert_matches! re-exports

This commit is contained in:
Zalathar
2026-03-08 14:43:23 +11:00
parent c7b206bba4
commit 985b41d387
58 changed files with 80 additions and 88 deletions
@@ -8,6 +8,7 @@
//! Typical examples would include: minimum element in SCC, maximum element
//! reachable from it, etc.
use std::debug_assert_matches;
use std::fmt::Debug;
use std::marker::PhantomData;
use std::ops::Range;
@@ -15,7 +16,6 @@
use rustc_index::{Idx, IndexSlice, IndexVec};
use tracing::{debug, instrument, trace};
use crate::debug_assert_matches;
use crate::fx::FxHashSet;
use crate::graph::vec_graph::VecGraph;
use crate::graph::{DirectedGraph, NumEdges, Successors};
+2 -7
View File
@@ -34,16 +34,11 @@
#![feature(unwrap_infallible)]
// tidy-alphabetical-end
// Temporarily re-export `assert_matches!`, so that the rest of the compiler doesn't
// have to worry about it being moved to a different module in std during stabilization.
// FIXME(#151359): Remove this when `feature(assert_matches)` is stable in stage0.
// (This doesn't necessarily need to be fixed during the beta bump itself.)
use std::fmt;
pub use std::{assert_matches, debug_assert_matches};
// This allows derive macros to reference this crate
extern crate self as rustc_data_structures;
use std::fmt;
pub use atomic_ref::AtomicRef;
pub use ena::{snapshot_vec, undo_log, unify};
// Re-export `hashbrown::hash_table`, because it's part of our API