Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
SparrowLii:graph_lt
Apr 22, 2022
Merged

Make the lifetime accurate which is used in the region constraints part#96315
bors merged 1 commit into
rust-lang:masterfrom
SparrowLii:graph_lt

Conversation

@SparrowLii

@SparrowLiiSparrowLii commented Apr 22, 2022

Copy link
Copy Markdown
Member

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

@rustbotrustbot 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
Copy Markdown
Contributor

r? @petrochenkov

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

@rust-highfiverust-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
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Apr 22, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 343523c has been approved by petrochenkov

@borsbors 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:masterApr 22, 2022
@rustbotrustbot added this to the 1.62.0 milestone Apr 22, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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

@SparrowLii@rust-highfive@rust-log-analyzer@petrochenkov@bors@rustbot