Skip to content

Commit 15ae3ef

Browse files
committed
Remove superfluous traversable impl for bool
1 parent b5321e3 commit 15ae3ef

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/rustc_hir_typeck/src/pat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
567567
(lhs, Some((true, rhs_ty, rhs_sp))) => one_side_err(rhs_sp, rhs_ty, lhs),
568568
_ => span_bug!(span, "Impossible, verified above."),
569569
}
570-
if (lhs, rhs).references_error() {
570+
if (lhs.map(|(_, ty, _)| ty), rhs.map(|(_, ty, _)| ty)).references_error() {
571571
err.downgrade_to_delayed_bug();
572572
}
573573
if self.tcx.sess.teach(&err.get_code().unwrap()) {

compiler/rustc_type_ir/src/macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ macro_rules! TrivialTypeTraversalImpls {
4242

4343
TrivialTypeTraversalImpls! {
4444
(),
45-
bool,
4645
usize,
4746
}
4847

0 commit comments

Comments
 (0)