fix nit
This commit is contained in:
parent
9829efb892
commit
d380ed1304
2 changed files with 8 additions and 2 deletions
|
@ -272,9 +272,15 @@ impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx> {
|
||||||
// to borrow discr.
|
// to borrow discr.
|
||||||
needs_to_be_read = true;
|
needs_to_be_read = true;
|
||||||
}
|
}
|
||||||
_ => {
|
PatKind::Or(_)
|
||||||
|
| PatKind::Box(_)
|
||||||
|
| PatKind::Slice(..)
|
||||||
|
| PatKind::Ref(..)
|
||||||
|
| PatKind::Wild => {
|
||||||
// If the PatKind is Or, Box, Slice or Ref, the decision is made later
|
// If the PatKind is Or, Box, Slice or Ref, the decision is made later
|
||||||
// as these patterns contains subpatterns
|
// as these patterns contains subpatterns
|
||||||
|
// If the PatKind is Wild, the decision is made based on the other patterns being
|
||||||
|
// examined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -11,4 +11,4 @@ pub fn foo() {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
foo();
|
foo();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue