Skip to content

Commit d255477

Browse files
committed
Add comment
1 parent fb6cec4 commit d255477

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_middle/src/infer/unify_key.rs

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ impl<'tcx> UnifyValue for UnifiedRegion<'tcx> {
4848

4949
fn unify_values(value1: &Self, value2: &Self) -> Result<Self, NoError> {
5050
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.
5154
(Some(_), Some(_)) => *value1,
5255

5356
(Some(_), _) => *value1,

0 commit comments

Comments
 (0)