File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -300,9 +300,10 @@ pub struct GenericParams {
300
300
pub types : TypeVarId :: Vector < TypeVar > ,
301
301
pub const_generics : ConstGenericVarId :: Vector < ConstGenericVar > ,
302
302
// TODO: rename to match [GenericArgs]?
303
- // Remark: this is an OrdMap, not a vector, because due to the filtering
304
- // of some trait clauses (for the marker traits for instance) the indexation
305
- // is not contiguous.
303
+ // Remark: this is a [BTreeMap], not a [TraitClauseId::Vector], because due to the
304
+ // filtering of some trait clauses (for the marker traits for instance) the indexation
305
+ // is not contiguous. We could use a simple [Vector], but for now we want to make sure
306
+ // there are no ambiguities.
306
307
pub trait_clauses : BTreeMap < TraitClauseId :: Id , TraitClause > ,
307
308
}
308
309
You can’t perform that action at this time.
0 commit comments