Skip to content
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

Don't emit cannot move errors twice in migrate mode #55221

Merged

Conversation

matthewjasper
Copy link
Contributor

Closes #55154
cc #53004

r? @pnkfelix

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 20, 2018
@bors
Copy link
Contributor

bors commented Oct 21, 2018

☔ The latest upstream changes (presumably #55069) made this pull request unmergeable. Please resolve the merge conflicts.

@matthewjasper matthewjasper force-pushed the fewer-duplicate-migrate-messages branch from 38b0425 to b375728 Compare October 21, 2018 17:14
Copy link
Member

@pnkfelix pnkfelix left a comment

Choose a reason for hiding this comment

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

@bors r+

if let Err(_place_err) = self.is_mutable(place, is_local_mutation_allowed) {
if let (Err(_place_err), true) = (
self.is_mutable(place, is_local_mutation_allowed),
self.errors_buffer.is_empty()
Copy link
Member

Choose a reason for hiding this comment

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

Ah great idea to let the ICE through if we have already signaled errors. Or at least I hope it’s a great idea.

Copy link
Member

Choose a reason for hiding this comment

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

(ugh I clearly misread the code 3 hours ago.)

@pnkfelix
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Oct 22, 2018

📌 Commit b375728 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 Oct 22, 2018
if let Err(_place_err) = self.is_mutable(place, is_local_mutation_allowed) {
if let (Err(_place_err), true) = (
self.is_mutable(place, is_local_mutation_allowed),
self.errors_buffer.is_empty()
Copy link
Member

Choose a reason for hiding this comment

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

just to be clear: this filter is going to affect more than just the migrate mode, right?

that is, I assume this will also cause us to stop emitting some move errors even in normal NLL mode?

Copy link
Member

Choose a reason for hiding this comment

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

Or rather ... I guess it will stop us ... from ICE'ing in some scenarios under normal NLL mode if we've emitted an error already ...?

I don't know how I feel about that. I guess its fine.

@pnkfelix
Copy link
Member

Ugh sorry I had used my phone and I guess the review comment system there doesn't bubble out to here in a manner that bors can see!

1 similar comment
@pnkfelix
Copy link
Member

Ugh sorry I had used my phone and I guess the review comment system there doesn't bubble out to here in a manner that bors can see!

@bors
Copy link
Contributor

bors commented Oct 22, 2018

⌛ Testing commit b375728 with merge fca50e8...

bors added a commit that referenced this pull request Oct 22, 2018
…, r=pnkfelix

Don't emit cannot move errors twice in migrate mode

Closes #55154
cc #53004

r? @pnkfelix
@matthewjasper
Copy link
Contributor Author

matthewjasper commented Oct 22, 2018

CI doesn't appear to be actually running. does
@bors retry
reset it?
no

@pnkfelix pnkfelix closed this Oct 23, 2018
@pnkfelix pnkfelix reopened this Oct 23, 2018
@Aaron1011
Copy link
Member

It looks like Bors might be stuck - all commits on the auto branch have their CI checks passing.

@pnkfelix
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Oct 24, 2018

💡 This pull request was already approved, no need to approve it again.

  • This pull request is currently being tested. If there's no response from the continuous integration service, you may use retry to trigger a build again.

@bors
Copy link
Contributor

bors commented Oct 24, 2018

📌 Commit b375728 has been approved by pnkfelix

@bors
Copy link
Contributor

bors commented Oct 29, 2018

⌛ Testing commit b375728 with merge 7d04c95f0da7486f2a652fb7efd4e52fe01786ef...

@bors
Copy link
Contributor

bors commented Oct 29, 2018

💔 Test failed - status-appveyor

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 29, 2018
@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 29, 2018
@kennytm
Copy link
Member

kennytm commented Oct 29, 2018

Needs to bless a file.

---- [ui (nll)] ui\unsized-locals\unsized-exprs2.rs stdout ----
diff of stderr:
4	LL |     udrop::<[u8]>(foo()[..]);
5	   |                   ^^^^^^^^^ cannot move out of here
6	
-	error[E0507]: cannot move out of data in a `&` reference
-	  --> $DIR/unsized-exprs2.rs:22:19
-	   |
-	LL |     udrop::<[u8]>(foo()[..]);
-	   |                   ^^^^^^^^^
-	   |                   |
-	   |                   cannot move out of data in a `&` reference
-	   |                   cannot move
+	error: aborting due to previous error
15	
-	error: aborting due to 2 previous errors
-	
-	Some errors occurred: E0507, E0508.
-	For more information about an error, try `rustc --explain E0507`.
+	For more information about this error, try `rustc --explain E0508`.
20	

@matthewjasper matthewjasper force-pushed the fewer-duplicate-migrate-messages branch from b375728 to 42a541e Compare October 29, 2018 20:22
@matthewjasper
Copy link
Contributor Author

@bors r=pnkfelix

@bors
Copy link
Contributor

bors commented Oct 29, 2018

📌 Commit 42a541e 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 29, 2018
@bors
Copy link
Contributor

bors commented Oct 29, 2018

⌛ Testing commit 42a541e with merge 6e0a5b63d7e24d392bb2b9139bd9a4e61493da48...

@bors
Copy link
Contributor

bors commented Oct 30, 2018

💔 Test failed - status-appveyor

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 30, 2018
@kennytm
Copy link
Member

kennytm commented Oct 30, 2018

@bors retry

3 hour timeout

@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 Oct 30, 2018
@bors
Copy link
Contributor

bors commented Oct 30, 2018

⌛ Testing commit 42a541e with merge b1ca390...

bors added a commit that referenced this pull request Oct 30, 2018
…, r=pnkfelix

Don't emit cannot move errors twice in migrate mode

Closes #55154
cc #53004

r? @pnkfelix
@bors
Copy link
Contributor

bors commented Oct 30, 2018

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

@bors bors merged commit 42a541e into rust-lang:master Oct 30, 2018
@matthewjasper matthewjasper deleted the fewer-duplicate-migrate-messages branch November 30, 2018 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

6 participants