Uh oh!
There was an error while loading. Please reload this page.
Introduce the beginning of a THIR unsafety checker - #83129
Conversation
This comment has been minimized.
This comment has been minimized.
LeSeulArtichaut
commented
Mar 14, 2021
Wow, you can't use |
6026907 to
401b7c7Compare
nikomatsakis
left a comment
There was a problem hiding this comment.
Ack! Just saw this. Will review Asap =)
nikomatsakis
left a comment
There was a problem hiding this comment.
This looks like a great start! I left a few nits.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I implemented the changes you requested. |
4135a1b to
04a8451Compare
This comment has been minimized.
This comment has been minimized.
04a8451 to
ed8ceb1Compare
This comment has been minimized.
This comment has been minimized.
ed8ceb1 to
c3b4648Compare
This comment has been minimized.
This comment has been minimized.
c3b4648 to
cf97a40Compare
This comment has been minimized.
This comment has been minimized.
cf97a40 to
b29e409Compare
This comment has been minimized.
This comment has been minimized.
b29e409 to
f8662fcCompare
This comment has been minimized.
This comment has been minimized.
f8662fc to
985fb4cCompare
nikomatsakis
left a comment
There was a problem hiding this comment.
This looks great, @LeSeulArtichaut! See my comment below.
Uh oh!
There was an error while loading. Please reload this page.
nikomatsakis
left a comment
There was a problem hiding this comment.
My bad! Everything looks good.
nikomatsakis
commented
May 13, 2021
@bors r+ |
bors
commented
May 13, 2021
📌 Commit 985fb4c has been approved by |
bors
commented
May 13, 2021
bors
commented
May 13, 2021
☀️ Test successful - checks-actions |
…nikomatsakis Check for inline assembly in THIR unsafeck rust-lang#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` and `llvm_asm` in two separate spots!) see also rust-lang/project-thir-unsafeck#7
…=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`
This poses the foundations for the THIR unsafety checker, so that it can be implemented incrementally:
Visitorfor the THIR (which will definitely need some tweaking in the future)-Zthir-unsafeckflag which tells the compiler to use THIR unsafeck instead of MIR unsafeckThis uses a very simple query design, where bodies are unsafety-checked on a body per body basis. This however has some big flaws:
I had intended to fix these problems in follow-up PRs since they are always gated under the
-Zthir-unsafeckflag (which is explicitely noted to be unsound).r? @nikomatsakis
cc rust-lang/project-thir-unsafeck#3rust-lang/project-thir-unsafeck#7