Skip to content

Commit

Permalink
remove outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Jul 12, 2022
1 parent baefd42 commit 0fc5296
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions compiler/rustc_trait_selection/src/traits/query/type_op/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ where
}
}

// Promote the final query-region-constraints into a
// (optional) ref-counted vector:
let region_constraints = if region_constraints.is_empty() {
None
} else {
Some(&*infcx.tcx.arena.alloc(region_constraints))
};

Ok(TypeOpOutput { output, constraints: region_constraints, error_info })
Ok(TypeOpOutput {
output,
constraints: if region_constraints.is_empty() {
None
} else {
Some(infcx.tcx.arena.alloc(region_constraints))
},
error_info,
})
}
}

0 comments on commit 0fc5296

Please sign in to comment.