-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
[NLL] Type check operations with pointer types #58673
Conversation
2867db7
to
19a54e8
Compare
} | ||
} | ||
|
||
Rvalue::Ref(region, _borrow_kind, borrowed_place) => { | ||
self.add_reborrow_constraint(location, region, borrowed_place); | ||
} | ||
|
||
// FIXME: These other cases have to be implemented in future PRs |
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.
🤣
@bors r+ |
📌 Commit 19a54e8 has been approved by |
Important detail which might get overlooked since I don't see a bug associated with this PR: the problem here is only exposed via cc #58781 Update: My claim here was false due to flawed reasoning on my part. There are examples where AST-borrowck rejects the code but the previous version of NLL accepts it, which then causes changes like this to be hard errors under migrate mode. See for example #60927 (comment) |
[NLL] Type check operations with pointer types It seems these were forgotten about. Moving to `Rvalue::AddressOf` simplifies the coercions from references, but I want this to be fixed as soon as possible. r? @pnkfelix
☀️ Test successful - checks-travis, status-appveyor |
It seems these were forgotten about. Moving to
Rvalue::AddressOf
simplifies the coercions from references, but I want this to be fixed as soon as possible.r? @pnkfelix