Skip to content

Qualify the cgp_auto_dispatch matcher call, and test open on a later parameter - #268

Merged
soareschen merged 1 commit into
mainfrom
auto-dispatch-fix
Sep 26, 2026
Merged

soareschen merged 1 commit into
mainfrom
auto-dispatch-fix

Conversation

@soareschen

Copy link
Copy Markdown
Collaborator

The generated dispatch method called the matcher as Matcher::compute, which is ambiguous with E0034 in any module that also imports CanCompute or CanComputeAsync. Name the provider trait with inferred arguments instead, and add a test that imports both consumer traits.

Also add a snapshot and behavioral test for open keys whose first segment is a per-entry generic, dispatching on the input alone.

…parameter

The generated dispatch method called the matcher as `Matcher::compute`,
which is ambiguous with `E0034` in any module that also imports
`CanCompute` or `CanComputeAsync`. Name the provider trait with inferred
arguments instead, and add a test that imports both consumer traits.

Also add a snapshot and behavioral test for `open` keys whose first
segment is a per-entry generic, dispatching on the input alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@soareschen
soareschen merged commit 82d90e1 into main Sep 26, 2026
3 checks passed
@soareschen
soareschen deleted the auto-dispatch-fix branch September 26, 2026 14:20
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