Skip to content

Commit c8a5b36

Browse files
committed
MatchPairTree: update invariant comment
1 parent 0c162b1 commit c8a5b36

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_mir_build/src/builder/matches

1 file changed

+2
-2
lines changed

compiler/rustc_mir_build/src/builder/matches/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1283,8 +1283,8 @@ pub(crate) struct MatchPairTree<'tcx> {
12831283
/// ---
12841284
/// This can be `None` if it referred to a non-captured place in a closure.
12851285
///
1286-
/// Invariant: Can only be `None` when `test_case` is `Irrefutable`.
1287-
/// Therefore this must be `Some(_)` after simplification.
1286+
/// Invariant: Can only be `None` when `test_case` is `Or`.
1287+
/// Therefore this must be `Some(_)` after or-pattern expansion.
12881288
place: Option<Place<'tcx>>,
12891289

12901290
/// ... must pass this test...

0 commit comments

Comments
 (0)