Uh oh!
There was an error while loading. Please reload this page.
Implement Mutation- and BorrowOfLayoutConstrainedField in thir-unsafeck - #86665
Conversation
LeSeulArtichaut
commented
Jun 27, 2021
Thanks for your help on this! I'll assign this to you in the tracking issue, if you want to implement something else in the future feel free to just drop a comment on the tracking issue, just to make sure that there aren't two people working on the same thing. With that said, the last few unsafe ops to implement are the trickiest, so having multiple eyes on them is a good thing. I don't have time to do a proper review today, but I think I can already tell that this PR doesn't cover references that arise from patterns (e.g. Also cc @nikomatsakis, if you want to take a look at this as well |
FabianWolff
commented
Jun 27, 2021
Thanks for your quick response! I have added some code (and a test case) now that deals with by-reference bindings in |
goffrie
commented
Jun 28, 2021
The title of this PR confused me, but you probably didn't mean thir-borrowck :p |
FabianWolff
commented
Jun 28, 2021
Fixed, thanks for catching this! Thinking about all the different borrow kinds etc. apparently got me confused... |
LeSeulArtichaut
left a comment
There was a problem hiding this comment.
Okay, sorry for the wait, here's a first review. This is certainly trickier than it looks, and I worry that we'll miss edge cases, but it's OK if we miss things in this PR because THIR unsafeck is gated under an explicitely-marked-as-unsound-do-not-enable option.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
LeSeulArtichaut
commented
Jul 4, 2021
cc @nikomatsakis you might be interested in reviewing if you have enough bandwidth |
c80ed9d to
fbed40fCompareUh oh!
There was an error while loading. Please reload this page.
fbed40f to
a4066a3CompareUh oh!
There was an error while loading. Please reload this page.
LeSeulArtichaut
left a comment
There was a problem hiding this comment.
Okay, besides my last comment I haven't found a case where the implementation is wrong. I'll still pass this to someone with better knowledge of the language than me. In the meantime here are 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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
a4066a3 to
c269774CompareFabianWolff
commented
Jul 9, 2021
All done, thanks again for your comments! |
LeSeulArtichaut
commented
Jul 9, 2021
r? @oli-obk |
bors
commented
Jul 9, 2021
☔ The latest upstream changes (presumably #85263) made this pull request unmergeable. Please resolve the merge conflicts. |
c269774 to
0994dd7CompareUh oh!
There was an error while loading. Please reload this page.
0994dd7 to
e244b17CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
e244b17 to
b088861Compareoli-obk
commented
Jul 12, 2021
@bors r+ |
bors
commented
Jul 12, 2021
📌 Commit b088861 has been approved by |
bors
commented
Jul 13, 2021
bors
commented
Jul 13, 2021
☀️ Test successful - checks-actions |
Since nobody has so far claimed Mutation- and BorrowOfLayoutConstrainedField in rust-lang/project-thir-unsafeck#7, I have taken the liberty of implementing them in thir-unsafeck.
r? @LeSeulArtichaut