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

modify ListItem to hold RewriteResult as the item field #6244

Merged
merged 2 commits into from
Jul 26, 2024

Conversation

ding-young
Copy link
Contributor

@ding-young ding-young commented Jul 18, 2024

Tracked by #6206

Description

We often use itemize_list & write_list to format list-like expressions. Since ListItem holds Option<String> as the item field, we cannot propagate RewriteError from these functions. This pr replaces the type for the item field with RewriteResult, while modifying bound for itemize_list and write_list.

@ytmimi ytmimi added the GSoC Google Summer of Code label Jul 18, 2024
src/lists.rs Outdated Show resolved Hide resolved
@ding-young ding-young force-pushed the list-item branch 2 times, most recently from 68a1f45 to 28e5c92 Compare July 20, 2024 08:41
@ding-young ding-young marked this pull request as ready for review July 20, 2024 10:18
src/lists.rs Outdated Show resolved Hide resolved
@ytmimi
Copy link
Contributor

ytmimi commented Jul 26, 2024

Just running the Diff-Check job on this one

Edit:
Job ran successfully ✅

@ytmimi ytmimi merged commit 1313d61 into rust-lang:master Jul 26, 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