diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-01 00:27:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-01 00:27:26 +0200 |
| commit | 8310320ebd68d5f23ad21bb5a15326abeaf91dff (patch) | |
| tree | 21ba3ae00a56b802477ae80fbbeec3187dfe1c5f /src/test/codegen/src-hash-algorithm | |
| parent | 0979a2871c9fe46832a1274f8ad62c072af85f6a (diff) | |
| parent | 4d8273dea5d2f398c473dd4a9c8a178dadc5be4c (diff) | |
| download | rust-8310320ebd68d5f23ad21bb5a15326abeaf91dff.tar.gz rust-8310320ebd68d5f23ad21bb5a15326abeaf91dff.zip | |
Rollup merge of #70632 - tspiteri:vec-new, r=sfackler
expand vec![] to Vec::new() The current expansion of `vec![]` calls `into_vec` on a boxed slice, which results in longer IR, and even after optimization, some unwinding artifacts are still present in the IR. This PR uses `Vec::new()` for `vec![]`. This also allows `vec![]` to be used in const expressions.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
