Add debug for btree_map::{Entry, VacantEntry, OccupiedEntry}#34885
Add debug for btree_map::{Entry, VacantEntry, OccupiedEntry}#34885bors merged 1 commit intorust-lang:masterfrom
Conversation
src/libcollections/btree/map.rs
Outdated
There was a problem hiding this comment.
No because OccupiedEntry.key method needs Ord trait.
b30e4b6 to
c1bd503
Compare
src/libcollections/btree/map.rs
Outdated
There was a problem hiding this comment.
It would be nice if these took into account the formatting parameters. You can probably use Formatter::debug_tuple for all of these.
c1bd503 to
5e6b652
Compare
src/libcollections/btree/map.rs
Outdated
There was a problem hiding this comment.
I think these sorts of matches are usually written
match *self {
Vacant(ref v) => ...
Occupied(ref o) => ...
}5e6b652 to
379fa21
Compare
|
Updated. |
src/libcollections/btree/map.rs
Outdated
There was a problem hiding this comment.
I think these impls will need a stability marker.
There was a problem hiding this comment.
Do I put it as unstable or directly as stable?
There was a problem hiding this comment.
Per @alexcrichton's comments here, these can be stable.
|
Discussed during libs triage the decision was to merge, thanks for the PR @GuillaumeGomez! Could you also tag these with |
|
@alexcrichton: Your comment answered my question. Let's go for stable then! :) |
1129ead to
d5da1e9
Compare
d5da1e9 to
dae311e
Compare
|
Updated. |
Add debug for btree_map::{Entry, VacantEntry, OccupiedEntry}
No description provided.