| commit | d808d2845208b8aeae4bd6ee4e19a97bbaf08cbf | [log] [tgz] |
|---|---|---|
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | Mon Oct 13 11:25:23 2025 +0200 |
| committer | GitHub <noreply@github.com> | Mon Oct 13 11:25:23 2025 +0200 |
| tree | 4f934997bfc189d06ed893c8deff454944d816b8 | |
| parent | 3938f42bb14e34cb0cf1314997d16103dfa8e2dd [diff] | |
| parent | 9ff52bf332e03b0f0d06f3a8d8a3719b7b62c475 [diff] |
Rollup merge of #147623 - Zalathar:clear-mixed, r=nnethercote Clear `ChunkedBitSet` without reallocating There doesn't appear to be any reason to clear a ChunkedBitSet via its constructor (which allocates a new list of chunks), when we could just fill the existing allocation with `Chunk::Zeros` instead. For comparison, the `insert_all` impl added by the same PR (rust-lang/rust#93984) does the simple thing here and just overwrites every chunk with `Chunk::Ones`. (That fill was then made somewhat easier by rust-lang/rust#145480, which removes the chunk size from all-zero/all-one chunks.) r? nnethercote (or compiler)
Website | Getting started | Learn | Documentation | Contributing
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).
Read “Installation” from The Book.
If you really want to install from source (though this is not recommended), see INSTALL.md.
See https://www.rust-lang.org/community for a list of chat platforms and forums.
See CONTRIBUTING.md.
Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.
The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the “Rust Trademarks”).
If you want to use these names or brands, please read the Rust language trademark policy.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.