Provide span for declaration of captured variables#53164
Provide span for declaration of captured variables#53164bors merged 3 commits intorust-lang:masterfrom
Conversation
| } => | ||
| { | ||
| if !self.mir.upvar_decls.is_empty() && | ||
| original_path.strip_deref_projections() |
There was a problem hiding this comment.
hmm, is strip_deref_projections enough?
Try a case like this:
{
let x = (vec![22], vec![44]);
expect_fn(|| drop(x.0));
}does that work?
There was a problem hiding this comment.
shouldn't we highlight something here?
There was a problem hiding this comment.
Oops, forgot to update the label logic with the same changes that made that branch get used in the first place for complex cases like this one. Fixed now.
3de543b to
3f71e12
Compare
|
@bors r+ |
|
📌 Commit 3f71e12f72a7772c32638c2ecfb49a719ec4dcb4 has been approved by |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
3f71e12 to
56232c6
Compare
|
Oops, fixed! |
|
@bors r=nikomatsakis |
|
📌 Commit 56232c6 has been approved by |
…tured-variables, r=nikomatsakis Provide span for declaration of captured variables Part of rust-lang#52663. r? @nikomatsakis
…tured-variables, r=nikomatsakis Provide span for declaration of captured variables Part of rust-lang#52663. r? @nikomatsakis
|
⌛ Testing commit 56232c6 with merge 6671494d4d7bb088db3c37a2a4c3adf84b245029... |
|
💔 Test failed - status-travis |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
@bors retry |
|
⌛ Testing commit 56232c6 with merge 89cf35c978c626cd2db98b3bc904a9e55fa35c57... |
|
💔 Test failed - status-travis |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
|
@bors r- Merge conflict. |
56232c6 to
5532e9d
Compare
|
Rebased. |
|
@bors r+ |
|
📌 Commit 5532e9d has been approved by |
…bles, r=nikomatsakis Provide span for declaration of captured variables Part of #52663. r? @nikomatsakis
|
☀️ Test successful - status-appveyor, status-travis |
Part of #52663.
r? @nikomatsakis