Skip to content

Commit b872e63

Browse files
committed
Fix known-known const unification case
1 parent 97c0c66 commit b872e63

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc/infer/unify_key.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ impl<'tcx> UnifyValue for ConstVarValue<'tcx> {
134134
ConstVariableValue::Known { value: value1 },
135135
ConstVariableValue::Known { value: value2 }
136136
) => {
137-
match <&'tcx ty::Const<'tcx>>::unify_values(&value1, &value2) {
138-
Ok(value) => Ok(ConstVariableValue::Known { value }),
139-
Err(err) => Err(err),
140-
}
137+
bug!("equating two const variables, both of which have known values")
141138
}
142139

143140
// If one side is known, prefer that one.

0 commit comments

Comments
 (0)