-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Do not ICE on unicode next point #68084
Conversation
Use `shrink_to_hi` instead of `next_point` Fix rust-lang#68000.
r? @zackmdavis (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ rollup |
📌 Commit fcd850f has been approved by |
Do not ICE on unicode next point Use `shrink_to_hi` instead of `next_point`. Fix rust-lang#68000.
@varkor Added some extra changes that should fix all possible ICEs stemming from this: fixed |
@@ -710,7 +710,7 @@ impl SourceMap { | |||
pub fn next_point(&self, sp: Span) -> Span { | |||
let start_of_next_point = sp.hi().0; | |||
|
|||
let width = self.find_width_of_character_at_span(sp, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only necessary change to stop the ICEs in stable and beta.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isolated change is stable-accepted
@bors r+ |
📌 Commit f6e9fd0 has been approved by |
Do not ICE on unicode next point Use `shrink_to_hi` instead of `next_point` and fix `next_point`. Fix rust-lang#68000, fix rust-lang#68091, fix rust-lang#68092.
Do not ICE on unicode next point Use `shrink_to_hi` instead of `next_point` and fix `next_point`. Fix rust-lang#68000, fix rust-lang#68091, fix rust-lang#68092.
Rollup of 8 pull requests Successful merges: - #67666 (make use of pointer::is_null) - #67806 (Extract `rustc_ast_passes`, move gating, & refactor linting) - #68043 (Add some missing timers) - #68074 (Add `llvm-skip-rebuild` flag to `x.py`) - #68079 (Clarify suggestion for E0013) - #68084 (Do not ICE on unicode next point) - #68102 (Inline some conversion methods around OsStr) - #68106 (Fix issue with using `self` module via indirection) Failed merges: r? @ghost
Add some regression tests Closes rust-lang#64848 (fixed by rust-lang#67631) Closes rust-lang#65918 (ICE is hidden by rust-lang#67000, no longer ICE) Closes rust-lang#66473 (fixed by rust-lang#68084) Closes rust-lang#67550 (set mir-opt-level to 3) r? @Centril
discussed at T-compiler meeting. Accepted for beta-backport. |
aforementioned isolated change is stable-accepted for backport |
Beta backports - expect `fn` after `const unsafe` / `const extern` #68073 - Do not ICE on unicode next point #68084 - rustdoc: Don't allow `#![feature(...)]` on stable or beta #67989 r? @Mark-Simulacrum
Use
shrink_to_hi
instead ofnext_point
and fixnext_point
.Fix #68000, fix #68091, fix #68092.