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

Make the lifetime accurate which is used in the region constraints part #96315

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

SparrowLii
Copy link
Member

@SparrowLii SparrowLii commented Apr 22, 2022

This PR fixes the FIXME about lifetime using in the region constraints part.
We cannot write <'graph, 'tcx, D> because the definition of Successors<'0, '1, D> requires '1 : '0.
We cannot add bound to 'graph either because 'graph is required to be an arbitrary value in the definition of WithSuccessors
So the most accurate way is to use <'s, 'tcx, D>.
cc @Aaron1011 who added this FIXME in #85343

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Apr 22, 2022
@rust-highfive
Copy link
Collaborator

r? @petrochenkov

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 22, 2022
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@petrochenkov
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 22, 2022

📌 Commit 343523c has been approved by petrochenkov

@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 Apr 22, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 22, 2022
…askrgr

Rollup of 3 pull requests

Successful merges:

 - rust-lang#96272 (Update `validate_uninhabited_zsts.rs` test after MIR building changes)
 - rust-lang#96273 (Make `E0117` error clear)
 - rust-lang#96315 (Make the lifetime accurate which is used in the region constraints part)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit eeed267 into rust-lang:master Apr 22, 2022
@rustbot rustbot added this to the 1.62.0 milestone Apr 22, 2022
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. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants