diff options
| author | bors <bors@rust-lang.org> | 2025-02-14 14:21:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-02-14 14:21:29 +0000 |
| commit | 5e0f1f6c2843380758870528dd218db360071975 (patch) | |
| tree | 98a881500a1df96ff4ca2ec47ece1ba213fe8ea7 /tests/codegen/src-hash-algorithm | |
| parent | fd526a248c05b846507291a6281c06e10c2d05f7 (diff) | |
| parent | 5e0c773e8000c56fa1c258b57b2b64e453a3f57a (diff) | |
| download | rust-5e0f1f6c2843380758870528dd218db360071975.tar.gz rust-5e0f1f6c2843380758870528dd218db360071975.zip | |
Auto merge of #136575 - scottmcm:nsuw-math, r=nikic
Set both `nuw` and `nsw` in slice size calculation There's an old note in the code to do this, and now that [LLVM-C has an API for it](https://github.com/llvm/llvm-project/blob/f0b8ff12519270adcfef93410abff76ab073476a/llvm/include/llvm-c/Core.h#L4403-L4408), we might as well. And it's been there since what looks like LLVM 17 https://github.com/llvm/llvm-project/commit/de9b6aa341d8951625d62ae3dac8670ebb3eb006 so doesn't even need to be conditional. (There's other places, like `RawVecInner` or `Layout`, that might want to do things like this too, but I'll leave those for a future PR.)
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
