Test that bounds checks are elided when slice len is checked up-front#73362
Test that bounds checks are elided when slice len is checked up-front#73362bors merged 3 commits intorust-lang:masterfrom
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
| @@ -0,0 +1,26 @@ | |||
| // no-system-llvm | |||
| // compile-flags: -O | |||
| #![crate_type = "lib"] | |||
There was a problem hiding this comment.
Can you add a comment explaining what this test is testing?
|
@bors r+ rollup |
|
📌 Commit e0975b9 has been approved by |
Test that bounds checks are elided when slice len is checked up-front Closes rust-lang#69101
Test that bounds checks are elided when slice len is checked up-front Closes rust-lang#69101
Failed in #73438 on x86_64-gnu which enables debug assertions in std. |
|
Sorry about that. Added (I hope) the right annotation to ignore those builds |
|
@bors r+ rollup |
|
📌 Commit 6351850 has been approved by |
Rollup of 13 pull requests Successful merges: - rust-lang#70740 (Enabling static-pie for musl) - rust-lang#72331 (Report error when casting an C-like enum implementing Drop) - rust-lang#72486 (Fix asinh of negative values) - rust-lang#72497 (tag/niche terminology cleanup) - rust-lang#72999 (Create self-contained directory and move there some of external binaries/libs) - rust-lang#73130 (Remove const prop for indirects) - rust-lang#73142 (Ensure std benchmarks get tested.) - rust-lang#73305 (Disallow loading crates with non-ascii identifier name.) - rust-lang#73346 (Add rust specific features to print target features) - rust-lang#73362 (Test that bounds checks are elided when slice len is checked up-front) - rust-lang#73459 (Reduce pointer casts in Box::into_boxed_slice) - rust-lang#73464 (Document format correction) - rust-lang#73479 (Minor tweaks to liballoc) Failed merges: r? @ghost
Closes #69101