Skip to content

Clean up translated assertions and simple generated patterns#119

Merged
Medowhill merged 5 commits into
masterfrom
assert
Jun 1, 2026
Merged

Clean up translated assertions and simple generated patterns#119
Medowhill merged 5 commits into
masterfrom
assert

Conversation

@Medowhill

Copy link
Copy Markdown
Contributor

Summary

  • Rewrite C2Rust __assert_fail assertion blocks to assert! in the libc pass, and fold re-expanded assert panics back to assert! in unexpand.
  • Extend simpl cleanup for generated Some(...).unwrap(), *& patterns, and empty block statements such as {} / 'l: {};.
  • Drop the unnecessary structural_match feature during unexpand cleanup.

@Medowhill Medowhill merged commit c9a756b into master Jun 1, 2026
2 checks passed
@Medowhill Medowhill deleted the assert branch June 1, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant