diff options
| author | bors <bors@rust-lang.org> | 2024-08-14 05:52:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-14 05:52:50 +0000 |
| commit | f25ca7eca8379e1d3da0963f2a6c7ab4ed7da452 (patch) | |
| tree | 5790ad14119476292ab169019d5a635a31819b0f /compiler/rustc_data_structures/src | |
| parent | 6ff09af0cdd55e504b9710b7b67292538b7e0677 (diff) | |
| parent | db3f92144d6f3b4db8aa19357dee42dd256f1f13 (diff) | |
| download | rust-f25ca7eca8379e1d3da0963f2a6c7ab4ed7da452.tar.gz rust-f25ca7eca8379e1d3da0963f2a6c7ab4ed7da452.zip | |
Auto merge of #3803 - RalfJung:rustup, r=RalfJung
Rustup
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/scc/mod.rs | 3 | ||||
| -rw-r--r-- | compiler/rustc_data_structures/src/lib.rs | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/graph/scc/mod.rs b/compiler/rustc_data_structures/src/graph/scc/mod.rs index 96fc8ae3887..2a457ffb70b 100644 --- a/compiler/rustc_data_structures/src/graph/scc/mod.rs +++ b/compiler/rustc_data_structures/src/graph/scc/mod.rs @@ -8,6 +8,7 @@ //! Typical examples would include: minimum element in SCC, maximum element //! reachable from it, etc. +use std::assert_matches::debug_assert_matches; use std::fmt::Debug; use std::ops::Range; @@ -569,7 +570,7 @@ where // This None marks that we still have the initialize this node's frame. debug!(?depth, ?node); - debug_assert!(matches!(self.node_states[node], NodeState::NotVisited)); + debug_assert_matches!(self.node_states[node], NodeState::NotVisited); // Push `node` onto the stack. self.node_states[node] = NodeState::BeingVisited { diff --git a/compiler/rustc_data_structures/src/lib.rs b/compiler/rustc_data_structures/src/lib.rs index 403136e78f4..a35f5b1f17d 100644 --- a/compiler/rustc_data_structures/src/lib.rs +++ b/compiler/rustc_data_structures/src/lib.rs @@ -18,6 +18,7 @@ #![feature(array_windows)] #![feature(ascii_char)] #![feature(ascii_char_variants)] +#![feature(assert_matches)] #![feature(auto_traits)] #![feature(cfg_match)] #![feature(core_intrinsics)] |
