We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baefd42 commit 0fc5296Copy full SHA for 0fc5296
compiler/rustc_trait_selection/src/traits/query/type_op/mod.rs
@@ -155,14 +155,14 @@ where
155
}
156
157
158
- // Promote the final query-region-constraints into a
159
- // (optional) ref-counted vector:
160
- let region_constraints = if region_constraints.is_empty() {
161
- None
162
- } else {
163
- Some(&*infcx.tcx.arena.alloc(region_constraints))
164
- };
165
-
166
- 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,
+ })
167
168
0 commit comments