Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl rewrite_result for Pat, TuplePatField #6262

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

ding-young
Copy link
Contributor

@ding-young ding-young commented Aug 3, 2024

Tracked by #6206

Description

  • impl rewrite_result for Pat, TuplePatField
  • also update rewrite_unary_*** to return RewriteResult

@ytmimi ytmimi added the GSoC Google Summer of Code label Aug 4, 2024
src/expr.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@ytmimi ytmimi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some simple changes to convert from Option<Sting> -> RewriteResult. I'll mark this as ready to merge and wait for the rebase to get this in. You can address the nit, but also feel free to leave it as is.

- also update rewrite_unary_*** to return RewriteResult
Comment on lines +1997 to +1999
let shape = shape
.sub_width(suffix.len())
.max_width_error(shape.width, rewrite.span())?;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ytmimi Thank you! I addressed the nit, and rebased it

@ytmimi ytmimi merged commit 40f5075 into rust-lang:master Aug 5, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GSoC Google Summer of Code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants