Skip to content

Commit

Permalink
Remove redundant check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Jul 28, 2019
1 parent b95b8cc commit cd79609
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/librustc_mir/hair/pattern/check_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ fn check_legality_of_move_bindings(
.span_label(p.span, "binds an already bound by-move value by moving it")
.emit();
} else if has_guard {
cx.signalled_error = SignalledError::SawSomeError;
if !cx.tcx.features().bind_by_move_pattern_guards {
let mut err = struct_span_err!(cx.tcx.sess, p.span, E0008,
"cannot bind by-move into a pattern guard");
Expand Down

0 comments on commit cd79609

Please sign in to comment.