Skip to content

Require lifetime bounds for opaque types in order to allow hidden types to capture said lifetimes - #102417

Merged
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:opaque_lifetimes2
Oct 20, 2022
Merged

Require lifetime bounds for opaque types in order to allow hidden types to capture said lifetimes#102417
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:opaque_lifetimes2

Conversation

@oli-obk

Copy link
Copy Markdown
Contributor

@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 28, 2022
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @TaKO8Ki

(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 Sep 28, 2022
Comment threadcompiler/rustc_borrowck/src/region_infer/opaque_types.rs Outdated
@jackh726

Copy link
Copy Markdown
Member

r? @jackh726

@rust-highfiverust-highfive assigned jackh726 and unassigned TaKO8KiOct 7, 2022
@bors

bors commented Oct 14, 2022

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #102700) made this pull request unmergeable. Please resolve the merge conflicts.

@jackh726

Copy link
Copy Markdown
Member

@bors r+ rollup=never

While unstable, this a "breaking change" for TAITs, so I'd rather this not land in a rollup, so bisection will be easier for the inevitable issues filed.

@bors

bors commented Oct 19, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 1dc2119 has been approved by jackh726

It is now in the queue for this repository.

@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 Oct 19, 2022
@bors

bors commented Oct 19, 2022

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 1dc2119 with merge 1e5d3a66a9b79074d8bfe520b64eb62707e9beb0...

@bors

bors commented Oct 19, 2022

Copy link
Copy Markdown
Collaborator

💥 Test timed out

@borsbors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 19, 2022
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors retry

@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 Oct 19, 2022
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

A job failed! Check out the build log: (web)(plain)

Click to see the possible cause of the failure (guessed by this bot)

@bors

bors commented Oct 20, 2022

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 1dc2119 with merge cb94675...

@bors

bors commented Oct 20, 2022

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: jackh726
Pushing cb94675 to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Oct 20, 2022
@bors
bors merged commit cb94675 into rust-lang:masterOct 20, 2022
@rustbotrustbot added this to the 1.66.0 milestone Oct 20, 2022
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (cb94675): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean1rangecount2
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
-1.1%[-1.1%, -1.1%]3
All ❌✅ (primary)--0

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean1rangecount2
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
-3.6%[-4.4%, -2.7%]3
All ❌✅ (primary)--0

Cycles

This benchmark run did not return any relevant results for this metric.

Footnotes

  1. the arithmetic mean of the percent change2

  2. number of relevant changes2

@oli-obk
oli-obk deleted the opaque_lifetimes2 branch November 9, 2022 10:16
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 29, 2022
type alias impl trait: add tests showing that hidden type only outlives lifetimes that occur in bounds
fixesrust-lang#103642rust-lang#102417 only made sure that hidden types cannot outlive lifetimes other than the ones mentioned on bounds, but didn't allow us to actually infer anything from that.
cc `@aliemjay`
Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Jan 6, 2023
Require lifetime bounds for opaque types in order to allow hidden types to capture said lifetimes
fixesrust-lang#96996
cc `@aliemjay`
oli-obk added a commit to oli-obk/rust that referenced this pull request Aug 30, 2023
…=jackh726"
This reverts commit cb94675, reversing
changes made to 57781b2.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-borsThis PR was explicitly merged by bors.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.

type-alias-impl-trait implicitly captures lifetime params

9 participants

@oli-obk@rust-highfive@jackh726@bors@rust-log-analyzer@rust-timer@compiler-errors@TaKO8Ki@rustbot