Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
analyze: implement Box<T> rewrites #1106
analyze: implement Box<T> rewrites #1106
Changes from all commits
894e8b0
3dd9d5f
3df3a0e
701ae00
8e86c79
780b22e
433e64e
1688386
92e01c9
6b9904b
e2d8f91
82cc01b
82efb11
6c23f5b
4f9b021
9b33750
e4c4771
61e7876
8b1b38b
95d4038
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't this just be an
Option
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could, but
DynOwned
can be composed withOption<T>
if we encounter a nullable owned pointer, andOption<DynOwned<T>>
is clearer thanOption<Option<T>>
. But c2rust-analyze doesn't yet have a run-time support library where we could defineDynOwned<T>
, so for now we use the somewhat uglyResult<T, ()>
in place ofDynOwned<T>
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be useful to add a comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment on the translation of
DynOwned
types: 95d4038