rust/library/alloc
Mara Bos 78be1aa226
Rollup merge of #81610 - ssomers:btree_emphasize_ord_bound, r=dtolnay
BTreeMap: make Ord bound explicit, compile-test its absence

Most `BTreeMap` and `BTreeSet` members are subject to an `Ord` bound but a fair number of methods are not. To better convey and perhaps later tune the `Ord` bound, make it stand out in individual `where` clauses, instead of once far away at the beginning of an `impl` block. This PR does not introduce or remove any bounds.

Also adds compilation test cases checking that the bound doesn't creep in unintended on the historically unbounded methods.
2021-02-06 00:14:11 +01:00
..
benches Reorder benches const variable 2020-09-29 21:39:24 +08:00
src Rollup merge of #81610 - ssomers:btree_emphasize_ord_bound, r=dtolnay 2021-02-06 00:14:11 +01:00
tests Revert stabilizing integer::BITS. 2021-02-03 22:23:58 +01:00
Cargo.toml Update compiler_builtins to 0.1.39 2021-01-07 16:16:36 +09:00