Skip to content

Commit 1a58c9e

Browse files
committed
remove unreachable code
1 parent f4d225a commit 1a58c9e

File tree

1 file changed

+0
-5
lines changed
  • compiler/rustc_trait_selection/src/traits/select

1 file changed

+0
-5
lines changed

compiler/rustc_trait_selection/src/traits/select/mod.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1868,11 +1868,6 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
18681868
}
18691869
}
18701870

1871-
// Drop otherwise equivalent non-const fn pointer candidates
1872-
(FnPointerCandidate { .. }, FnPointerCandidate { fn_host_effect }) => {
1873-
DropVictim::drop_if(*fn_host_effect == self.tcx().consts.true_)
1874-
}
1875-
18761871
(
18771872
ParamCandidate(ref other_cand),
18781873
ImplCandidate(..)

0 commit comments

Comments
 (0)