Skip to content

Commit 0fc5296

Browse files
committed
remove outdated comment
1 parent baefd42 commit 0fc5296

File tree

1 file changed

+9
-9
lines changed
  • compiler/rustc_trait_selection/src/traits/query/type_op

1 file changed

+9
-9
lines changed

compiler/rustc_trait_selection/src/traits/query/type_op/mod.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ where
155155
}
156156
}
157157

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 })
158+
Ok(TypeOpOutput {
159+
output,
160+
constraints: if region_constraints.is_empty() {
161+
None
162+
} else {
163+
Some(infcx.tcx.arena.alloc(region_constraints))
164+
},
165+
error_info,
166+
})
167167
}
168168
}

0 commit comments

Comments
 (0)