-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add "missing unsafe" diagnostics #4587
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
Conversation
|
Tests added but are failing on the latest commit. |
bjorn3
left 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.
There is a syntax error in multiple tests
|
I also realized there was no tracking in place for |
That should probably just be an
I think we'd need a function for walking the expression tree, we don't have that currently. |
|
@flodiebold You commented right after a figured out a working solution. Do you think what I came up with is not efficient? Should I still go ahead an work on a walking-based impl? |
|
Somehow the failure revealed itself after rebasing. Not sure if maybe I also needed to run a clean, but it's working now so ¯\_(ツ)_/¯ |
1048f90 to
85c7c01
Compare
matklad
left 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.
Looks like I forgot to hit "submit review" yesterday :-(
2764a37 to
5fdeede
Compare
b1ef673 to
78e9d20
Compare
78e9d20 to
19ef61e
Compare
… to account for derefs of raw ptrs
…afe exprs within unsafe block
…unsafe use, update tests
…nsafe exprs are within unsafe blocks
…dation to its own file
Move unsafe_expressions to unsafe_validation.rs, replace vec tracking of child exprs with inline macro, add debug assert to ensure tracked children match walked children exactly
…gn unsafe validator
8fd8f23 to
b1992b4
Compare
|
bors r+ |
|
bors d+ |
|
✌️ Nashenas88 can now approve this pull request. To approve and merge a pull request, simply reply with |
|
Canceled. |
|
bors r+ |
Addresses #190