Skip to content

Commit 63a83c5

Browse files
committed
Auto merge of #81077 - bugadani:shrink, r=Mark-Simulacrum
Remove unnecessary manual shrink_to_fit calls
2 parents 410a546 + dc932cd commit 63a83c5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/rustc_ast/src/util/literal.rs

-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ impl LitKind {
8787
}
8888
});
8989
error?;
90-
buf.shrink_to_fit();
9190
Symbol::intern(&buf)
9291
} else {
9392
symbol
@@ -105,7 +104,6 @@ impl LitKind {
105104
}
106105
});
107106
error?;
108-
buf.shrink_to_fit();
109107
LitKind::ByteStr(buf.into())
110108
}
111109
token::ByteStrRaw(_) => {
@@ -120,7 +118,6 @@ impl LitKind {
120118
}
121119
});
122120
error?;
123-
buf.shrink_to_fit();
124121
buf
125122
} else {
126123
symbol.to_string().into_bytes()

0 commit comments

Comments
 (0)