You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to see this happen: no compilation error
Instead, this happened:
error: lifetime may not live long enough
--> src/lib.rs:21:9
|
20 | fn field<'field>(&self) -> impl Iterator<Item = &&'field str> {
| ------ - let's call the lifetime of this reference `'1`
| |
| lifetime `'field` defined here
21 | self.field.iter()
| ^^^^^^^^^^^^^^^^^ method was supposed to return data with lifetime `'1` but it is returning data with lifetime `'field`
error: could not compile `playground` (lib) due to 1 previous error
It most recently works on nightly-2024-03-06 but returns error on nightly-2024-03-07
Activity
lqd commentedon Mar 9, 2024
I believe this should be due to the soundness fix in #121679.
oli-obk commentedon Mar 10, 2024
Yes, that PR was a follow up to #115008 (comment)
Your code example can be used unsoundly, even if a smarter analysis could infer the right lifetimes.
We should have cratered the change and opened a fix PR against your repo, apologies about the unannounced breakage. I'll start a crater run now
oli-obk commentedon Mar 10, 2024
craterbot commentedon Mar 10, 2024
oli-obk commentedon Mar 10, 2024
@craterbot run name=opaque-soundness-fix start=80399064afa4a2cd153f30d02c25f7ea0383ed65 end=09bc67b9158392361780e779d32997f14cc75c39 mode=check-only
craterbot commentedon Mar 10, 2024
👌 Experiment
opaque-soundness-fixcreated and queued.🔍 You can check out the queue and this experiment's details.
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more
3 remaining items
craterbot commentedon Mar 18, 2024
🗑️ Experiment
opaque-soundness-fixdeleted!ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more
Mark-Simulacrum commentedon Mar 18, 2024
@craterbot run name=opaque-soundness-fix start=master#80399064afa4a2cd153f30d02c25f7ea0383ed65 end=master#09bc67b9158392361780e779d32997f14cc75c39 mode=check-only
craterbot commentedon Mar 18, 2024
👌 Experiment
opaque-soundness-fixcreated and queued.🔍 You can check out the queue and this experiment's details.
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more
craterbot commentedon Mar 23, 2024
🚧 Experiment
opaque-soundness-fixis now runningℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more
craterbot commentedon Mar 24, 2024
🎉 Experiment
opaque-soundness-fixis completed!📊 9 regressed and 1 fixed (428380 total)
📰 Open the full report.
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more
oli-obk commentedon Mar 25, 2024
I opened PRs against all affected crates. The original reporter's crate did not show up since it was already fixed before crater started running
Auto merge of #723 - lqd:unprefixed-shas, r=Mark-Simulacrum
Auto merge of #723 - lqd:unprefixed-shas, r=Mark-Simulacrum