diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-05-20 12:53:13 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-20 12:53:13 +1000 |
| commit | 66388d98929ce8b1fb7c09c7e221664c0357393d (patch) | |
| tree | fead4773f32ab91de48979ccfff6c67dfe31e68c /compiler/rustc_pattern_analysis/src | |
| parent | 60dabef95a3de3ec974dcb50926e4bfe743f078f (diff) | |
| parent | 0dec3fee34c5044f68579fedfa6882e0f69ff2cf (diff) | |
| download | rust-66388d98929ce8b1fb7c09c7e221664c0357393d.tar.gz rust-66388d98929ce8b1fb7c09c7e221664c0357393d.zip | |
Rollup merge of #141211 - fluiderson:dev, r=thomcc
Replace `try_reserve_exact` with `try_with_capacity` in `std::fs::read` This change restores the previous behavior prior to #117925. That PR was made to handle OOM errors that turn into a panic with `Vec::with_capacity`. `try_reserve_exact` was used for that since there was no `try_with_capacity` method at the time. It was added later in #120504. I think it'd a better fit here.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
