Remove extraneous return statement
This commit is contained in:
parent
342ec83629
commit
356ce96fe1
1 changed files with 2 additions and 2 deletions
|
@ -162,10 +162,10 @@ pub fn is_const_evaluatable<'cx, 'tcx>(
|
||||||
debug!(?concrete, "is_const_evaluatable");
|
debug!(?concrete, "is_const_evaluatable");
|
||||||
match concrete {
|
match concrete {
|
||||||
Err(ErrorHandled::TooGeneric) => {
|
Err(ErrorHandled::TooGeneric) => {
|
||||||
return Err(match substs.has_infer_types_or_consts() {
|
Err(match substs.has_infer_types_or_consts() {
|
||||||
true => NotConstEvaluatable::MentionsInfer,
|
true => NotConstEvaluatable::MentionsInfer,
|
||||||
false => NotConstEvaluatable::MentionsParam,
|
false => NotConstEvaluatable::MentionsParam,
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
Err(ErrorHandled::Linted) => {
|
Err(ErrorHandled::Linted) => {
|
||||||
infcx.tcx.sess.delay_span_bug(span, "constant in type had error reported as lint");
|
infcx.tcx.sess.delay_span_bug(span, "constant in type had error reported as lint");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue