mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add comment
This commit is contained in:
parent
fb6cec440a
commit
d2554776b8
@ -48,6 +48,9 @@ impl<'tcx> UnifyValue for UnifiedRegion<'tcx> {
|
||||
|
||||
fn unify_values(value1: &Self, value2: &Self) -> Result<Self, NoError> {
|
||||
Ok(match (value1.0, value2.0) {
|
||||
// Here we can just pick one value, because the full constraints graph
|
||||
// will be handled later. Ideally, we might want a `MultipleValues`
|
||||
// variant or something. For now though, this is fine.
|
||||
(Some(_), Some(_)) => *value1,
|
||||
|
||||
(Some(_), _) => *value1,
|
||||
|
Loading…
Reference in New Issue
Block a user