We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fffdf9 commit 427ac5cCopy full SHA for 427ac5c
compiler/rustc_middle/src/mir/basic_blocks.rs
@@ -20,6 +20,10 @@ pub struct BasicBlocks<'tcx> {
20
// Typically 95%+ of basic blocks have 4 or fewer predecessors.
21
type Predecessors = IndexVec<BasicBlock, SmallVec<[BasicBlock; 4]>>;
22
23
+// Note: this type is currently never instantiated, because it's only used for
24
+// `BasicBlocks::switch_sources`, which is only called by backwards analyses
25
+// that do `SwitchInt` handling, and we don't have any of those, not even in
26
+// tests. See #95120 and #94576.
27
type SwitchSources = FxHashMap<(BasicBlock, BasicBlock), SmallVec<[u128; 1]>>;
28
29
#[derive(Clone, Default, Debug)]
0 commit comments