Uh oh!
There was an error while loading. Please reload this page.
Check for inline assembly in THIR unsafeck - #85259
Conversation
rust-highfive
commented
May 13, 2021
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
syvb
commented
May 13, 2021
@LeSeulArtichaut yep, I couldn't find any testing of inline assembly either. I added some |
nikomatsakis
commented
May 13, 2021
@bors r+ This looks good! |
bors
commented
May 13, 2021
📌 Commit 3e6ec4eeacf92d7a9dec11a6a8506dac5d9797b3 has been approved by |
bors
commented
May 14, 2021
☔ The latest upstream changes (presumably #84107) made this pull request unmergeable. Please resolve the merge conflicts. |
3e6ec4e to
f23d231Comparesyvb
commented
May 14, 2021
Merge conflicts resolved. |
nikomatsakis
commented
May 15, 2021
@bors r+ |
bors
commented
May 15, 2021
📌 Commit f23d231 has been approved by |
bors
commented
May 16, 2021
bors
commented
May 16, 2021
☀️ 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