Skip to content

Commit d3a93f8

Browse files
committed
Add a comment
1 parent 4ae7cd1 commit d3a93f8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

charon/src/types.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,10 @@ pub struct GenericParams {
300300
pub types: TypeVarId::Vector<TypeVar>,
301301
pub const_generics: ConstGenericVarId::Vector<ConstGenericVar>,
302302
// 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.
306307
pub trait_clauses: BTreeMap<TraitClauseId::Id, TraitClause>,
307308
}
308309

0 commit comments

Comments
 (0)