Skip to content

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Oct 14, 2025

To be honest, I still don't quite understand the logic when we need into_diagnostic and when not. I wish there was a better way to guard against this.

@baszalmstra baszalmstra merged commit 23509c0 into prefix-dev:main Oct 14, 2025
12 checks passed
@wolfv wolfv deleted the remove-into-diagnostic branch October 14, 2025 15:29
@baszalmstra
Copy link
Contributor

into_diagnostic turns a type that implements std::error::Error and wraps it into a type that implements Diagnostic. The tricky part is that a diagnostic itself also implememts Error.

Long story short, if a type already implements Diagnostic you do not call into_diagnostic.

Hofer-Julian pushed a commit to Hofer-Julian/pixi-build-backends that referenced this pull request Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants