Rollup merge of #47162 - stjepang:cleanup-btreeset, r=alexcrichton
Remove `T: Ord` bound from `BTreeSet::{is_empty, len}` This change makes the API for `BTreeSet` more consistent with `BTreeMap`, where `BTreeMap::{is_empty, len}` don't require `T: Ord` either. Also, it reduces the number of `impl`s for `BTreeSet`, making the generated documentation look much cleaner. Closes #47138. cc @rust-lang/libs
Showing
想要评论请 注册 或 登录