Merge pull request #19688 from ChayimFriedman2/less-unused

internal: More `shrink_to_fit()` and upgrade dashmap and hashbrown
This commit is contained in:
Lukas Wirth 2025-04-25 10:19:38 +00:00 committed by GitHub
commit 71a3888d07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 167 additions and 176 deletions

View file

@ -223,7 +223,10 @@ impl ItemTree {
}
fn shrink_to_fit(&mut self) {
if let Some(data) = &mut self.data {
let ItemTree { top_level, attrs, data } = self;
top_level.shrink_to_fit();
attrs.shrink_to_fit();
if let Some(data) = data {
let ItemTreeData {
uses,
extern_crates,