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

Revert "Fix E0502 warnings" #3085

Merged
merged 1 commit into from Sep 13, 2018
Merged

Revert "Fix E0502 warnings" #3085

merged 1 commit into from Sep 13, 2018

Conversation

ghost
Copy link

@ghost ghost commented Aug 26, 2018

This reverts commit 98dbce4.

The compiler no longer emits the warnings in #2982 with the original
code.

This reverts commit 98dbce4.

The compiler no longer emits the warnings in #2982 with the original
code.
@oli-obk
Copy link
Contributor

oli-obk commented Aug 26, 2018

Curious. Let's wait for the issue to be closed, and then merge this PR

@@ -448,8 +448,7 @@ impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> {
CaptureClause::CaptureByValue => 0,
CaptureClause::CaptureByRef => 1,
}.hash(&mut self.s);
let value = &self.cx.tcx.hir.body(eid).value;
self.hash_expr(value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I wonder if this is due to my changes in rust-lang/rust#53177 -- specifically the redundant borrow optimization. It doesn't seem wrong to me that these fixes are working but it is making me nervous. I wonder what changed here.

Copy link
Member

Choose a reason for hiding this comment

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

people who are curious to learn more here may want to read my notes starting here: rust-lang/rust#52934 (comment)

@flip1995 flip1995 added the S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work label Sep 3, 2018
@phansch phansch removed the S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work label Sep 13, 2018
@phansch
Copy link
Member

phansch commented Sep 13, 2018

rust-lang/rust#53948 has been merged, so I'm going to retrigger CI to see if we can safely revert this 👍

@phansch phansch closed this Sep 13, 2018
@phansch phansch reopened this Sep 13, 2018
@phansch phansch merged commit e840006 into rust-lang:master Sep 13, 2018
@ghost ghost deleted the revert-98dbce branch May 11, 2019 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants