Uh oh!
There was an error while loading. Please reload this page.
Do not ICE on unicode next point - #68084
Conversation
Use `shrink_to_hi` instead of `next_point` Fixrust-lang#68000.
rust-highfive
commented
Jan 10, 2020
r? @zackmdavis (rust_highfive has picked a reviewer for you, use r? to override) |
varkor
commented
Jan 10, 2020
@bors r+ rollup |
bors
commented
Jan 10, 2020
📌 Commit fcd850f has been approved by |
Do not ICE on unicode next point Use `shrink_to_hi` instead of `next_point`. Fixrust-lang#68000.
@varkor Added some extra changes that should fix all possible ICEs stemming from this: fixed |
| 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.
This is the only necessary change to stop the ICEs in stable and beta.
There was a problem hiding this comment.
This isolated change is stable-accepted
varkor
commented
Jan 10, 2020
@bors r+ |
bors
commented
Jan 10, 2020
📌 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`. Fixrust-lang#68000, fixrust-lang#68091, fixrust-lang#68092.
Do not ICE on unicode next point Use `shrink_to_hi` instead of `next_point` and fix `next_point`. Fixrust-lang#68000, fixrust-lang#68091, fixrust-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 Closesrust-lang#64848 (fixed by rust-lang#67631) Closesrust-lang#65918 (ICE is hidden by rust-lang#67000, no longer ICE) Closesrust-lang#66473 (fixed by rust-lang#68084) Closesrust-lang#67550 (set mir-opt-level to 3) r? @Centril
pnkfelix
commented
Jan 16, 2020
discussed at T-compiler meeting. Accepted for beta-backport. |
pnkfelix
commented
Jan 16, 2020
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_hiinstead ofnext_pointand fixnext_point.Fix#68000, fix#68091, fix#68092.