Skip to content

Commit 7547da8

Browse files
committed
remove fixme & use unreachable
1 parent adf8036 commit 7547da8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_next_trait_solver/src/coherence.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,7 @@ where
437437
// Tuples are the only exception.
438438
ty::Tuple(..) => ControlFlow::Continue(()),
439439
_ => {
440-
// FIXME(field_projections): no `bug!` available?
441-
panic!("field_path should only consist of tuples and structs for `ty::Field`, but found {base:?}")
440+
unreachable!("field_path should only consist of tuples and structs for `ty::Field`, but found {base:?}")
442441
}
443442
})
444443
.unwrap_or(ControlFlow::Break(OrphanCheckEarlyExit::LocalTy(container)))

0 commit comments

Comments
 (0)