-
Notifications
You must be signed in to change notification settings - Fork 285
Chore: Rust refactorings #5786
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
Chore: Rust refactorings #5786
Conversation
Allow pointer equality now that it's implemented Crashes current Dafny resolver
Refactored more code.
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.
The refactorings look good, but do we have any checked-in tests for the two non-refactoring changes you mentioned (raw pointer equality and a potential bug in the new resolver)?
| if (referential) { | ||
| if pointerType.Raw? { | ||
| r := Error("Cannot compare raw pointers yet - need to wrap them with a structure to ensure they are compared properly"); | ||
| r := Error("Raw pointer comparison not properly implemented yet (need to make comp/rust/traits.dfy to pass with --raw-pointer)"); |
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.
nit: It seems strange to mention this implementation detail in the error message.
| r := Error("Raw pointer comparison not properly implemented yet (need to make comp/rust/traits.dfy to pass with --raw-pointer)"); | |
| // Need to make comp/rust/traits.dfy to pass with --raw-pointer) | |
| r := Error("Raw pointer comparison not properly implemented yet"); |
| echo "$$count test files found."; \ | ||
| for file in $$files; do \ | ||
| filedir=$$(dirname "$$file"); \ | ||
| (cd "${DIR}/Source/IntegrationTests/TestFiles/LitTests/LitTest/$${filedir}"; "${DIR}"/Binaries/Dafny $(action) "$$(basename $$file)" ); \ |
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.
Not blocking since this doesn't appear to be used for any automation, but I would suggest using dotnet run ... instead of Binaries/Dafny to prevent the mistake of running make test-run ... on an outdated binary.
Follow-up of #5786 with two changes <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
Only refactorings +
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.