Skip to content

Commit 9a6ae78

Browse files
committed
Use multispan suggestions more often
* Use more accurate span for `async move` suggestion * Use more accurate span for deref suggestion * Use `multipart_suggestion` more often
1 parent 5331fea commit 9a6ae78

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/ui/crashes/ice-6250.stderr

+6-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ error[E0308]: mismatched types
2525
--> $DIR/ice-6250.rs:12:14
2626
|
2727
LL | Some(reference) = cache.data.get(key) {
28-
| ^^^^^^^^^
29-
| |
30-
| expected integer, found `&i32`
31-
| help: consider dereferencing the borrow: `*reference`
28+
| ^^^^^^^^^ expected integer, found `&i32`
29+
|
30+
help: consider dereferencing the borrow
31+
|
32+
LL | Some(*reference) = cache.data.get(key) {
33+
| ^
3234

3335
error[E0308]: mismatched types
3436
--> $DIR/ice-6250.rs:12:9

0 commit comments

Comments
 (0)