Skip to content

Commit

Permalink
Auto merge of rust-lang#81077 - bugadani:shrink, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Remove unnecessary manual shrink_to_fit calls
  • Loading branch information
bors committed Jan 16, 2021
2 parents 410a546 + dc932cd commit 63a83c5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions compiler/rustc_ast/src/util/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ impl LitKind {
}
});
error?;
buf.shrink_to_fit();
Symbol::intern(&buf)
} else {
symbol
Expand All @@ -105,7 +104,6 @@ impl LitKind {
}
});
error?;
buf.shrink_to_fit();
LitKind::ByteStr(buf.into())
}
token::ByteStrRaw(_) => {
Expand All @@ -120,7 +118,6 @@ impl LitKind {
}
});
error?;
buf.shrink_to_fit();
buf
} else {
symbol.to_string().into_bytes()
Expand Down

0 comments on commit 63a83c5

Please sign in to comment.