We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c162b1 commit c8a5b36Copy full SHA for c8a5b36
compiler/rustc_mir_build/src/builder/matches/mod.rs
@@ -1283,8 +1283,8 @@ pub(crate) struct MatchPairTree<'tcx> {
1283
/// ---
1284
/// This can be `None` if it referred to a non-captured place in a closure.
1285
///
1286
- /// Invariant: Can only be `None` when `test_case` is `Irrefutable`.
1287
- /// Therefore this must be `Some(_)` after simplification.
+ /// Invariant: Can only be `None` when `test_case` is `Or`.
+ /// Therefore this must be `Some(_)` after or-pattern expansion.
1288
place: Option<Place<'tcx>>,
1289
1290
/// ... must pass this test...
0 commit comments