File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
rustc_hir_analysis/src/hir_ty_lowering
rustc_trait_selection/src/traits Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,6 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
204
204
for def_ids in associated_types. values_mut ( ) {
205
205
for ( projection_bound, span) in & projection_bounds {
206
206
let def_id = projection_bound. projection_def_id ( ) ;
207
- // FIXME(#120456) - is `swap_remove` correct?
208
207
def_ids. swap_remove ( & def_id) ;
209
208
if tcx. generics_require_sized_self ( def_id) {
210
209
tcx. emit_node_span_lint (
Original file line number Diff line number Diff line change @@ -970,10 +970,10 @@ pub fn object_region_bounds<'tcx>(
970
970
existential_predicates : & ' tcx ty:: List < ty:: PolyExistentialPredicate < ' tcx > > ,
971
971
) -> Vec < ty:: Region < ' tcx > > {
972
972
let predicates = existential_predicates. iter ( ) . filter_map ( |predicate| {
973
- if let ty:: ExistentialPredicate :: Projection ( _) = predicate. skip_binder ( ) {
974
- None
975
- } else {
973
+ if let ty:: ExistentialPredicate :: Trait ( _) = predicate. skip_binder ( ) {
976
974
Some ( predicate. with_self_ty ( tcx, tcx. types . trait_object_dummy_self ) )
975
+ } else {
976
+ None
977
977
}
978
978
} ) ;
979
979
You can’t perform that action at this time.
0 commit comments