rust/compiler/rustc_errors
Stuart Cook 06b18db01b
Rollup merge of #148735 - chenyukang:yukang-fix-ice-148732, r=nnethercote
Fix ICE caused by invalid spans for shrink_file

Fixes rust-lang/rust#148732

There are two issues in this function:
1. the original issue is caused by a typo error, which is fixed in the first commit
2. another different ice(Patch span `7..7` is beyond the end of buffer `0`) will be reported after fixing the first one, is caused by spans cross file boundaries due to macro expansion. It is fixed in the second commit.

r? `@nnethercote`

edited: also fixes rust-lang/rust#148684, added a new testcase for it in the last commit.
2025-11-13 11:57:07 +11:00
..
src Rollup merge of #148735 - chenyukang:yukang-fix-ice-148732, r=nnethercote 2025-11-13 11:57:07 +11:00
Cargo.toml chore: Update annotate-snippets to 0.12.8 2025-11-05 09:00:58 -07:00
messages.ftl compiler: Parse p- specs in datalayout string, allow definition of custom default data address space 2025-07-07 09:04:53 +02:00