Files
rust/tests/ui/error-codes
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
..
2023-04-03 15:59:21 +00:00
2024-04-14 09:42:53 -04:00
2023-01-30 20:12:19 +00:00
2024-06-21 19:00:18 -04:00
2024-01-05 09:30:27 +00:00
2024-01-05 10:00:59 +00:00
2023-12-15 16:12:27 +00:00
2023-03-08 00:00:18 +00:00
2024-01-11 09:03:26 +00:00
2024-05-20 11:13:10 -04:00
2024-05-20 11:13:10 -04:00
2023-12-15 16:12:27 +00:00
2023-10-20 21:10:38 +00:00
2024-06-21 19:00:18 -04:00
2024-06-25 17:22:22 +02:00
2023-01-18 13:14:56 +13:00
2023-11-16 17:00:23 +00:00
2023-12-20 22:53:56 -05:00
2024-03-20 17:29:58 +00:00
2024-01-13 12:46:58 -05:00
2023-05-05 21:42:54 +01:00