rustc does not suggest importing the old Range
type
#140240
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
It should suggests importing the stable
ops::Range
; and ideally should points thatrange::Range
is unstable, and not suggestlegacy::Range
(a unstable pub reexport of a stable type) as the reexported type is available.I.e. importing one of those types will yield an error:
Rust Version
The text was updated successfully, but these errors were encountered: