File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1231,6 +1231,10 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
12311231 trait_ref : ty:: TraitRef < ' tcx > ,
12321232 ) -> ty:: ExistentialTraitRef < ' tcx > {
12331233 if trait_ref. self_ty ( ) != self . tcx ( ) . types . trait_object_dummy_self {
1234+ // FIXME: There appears to be a missing filter on top of `expand_trait_aliases`, which
1235+ // picks up non-supertraits where clauses - but also, the object safety completely
1236+ // ignores trait aliases, which could be object safety hazards. We `delay_span_bug`
1237+ // here to avoid an ICE in stable even when the feature is disabled. (#66420)
12341238 self . tcx ( ) . sess . delay_span_bug ( DUMMY_SP , & format ! (
12351239 "trait_ref_to_existential called on {:?} with non-dummy Self" ,
12361240 trait_ref,
Original file line number Diff line number Diff line change 1- #![ feature( trait_alias) ]
1+ #![ feature( trait_alias) ] // Enabled to reduce stderr output, but can be triggered even if disabled.
22trait Trait { }
33trait WithType {
44 type Ctx ;
You can’t perform that action at this time.
0 commit comments