diff options
| author | bors <bors@rust-lang.org> | 2023-01-15 18:39:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-15 18:39:40 +0000 |
| commit | 9e75dddf609c0201d03f9792e850f95d6a283d11 (patch) | |
| tree | 30f268196652356e492213e82503c7af99414f6b /tests | |
| parent | ae4d89dfb51535c1c43052ef848564bd2323c9ca (diff) | |
| parent | 9db013401879a39df86c33552c8c092cf95ea20c (diff) | |
| download | rust-9e75dddf609c0201d03f9792e850f95d6a283d11.tar.gz rust-9e75dddf609c0201d03f9792e850f95d6a283d11.zip | |
Auto merge of #106393 - the8472:use-ptr-sub, r=scottmcm
Simplify manual ptr arithmetic in slice::Iter with ptr_sub The old code was introduced in #61885, which predates the ptr_sub method and underlying intrinsic. The codegen test still passes. r? `@scottmcm`
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/codegen/issue-45964-bounds-check-slice-pos.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/codegen/issue-45964-bounds-check-slice-pos.rs b/tests/codegen/issue-45964-bounds-check-slice-pos.rs index aa59c713b78..1daa213fc82 100644 --- a/tests/codegen/issue-45964-bounds-check-slice-pos.rs +++ b/tests/codegen/issue-45964-bounds-check-slice-pos.rs @@ -2,6 +2,7 @@ // prevent optimizing away bounds checks // compile-flags: -O +// ignore-debug: the debug assertions get in the way #![crate_type="rlib"] |
