Closed
Description
The span for the new use
suggestion (added in #102876) does not include the semicolon, but the suggestion includes a semicolon.
Example:
use std::sync::AtomicU32;
Suggests:
error[E0432]: unresolved import `std::sync::AtomicU32`
--> src/lib.rs:1:5
|
1 | use std::sync::AtomicU32;
| ^^^^^^^^^^^^^^^^^^^^ no `AtomicU32` in `sync`
|
help: consider importing this struct instead
|
1 | use std::sync::atomic::AtomicU32;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
which if applied results in:
use std::sync::atomic::AtomicU32;
;
which won't compile due to the extra semicolon.
I'm not sure if the span needs to be extended, or if the suggestion should just avoid adding the semicolon.