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

internal: Workaround salsa cycles leaking #18760

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Dec 26, 2024

cc #18745

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 26, 2024
@Veykril Veykril enabled auto-merge December 26, 2024 13:51
@Veykril Veykril added this pull request to the merge queue Dec 26, 2024
Merged via the queue into rust-lang:master with commit d12a89b Dec 26, 2024
9 checks passed
@Veykril Veykril deleted the push-tkvlvvqyszrs branch December 26, 2024 14:24
};
} else if let Some(cycle) = panic.downcast_ref::<Cycle>() {
tracing::error!("Cycle propagated out of salsa! This is a bug: {cycle:?}");
return Err(Cancelled::PropagatedPanic);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm rebasing my fork against this PR now, and I'm debating whether this the removal of #[non_exhaustive] in Salsa is necessary—could we return a different error here or is salsa::Cancelled load-bearing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point the value of cancelled doesn't really matter anymore I think so we could also return some other unit error type here (the caller merely wants to know whether cancellation occured)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: #18762

Veykril added a commit to Veykril/rust that referenced this pull request Jan 16, 2025
Veykril added a commit to Veykril/rust that referenced this pull request Jan 16, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants