Check for inline assembly in THIR unsafeck#85259
Conversation
|
r? @davidtwco (rust-highfive has picked a reviewer for you, use r? to override) |
LeSeulArtichaut
left a comment
There was a problem hiding this comment.
To my untrained eye this looks good.
Maybe add a thir revision to the existing UI tests for inline assembly, if any?
LeSeulArtichaut
left a comment
There was a problem hiding this comment.
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
asmandllvm_asmin two separate spots!)see also rust-lang/project-thir-unsafeck#7