MatchPairTree: update invariant comment
This commit is contained in:
parent
0c162b19ec
commit
c8a5b3677b
1 changed files with 2 additions and 2 deletions
|
@ -1283,8 +1283,8 @@ pub(crate) struct MatchPairTree<'tcx> {
|
|||
/// ---
|
||||
/// This can be `None` if it referred to a non-captured place in a closure.
|
||||
///
|
||||
/// Invariant: Can only be `None` when `test_case` is `Irrefutable`.
|
||||
/// 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.
|
||||
place: Option<Place<'tcx>>,
|
||||
|
||||
/// ... must pass this test...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue