rustc suggests unstable library method on stable #109177
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
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 would be more helpful to suggest the
chunks
method for the typo rather than a nightly-only symbol which isn't actually available.chunks()
method is actually available on astd::slice
.chunks()
method has been stable since 1.0.0..chunk()
and.chuncks()
and could have used the compiler's help.Other cases
No response
Anything else?
Reproduced with 1.68.0 stable and 1.70 nightly.
The text was updated successfully, but these errors were encountered: