Skip to content

Commit cd79609

Browse files
committed
Remove redundant check.
1 parent b95b8cc commit cd79609

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustc_mir/hair/pattern/check_match.rs

-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@ fn check_legality_of_move_bindings(
583583
.span_label(p.span, "binds an already bound by-move value by moving it")
584584
.emit();
585585
} else if has_guard {
586-
cx.signalled_error = SignalledError::SawSomeError;
587586
if !cx.tcx.features().bind_by_move_pattern_guards {
588587
let mut err = struct_span_err!(cx.tcx.sess, p.span, E0008,
589588
"cannot bind by-move into a pattern guard");

0 commit comments

Comments
 (0)