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

can borrow mut in proc Issue 10617 #11626

Merged
merged 1 commit into from
Jan 28, 2014
Merged

Conversation

nickdesaulniers
Copy link

@@ -449,11 +449,6 @@ pub fn check_trait_cast_bounds(cx: &Context, sp: Span, ty: ty::t,

fn check_imm_free_var(cx: &Context, def: Def, sp: Span) {
Copy link
Member

Choose a reason for hiding this comment

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

It looks like this function is a no-op now, perhaps it can be removed?

@alexcrichton
Copy link
Member

Thanks for the fix!

Could you amend the message to include the phrase Closes #10617? Github will auto-close the issue when this gets merged at that point.

cx.tcx.sess.span_err(
sp,
"mutable variables cannot be implicitly captured");
}
DefLocal(..) | DefArg(..) => { /* ok */ }
DefUpvar(_, def1, _, _) => { check_imm_free_var(cx, *def1, sp); }
Copy link
Author

Choose a reason for hiding this comment

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

It looks like this function is a no-op now, perhaps it can be removed?

Even with this branch? (Testing a build right now)

@huonw
Copy link
Member

huonw commented Jan 17, 2014

(@alexcrichton you can actually edit the PR text to include that yourself; it'll have the same effect. :) )

@nickdesaulniers
Copy link
Author

review? @alexcrichton

@alexcrichton
Copy link
Member

Looks good to me! I'd want @nikomatsakis or someone more knowledgeable to sign off though, I'm unsure of what repercussions this has on other components.

@nikomatsakis
Copy link
Contributor

I will check it out soon

@alexcrichton
Copy link
Member

Looks like this has merge conflicts now :(

@nickdesaulniers
Copy link
Author

@alexcrichton : fixed. review?

@bors bors closed this Jan 28, 2014
@bors bors merged commit ea9db66 into rust-lang:master Jan 28, 2014
@nickdesaulniers nickdesaulniers deleted the issue10617 branch January 28, 2014 23:17
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