We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97c0c66 commit b872e63Copy full SHA for b872e63
src/librustc/infer/unify_key.rs
@@ -134,10 +134,7 @@ impl<'tcx> UnifyValue for ConstVarValue<'tcx> {
134
ConstVariableValue::Known { value: value1 },
135
ConstVariableValue::Known { value: value2 }
136
) => {
137
- match <&'tcx ty::Const<'tcx>>::unify_values(&value1, &value2) {
138
- Ok(value) => Ok(ConstVariableValue::Known { value }),
139
- Err(err) => Err(err),
140
- }
+ bug!("equating two const variables, both of which have known values")
141
}
142
143
// If one side is known, prefer that one.
0 commit comments