Skip to content

Add Client parameter to projection traits#3480

Open
jswrenn wants to merge 1 commit into
mainfrom
Gd2bc8560585e8f472223acf71b96e0f71b2d00c2
Open

Add Client parameter to projection traits#3480
jswrenn wants to merge 1 commit into
mainfrom
Gd2bc8560585e8f472223acf71b96e0f71b2d00c2

Conversation

@jswrenn

@jswrenn jswrenn commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

This will allow us to emit parallel impls from our various derives
without conflict.


Latest Update: v2 — Compare vs v1

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v1 Base
v2 vs v1 vs Base
v1 vs Base
⬇️ Download this PR

Branch

git fetch origin refs/heads/Gd2bc8560585e8f472223acf71b96e0f71b2d00c2 && git checkout -b pr-Gd2bc8560585e8f472223acf71b96e0f71b2d00c2 FETCH_HEAD

Checkout

git fetch origin refs/heads/Gd2bc8560585e8f472223acf71b96e0f71b2d00c2 && git checkout FETCH_HEAD

Cherry Pick

git fetch origin refs/heads/Gd2bc8560585e8f472223acf71b96e0f71b2d00c2 && git cherry-pick FETCH_HEAD

Pull

git pull origin refs/heads/Gd2bc8560585e8f472223acf71b96e0f71b2d00c2

Stacked PRs enabled by GHerrit.

@codecov-commenter

codecov-commenter commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.86%. Comparing base (2f7aef5) to head (a574926).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3480   +/-   ##
=======================================
  Coverage   91.85%   91.86%           
=======================================
  Files          20       20           
  Lines        6093     6094    +1     
=======================================
+ Hits         5597     5598    +1     
  Misses        496      496           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshlf joshlf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's wait to merge until we have a few more PRs on top of this just so we're sure this is the right technical direction?

/// delegating to an implementation of [`HasField::project`].
#[allow(missing_debug_implementations, missing_copy_implementations)]
pub struct Projection<F: ?Sized, const VARIANT_ID: i128, const FIELD_ID: i128> {
pub struct Projection<Client, F: ?Sized, const VARIANT_ID: i128, const FIELD_ID: i128> {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment explaining the purpose of this type param?

This will allow us to emit parallel impls from our various derives
without conflict.

gherrit-pr-id: Gd2bc8560585e8f472223acf71b96e0f71b2d00c2
@jswrenn jswrenn force-pushed the Gd2bc8560585e8f472223acf71b96e0f71b2d00c2 branch from e0b7dc6 to a574926 Compare July 8, 2026 20:48
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.

3 participants