Skip to content

Conversation

@matthewjasper
Copy link
Contributor

@matthewjasper matthewjasper commented Feb 23, 2019

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 23, 2019
@matthewjasper matthewjasper changed the title [NLL] Type check coercions to pointer types [NLL] Type check operations with pointer types Feb 24, 2019
self.add_reborrow_constraint(location, region, borrowed_place);
}

// FIXME: These other cases have to be implemented in future PRs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣

@pnkfelix
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 27, 2019

📌 Commit 19a54e8 has been approved by pnkfelix

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 27, 2019
@pnkfelix
Copy link
Contributor

pnkfelix commented Feb 27, 2019

Important detail which might get overlooked since I don't see a bug associated with this PR: the problem here is only exposed via #![feature(nll)] (or -Z borrowck=mir). It does not affect borrowck=migrate and thus does not affect the 2018 edition stable/beta. The only people who might get impacted by this in the same manner that rustc did are those opting into #![feature(nll)] on nightly.

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)

@bors
Copy link
Collaborator

bors commented Mar 3, 2019

⌛ Testing commit 19a54e8 with merge 2cfd644...

bors added a commit that referenced this pull request Mar 3, 2019
[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
@bors
Copy link
Collaborator

bors commented Mar 3, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: pnkfelix
Pushing 2cfd644 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants