We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb6cec4 commit d255477Copy full SHA for d255477
compiler/rustc_middle/src/infer/unify_key.rs
@@ -48,6 +48,9 @@ impl<'tcx> UnifyValue for UnifiedRegion<'tcx> {
48
49
fn unify_values(value1: &Self, value2: &Self) -> Result<Self, NoError> {
50
Ok(match (value1.0, value2.0) {
51
+ // Here we can just pick one value, because the full constraints graph
52
+ // will be handled later. Ideally, we might want a `MultipleValues`
53
+ // variant or something. For now though, this is fine.
54
(Some(_), Some(_)) => *value1,
55
56
(Some(_), _) => *value1,
0 commit comments