-
Notifications
You must be signed in to change notification settings - Fork 13.4k
use consistent terminology to refer to containers/collections #12543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The current set of traits in So something needs to be done about that, because as it stands right now, it seems like Assigning 1.0, P-backcompat-libs. |
It does work for allowing a graph library to make use of arbitrary set and map containers. It can't abstract over both in-memory and on-disk or virtual data structures and I think that's a fundamental limitation of Rust's trait system. It's simply not as expressive as C++ templates. |
Reading it now, I think the triage missed the main point of this bug: the inconsistency of the name |
Also renames the `Container` trait to `Collection`. [breaking-change]
I strongly agree that the Containers traits, whatever they wind up being called, need to be revisited or possibly removed. Should that concern be opened as a separate issue? |
Also renames the `Container` trait to `Collection`. [breaking-change]
…t,GuillaumeGomez restrict manual_clamp to const case, bring it out of nursery Implements the plan that I described in rust-lang/rust-clippy#9484 (comment) This does two things primarily 1. Restrict `manual_clamp` such that it will only trigger if we are able to guarantee that `clamp` won't panic at runtime. 2. Bring `manual_clamp` out of nursery status and move it into the complexity group. changelog: [`manual_clamp`]: Restrict this lint such that it only triggers if max and min are const, and max is greater than or equal to min. Then bring it out of the nursery group.
There is a
container
module instd
and a separatecollections
crate. This should be consistent, and the traits should be in the same place as the containers.The text was updated successfully, but these errors were encountered: