diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-07-10 01:49:11 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-07-18 00:00:04 +0000 |
| commit | 8eb51852a87dd2640fbd95019ff1124b38ae8b78 (patch) | |
| tree | 777e1490dcda09059ccf9072d958c5916d1e95fc /compiler/rustc_pattern_analysis/src | |
| parent | 032be6f7bbe091c7dfa29f115e94b9cc9bae1758 (diff) | |
| download | rust-8eb51852a87dd2640fbd95019ff1124b38ae8b78.tar.gz rust-8eb51852a87dd2640fbd95019ff1124b38ae8b78.zip | |
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; | ++++++++++++ ```
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
