-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc_parse_format: Fix character indices in find_skips #81071
Conversation
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
I have two different regression tests that fail in different ways without this patch. I'll add those once I figure out how to make them pass with the specified error message. |
I added two tests, both fail with errors like:
Any ideas why? These are expect-fail tests and the stderr files match the actual error messages. |
All fixed, this should be good to go |
This comment has been minimized.
This comment has been minimized.
Great work @osa1! Could you squash your commits into a single one? After that ping me here and I'll merge it ASAP :) |
@estebank ah, sorry, I thought CI squashes commits automatically. Just did it myself. Thanks! |
For t-compiler: Nominating for beta backport to minimize time where the error is user visible. The change is small, seems quite safe and the current ICE precludes an actual usable error, leaving users that hit this to their own devices. |
Thanks for the quick turnaround! @bors r+ rollup |
📌 Commit 28501c0 has been approved by |
rustc_parse_format: Fix character indices in find_skips Fixes rust-lang#81006
rustc_parse_format: Fix character indices in find_skips Fixes rust-lang#81006
This failed in a rollup (#81111 (comment)), as
That doesn't mean that this PR is to blame, as the blame is shared with a few thousand other files. But we can't merge it like this. :( See #73494 and #80942 (comment). @bors r- |
Moved the test to |
@bors r=estebank |
📌 Commit 9111e9d has been approved by |
Rollup of 12 pull requests Successful merges: - rust-lang#81038 (Update Clippy) - rust-lang#81071 (rustc_parse_format: Fix character indices in find_skips) - rust-lang#81100 (prevent potential bug in `encode_with_shorthand`.) - rust-lang#81105 (Initialize a few variables directly) - rust-lang#81116 (ConstProp: Copy body span instead of querying it) - rust-lang#81121 (Avoid logging the whole MIR body in SimplifyCfg) - rust-lang#81123 (Update cmp.rs) - rust-lang#81125 (Add track_caller to .steal()) - rust-lang#81128 (validation test: turn some const_err back into validation failures) - rust-lang#81131 (Edit rustc_middle::ty::cast docs) - rust-lang#81142 (Replace let Some(..) = with .is_some()) - rust-lang#81153 (Remove unused linkcheck exceptions) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #81006