Skip to content

[WIP] suggest parsing string into numeric type on invalid cast - #160578

Draft
Snxhit wants to merge 20 commits into
rust-lang:mainfrom
Snxhit:issue-159494-parse-suggestion
Draft

[WIP] suggest parsing string into numeric type on invalid cast#160578
Snxhit wants to merge 20 commits into
rust-lang:mainfrom
Snxhit:issue-159494-parse-suggestion

Conversation

@Snxhit

@Snxhit Snxhit commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

fixes #159494

changes:

  1. suggest parsing on invalid string-to-number casts with as, add ui test for the same.
  2. suggest parsing on string literal assigned to numerical variable, add ui test for the same.

wip:
looking into failing typeck ui tests.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 5, 2026
@rust-log-analyzer

This comment has been minimized.

@rustbot rustbot added the T-rustfmt Relevant to the rustfmt team, which will review and decide on the PR/issue. label Sep 12, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustfmt Relevant to the rustfmt team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggest parse on expected types that implement FromStr

3 participants