-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Check for inline assembly in THIR unsafeck #85259
Conversation
r? @davidtwco (rust-highfive has picked a reviewer for you, use r? to override) |
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.
To my untrained eye this looks good.
Maybe add a thir
revision to the existing UI tests for inline assembly, if any?
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 inline assembly being unsafe is never tested in the suite, seems weird to me. Anyway I think this could be merged. I'm not a reviewer though, so let's ask for signoff from r? @nikomatsakis
@LeSeulArtichaut yep, I couldn't find any testing of inline assembly either. I added some |
@bors r+ This looks good! |
📌 Commit 3e6ec4eeacf92d7a9dec11a6a8506dac5d9797b3 has been approved by |
☔ The latest upstream changes (presumably #84107) made this pull request unmergeable. Please resolve the merge conflicts. |
3e6ec4e
to
f23d231
Compare
Merge conflicts resolved. |
@bors r+ |
📌 Commit f23d231 has been approved by |
☀️ Test successful - checks-actions |
…=oli-obk Check for union field accesses in THIR unsafeck see also rust-lang#85259, rust-lang#83129, rust-lang/project-thir-unsafeck#7 r? `@LeSeulArtichaut`
#83129 was merged recently and added a THIR unsafe checker. This adds a check for inline assembly. (and this is 2x simpler than the MIR version, which has to check for
asm
andllvm_asm
in two separate spots!)see also rust-lang/project-thir-unsafeck#7