Skip to content

Commit 356ce96

Browse files
committed
Remove extraneous return statement
1 parent 342ec83 commit 356ce96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/traits/const_evaluatable.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ pub fn is_const_evaluatable<'cx, 'tcx>(
162162
debug!(?concrete, "is_const_evaluatable");
163163
match concrete {
164164
Err(ErrorHandled::TooGeneric) => {
165-
return Err(match substs.has_infer_types_or_consts() {
165+
Err(match substs.has_infer_types_or_consts() {
166166
true => NotConstEvaluatable::MentionsInfer,
167167
false => NotConstEvaluatable::MentionsParam,
168-
});
168+
})
169169
}
170170
Err(ErrorHandled::Linted) => {
171171
infcx.tcx.sess.delay_span_bug(span, "constant in type had error reported as lint");

0 commit comments

Comments
 (0)