Skip to content

Commit 427ac5c

Browse files
committed
Add a useful comment.
1 parent 3fffdf9 commit 427ac5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_middle/src/mir/basic_blocks.rs

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ pub struct BasicBlocks<'tcx> {
2020
// Typically 95%+ of basic blocks have 4 or fewer predecessors.
2121
type Predecessors = IndexVec<BasicBlock, SmallVec<[BasicBlock; 4]>>;
2222

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.
2327
type SwitchSources = FxHashMap<(BasicBlock, BasicBlock), SmallVec<[u128; 1]>>;
2428

2529
#[derive(Clone, Default, Debug)]

0 commit comments

Comments
 (0)