about summary refs log tree commit diff
path: root/compiler/rustc_ast_passes/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-02-21 23:59:08 +0000
committerbors <bors@rust-lang.org>2025-02-21 23:59:08 +0000
commitdc37ff82e861428d537ae28e7b92296c4583fb5a (patch)
treed58f3fd3708a8a6045c12e6fb9f22a24afd811be /compiler/rustc_ast_passes/src
parent794c12416b2138064af1f2746646973fafd9419d (diff)
parent160905b6253f42967ed4aef4b98002944c7df24c (diff)
downloadrust-dc37ff82e861428d537ae28e7b92296c4583fb5a.tar.gz
rust-dc37ff82e861428d537ae28e7b92296c4583fb5a.zip
Auto merge of #137348 - compiler-errors:span-trim, r=estebank
More sophisticated span trimming for suggestions

Previously #136958 only cared about prefixes or suffixes. Now it detects more cases where a suggestion is "sandwiched" by unchanged code on the left or the right. Would be cool if we could detect several insertions, like `ACE` going to `ABCDE`, extracting `B` and `D`, but that seems unwieldy.

r? `@estebank`
Diffstat (limited to 'compiler/rustc_ast_passes/src')
0 files changed, 0 insertions, 0 deletions