Skip to content

Introduce helper types for accessing trait items #367

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

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

tgross35
Copy link
Contributor

The ambiguous associated types error sometimes fires in cases where it shouldn't be ambiguous (1), which can make things clunky when working with chained associated types (e.g. Op::FTy::Int::* does not work). Add helper types that we can use instead of the full syntax.

There aren't too many cases in-crate now but this is relevant for some open PRs.

The ambiguous associated types error sometimes fires in cases where it
shouldn't be ambiguous ([1]), which can make things clunky when working
with chained associated types (e.g. `Op::FTy::Int::*` does not work).
Add helper types that we can use instead of the full syntax.

There aren't too many cases in-crate now but this is relevant for some
open PRs.

[1]: rust-lang/rust#38078
@tgross35 tgross35 enabled auto-merge December 22, 2024 23:34
@tgross35 tgross35 merged commit ebdb38b into rust-lang:master Dec 22, 2024
30 checks passed
@tgross35 tgross35 deleted the type-helpers branch December 23, 2024 00:10
tgross35 added a commit that referenced this pull request Apr 18, 2025
Introduce helper types for accessing trait items
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.

1 participant