-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
[NLL] Fix some things for bootstrap #52830
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -248,7 +248,8 @@ impl<'a, 'tcx> CheckCrateVisitor<'a, 'tcx> { | |
| let tcx = self.tcx; | ||
| let param_env = self.param_env; | ||
| let region_scope_tree = self.tcx.region_scope_tree(item_def_id); | ||
| euv::ExprUseVisitor::new(self, tcx, param_env, ®ion_scope_tree, self.tables, None) | ||
| let tables = self.tables; | ||
| euv::ExprUseVisitor::new(self, tcx, param_env, ®ion_scope_tree, tables, None) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm we may want to actually file an issue for this one (the interaction of two-phase borrows and an Unsize coercion), tagged with NLL, in terms of tracking things that regress with respect to AST-borrowck. Or we can just wait to someone to report it from the wild. :)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's already #51915 |
||
| .consume_body(body); | ||
|
|
||
| let body_promotable = self.check_expr(&body.value); | ||
|
|
||
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.
I'm surprised this doesn't require
muton the variable; generally&mut <var>does require<var>to be declaredmutI think?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.
Yes, but this is equivalent to
&mut (*slot).1which is OK since slot is a mutable reference.