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

Make minor improvements #501

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Make minor improvements #501

merged 2 commits into from
Dec 18, 2024

Conversation

sonmarcho
Copy link
Member

This PR makes minor modifications which are needed on Aeneas' side, and slightly improves error reporting.

@sonmarcho sonmarcho merged commit 35afa18 into main Dec 18, 2024
4 of 5 checks passed
@sonmarcho sonmarcho deleted the son/errors branch December 18, 2024 21:17
// update them, then put them back.
// This works because we only use the context for formating and error reporting,
// and none of those require accessing the bodies.
let mut bodies = std::mem::take(&mut ctx.translated.bodies);
Copy link
Member

Choose a reason for hiding this comment

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

FYI there's a helper for this: TransformCtx::with_mut_bodies

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.

2 participants