diff options
| author | bors <bors@rust-lang.org> | 2022-09-04 20:33:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-04 20:33:50 +0000 |
| commit | 289279de116707f28cf9c18e4bbb8c6ec84ad75b (patch) | |
| tree | 79ae28ef2d3ca02140b4e550eb00b87d68e6ce5c /compiler/rustc_interface/src/errors.rs | |
| parent | 0ebd3ab63aa08337bb4e4600358679262ce8d242 (diff) | |
| parent | 80e035c9e4f43bba282ec061dcbeae44ddb20f5f (diff) | |
| download | rust-289279de116707f28cf9c18e4bbb8c6ec84ad75b.tar.gz rust-289279de116707f28cf9c18e4bbb8c6ec84ad75b.zip | |
Auto merge of #93455 - asquared31415:vec-zero-opts, r=thomcc
Implement internal `IsZero` for Wrapping and Saturating for `Vec` optimizations This implements the `IsZero` trait for the `Wrapping` and `Saturating` types so that users of these types can get the improved performance from the specialization of creating a `Vec` from a single element repeated when it has a zero bit pattern (example `vec![0_i32; 500]`, or after this PR `vec![Wrapping(0_i32); 500]`) CC #60978
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
