Simplify object_region_bounds

This commit is contained in:
Michael Goulet 2024-11-25 17:38:28 +00:00
parent 7db7489f9b
commit d3867174c0
2 changed files with 7 additions and 30 deletions

View file

@ -194,7 +194,6 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
for def_ids in associated_types.values_mut() {
for (projection_bound, span) in &projection_bounds {
let def_id = projection_bound.projection_def_id();
// FIXME(#120456) - is `swap_remove` correct?
def_ids.swap_remove(&def_id);
if tcx.generics_require_sized_self(def_id) {
tcx.emit_node_span_lint(