Matthias Krüger
b52883decf
Rollup merge of #127886 - estebank:as-rename-suggestion, r=compiler-errors
...
Accurate `use` rename suggestion span
When suggesting to rename an import with `as`, use a smaller span to render the suggestion with a better format:
```
error[E0252]: the name `baz` is defined multiple times
--> $DIR/issue-25396.rs:4:5
|
LL | use foo::baz;
| -------- previous import of the module `baz` here
LL | use bar::baz;
| ^^^^^^^^ `baz` reimported here
|
= note: `baz` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
|
LL | use bar::baz as other_baz;
| ++++++++++++
```
2024-07-18 08:09:01 +02:00
..
2024-07-15 13:01:20 -04:00
2024-07-17 16:22:31 +02:00
2024-06-12 15:49:10 +10:00
2024-07-17 19:53:27 -05:00
2024-07-15 12:40:10 -04:00
2024-07-16 18:03:15 +03:00
2024-07-16 16:15:15 -05:00
2024-07-03 23:30:07 +02:00
2024-06-18 15:42:11 +00:00
2024-06-12 15:49:10 +10:00
2024-07-18 08:09:00 +02:00
2024-07-07 14:22:01 +02:00
2024-07-16 16:15:13 -05:00
2024-07-17 20:22:07 +02:00
2024-07-16 16:15:13 -05:00
2024-07-16 20:10:11 -05:00
2024-07-16 20:10:10 -05:00
2024-07-15 12:40:10 -04:00
2024-06-12 15:49:10 +10:00
2024-07-01 11:00:49 +00:00
2024-07-06 09:13:14 +03:00
2024-06-12 15:49:10 +10:00
2024-07-08 16:28:15 +02:00
2024-07-17 19:53:25 -05:00
2024-07-14 20:24:59 +02:00
2024-06-12 15:49:10 +10:00
2024-06-20 09:23:20 +10:00
2024-06-12 15:49:10 +10:00
2024-07-14 14:01:01 -04:00
2024-07-18 08:09:01 +02:00
2024-06-28 10:57:35 +00:00
2024-07-17 16:22:26 +02:00
2024-06-12 15:49:10 +10:00
2024-07-15 12:44:24 -04:00
2024-06-30 16:42:53 +00:00
2024-07-18 08:09:00 +02:00
2024-07-15 12:40:10 -04:00
2024-06-12 15:49:10 +10:00
2024-07-17 08:02:46 +10:00
2024-07-11 06:59:10 +00:00
2024-07-16 16:15:13 -05:00
2024-06-12 10:11:41 +00:00
2024-07-17 10:46:10 -04:00
2024-07-11 00:18:47 +08:00
2024-07-18 08:09:00 +02:00
2024-07-17 16:22:28 +02:00
2024-07-14 14:01:01 -04:00
2024-07-15 20:54:28 +10:00
2024-07-08 04:35:04 +00:00
2024-07-15 12:40:10 -04:00
2024-07-17 19:53:27 -05:00
2024-06-12 15:49:10 +10:00
2024-07-10 16:53:41 -04:00
2024-07-17 08:02:46 +10:00
2024-06-17 10:09:27 +00:00
2024-06-19 08:47:55 +00:00
2024-07-15 12:40:10 -04:00
2024-07-18 08:09:01 +02:00
2024-06-24 11:28:21 -04:00
2024-07-02 11:25:31 +08:00
2024-07-14 12:44:07 +00:00
2024-07-17 08:02:46 +10:00
2024-07-16 00:02:44 -04:00
2024-06-29 17:38:02 -04:00
2024-07-15 08:37:39 +00:00
2024-07-17 10:46:10 -04:00
2024-07-09 09:51:56 -04:00
2024-07-15 12:40:10 -04:00
2024-07-12 20:36:43 +00:00
2024-07-18 08:09:00 +02:00
2024-07-17 10:46:10 -04:00
2024-07-11 12:20:26 +02:00