]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #87915 - estebank:fancy-spans, r=oli-obk
authorbors <bors@rust-lang.org>
Mon, 13 Sep 2021 16:31:12 +0000 (16:31 +0000)
committerbors <bors@rust-lang.org>
Mon, 13 Sep 2021 16:31:12 +0000 (16:31 +0000)
commit9bb77da74dac4768489127d21e32db19b59ada5b
tree5bcc7471a627d3d440646060935da4dcfcfd501b
parentb0ee4951f0289aa31e54b101c5706f220315e197
parent34d19634f5ae448ff3fb281b22306cc8cfa3ee8c
Auto merge of #87915 - estebank:fancy-spans, r=oli-obk

Use smaller spans for some structured suggestions

Use more accurate suggestion spans for

* argument parse error
* fully qualified path
* missing code block type
* numeric casts
12 files changed:
compiler/rustc_errors/src/diagnostic.rs
compiler/rustc_errors/src/diagnostic_builder.rs
compiler/rustc_parse/src/parser/diagnostics.rs
compiler/rustc_resolve/src/late/diagnostics.rs
compiler/rustc_typeck/src/astconv/mod.rs
compiler/rustc_typeck/src/check/demand.rs
compiler/rustc_typeck/src/collect.rs
src/test/ui/associated-types/associated-types-path-2.stderr
src/test/ui/const-generics/type-dependent/type-mismatch.full.stderr
src/test/ui/const-generics/type-dependent/type-mismatch.min.stderr
src/test/ui/meta/meta-expected-error-wrong-rev.a.stderr
src/test/ui/repeat_count.stderr