Allow optimizing out panic_bounds_check in Unicode checks.#138024
Allow optimizing out panic_bounds_check in Unicode checks.#138024bors merged 7 commits intorust-lang:masterfrom
panic_bounds_check in Unicode checks.#138024Conversation
|
r? @ibraheemdev rustbot has assigned @ibraheemdev. Use |
2e2233e to
59a9073
Compare
This comment was marked as outdated.
This comment was marked as outdated.
fce8bd5 to
218dfd8
Compare
4192cb2 to
90ebc24
Compare
|
|
This comment has been minimized.
This comment has been minimized.
Sorry I don't follow, what change was reverted? |
Nevermind, this now contains all necessary changes. However, the test I added passes regardless of the other changes, I guess the bounds check is optimized out on |
|
@ibraheemdev, can you take a look at this? Thanks! |
|
This looks good. It's interesting that it only makes a difference on |
Rollup of 11 pull requests Successful merges: - rust-lang#136457 (Expose algebraic floating point intrinsics) - rust-lang#137880 (Autodiff batching) - rust-lang#137897 (fix pthread-based tls on apple targets) - rust-lang#138024 (Allow optimizing out `panic_bounds_check` in Unicode checks.) - rust-lang#138546 (Add integer to string formatting tests) - rust-lang#138826 (StableMIR: Add `associated_items`.) - rust-lang#138950 (replace extra_filename with strict version hash in metrics file names) - rust-lang#139274 (Rustdoc: typecheck settings.js) - rust-lang#139285 (use lower case to match other error messages) - rust-lang#139341 (Apply `Recovery::Forbidden` when reparsing pasted macro fragments.) - rust-lang#139389 (make `Arguments::as_statically_known_str` doc(hidden)) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#138024 - reitermarkus:unicode-panic-optimization, r=ibraheemdev Allow optimizing out `panic_bounds_check` in Unicode checks. Allow optimizing out `panic_bounds_check` in Unicode checks. For context, see japaric/ufmt#52 (comment).
…ation, r=ibraheemdev Allow optimizing out `panic_bounds_check` in Unicode checks. Allow optimizing out `panic_bounds_check` in Unicode checks. For context, see japaric/ufmt#52 (comment).
Allow optimizing out
panic_bounds_checkin Unicode checks.For context, see japaric/ufmt#52 (comment).