Repository navigation
fix(rust): refuse a sole-method credit when a hidden impl could define the method (#10625) - #11925
Conversation
…e the method (#10625) `Type::name(..)` was credited to the owner whenever the workspace index listed one impl method of that name for the type. Derived, blanket and macro-generated impls are invisible to the index, so the credit could name the wrong implementation. A derive that defines the method (or one ripr cannot read), a blanket impl defining it, or a macro that writes an impl for the type or is invoked naming it now withholds the credit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzUdZP8xBvycZVNxUDB
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 9 minutes. View limit details
|
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The item-level macro branch withholds sole-method credit for any macro invocation whose token text contains the owner's stripped type spelling, even when the macro cannot define an impl for that type.
- The PR claims focused-test discrimination and formatting success, but the supplied evidence contains no completed cargo-test or cargo-fmt receipt and the ripr sensor failed.
Verification questions
- Confirm the macro-definition route requires the macro text to contain both the stripped type name and the whole word
impl, while item-level macro calls require the invocation to name the type; unrelated macros retain credit. - Confirm known derive handling parses attribute text by splitting words, so qualified derive paths are classified as unknown and conservatively withhold credit; however, the added test covers only
derive_more::Mul, not a known std derive path or a cfg_attr case.
Evidence gaps
- Exact-head cargo-test evidence remains unavailable because the scheduled receipt is absent and ripr itself failed with exit code 2.
- The central behavioral claim lacks a completed repository proof receipt: ripr failed with exit code 2 and cargo-test is receipt-absent.
…anket impls (#10625) The sole-method guard now builds one owner-independent table per index (derives per type, blanket-impl method names, impl-writing macro words and item-level macro words), visiting item headers only and skipping function bodies, so the cost is linear rather than per owner. A blanket impl whose self type is `&'a T`, `&'a mut T` or a raw pointer to a type parameter is now recognized by peeling the parsed type. Tests add `&'a T`/`&'a mut T`, an item-level macro invocation naming the type, a cfg_attr derive and a std derive that defines the method. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzUdZP8xBvycZVNxUDB
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head c78e0bd): REVIEW_INCOMPLETE
Inspected:
- Head re-fetched before writing: c78e0bd (PR open, not draft, mergeable=true/blocked). Three commits: fc7ed40 (21:50:13Z), 4e9cb51 (22:22:34Z), c78e0bd (00:03:37Z, "Merge branch 'main' into claude/issue-10625-failclosed"). Base 7ddbd2f.
- Changed files (REST pulls/11925/files): changelog.d/10625-sole-method-hidden-impls.md (+2/-0), crates/ripr/src/analysis/classify/call_identity.rs (+8/-0), crates/ripr/src/analysis/classify/implicit_call.rs (+246/-2), crates/ripr/tests/operator_call_credit.rs (+176/-2). Same four files and same +/- as the previous head. I compared blob SHAs for all four files between 4e9cb51 and c78e0bd and they are byte-identical, so the only delta in this head is the base advance fa621a3 -> 7ddbd2f; the source review below carries over unchanged.
- Governing issue #10625 item 3 ("Identity by spelling"): sole_method may count only workspace-indexed functions, so a derived, blanket or macro-generated impl the index cannot see must leave the claim REMAINING/unclaimed. This diff addresses that hidden-impl sub-gap only; it deliberately leaves the impl_self_type_name spelling-stripping decision and item 2 (relation cap) open and says so in the PR body.
- Production path: implicit_call.rs type_path_owner now sets sole_method only when !unindexed_impl_may_define(owner, index). HiddenImpls::build walks index.files(), reads each file's syntax snapshot once, and records per-type derive methods (a std derive table plus any derive it cannot read), a set of blanket-impl method names, and the words of impl-writing macro definitions and item-level macro invocations. call_identity.rs memoizes the scan in CallIdentityMemos behind a OnceLock and clears it on index mutation (insert_file, remove_file, extend_* call clear()), and Clone returns Self::default(), so a cloned index recomputes. The memo cannot go stale across index mutation.
- Direction of effect: withhold_implicit_call_gap converts only weakly_exposed / reachable_unrevealed -> static_unknown and never raises a class, so the change is fail-closed in the conservative direction.
- Discriminators: an_impl_the_index_cannot_see_may_define_the_method_so_no_sole_credit and a_std_derive_that_defines_the_method_withholds_the_sole_credit in crates/ripr/tests/operator_call_credit.rs. Each asserts its fixture construction before the class assertion, each has a positive control, and each has a discriminating negative (an unrelated macro still yields weakly_exposed; the same manual partial_cmp owner without the derive still yields weakly_exposed, and the two differ only by the derive). These are real discriminators, not self-confirming oracles.
- Conventions: the changelog fragment is present and matches the merged sibling changelog.d/10625-qualified-operator-call-trait-args.md format (section marker plus one bullet). Traceability is not a gap: xtask check_traceability validates authored [[behavior]] entries, spec coverage and fixture spec IDs, and its own report text states it does not enumerate Rust tests and does not require every newly added test to appear in .ripr/traceability.toml; the hosted Repository policy preflight step passed in the Rust gates job at this head.
- Hosted evidence at head c78e0bd: merge-ready run 41255083907 and CI run 41255083887. Rust-only feature lane job 124696429193, Rust gates job 124696888303, Result job 124698617577, shard job 124698618434.
Blocking:
- The required check "Ripr Rust Small Result" is RED at this head (job 124698617577, completed 00:13:53Z). It has two causes, and I checked both for candidate attribution; neither is attributable to this diff.
- Rust gates (job 124696888303) fails at check-policy-all -> check-process-policy with: crates/ripr/src/output/first_pr/run_chain.rs allowlist entry for
use std::process::Commandis orphaned: max_count=1 but pattern not found in any tracked file. I verified the mechanism independently rather than relying on the sibling report: xtask/src/main.rs check_count_policy matches the literal substring and flags an allowlist key whose pattern no longer occurs in the file; the base fa621a3 haduse std::process::Command;in run_chain.rs, the merge base 7ddbd2f hasuse std::process::{Child, Command, ExitStatus, Stdio};, and policy/process_allowlist.d/11720-first-pr-run-chain.txt still carries the literal entry with max_count=1. The change that orphaned it is #11924's merge (ad8b265), which is already on main; the repair is open as #11975. This diff touches neither run_chain.rs nor policy/. - The Rust-only feature lane (job 124696429193) fails three pre-existing tests: lsp::backend::list_actionable_items_tests::list_actionable_items_names_gaps_the_actionable_profile_hides, check_worktree_drill_in_commands_reach_the_uncommitted_finding and selector_location_misses_explain_syntax_and_preserve_retry_scope. None is a candidate test, and none is attributable to this candidate: the identical lane command passed at the previous head 4e9cb51 (job 124687447761) where all three are recorded ok, and the candidate's four files are byte-identical across the two heads, so the delta is the main advance only.
- Rust gates (job 124696888303) fails at check-policy-all -> check-process-policy with: crates/ripr/src/output/first_pr/run_chain.rs allowlist entry for
- The four Rust test shards are SKIPPED at this head (job 124698618434), and the run's own log states that skipped, cancelled and not_reported are not passes. No shard lane has executed at c78e0bd, so the full nextest suite is unobserved at the head under review. The inherited main-red python test compare_literal_values_fails_open_on_undecoded_literals (crates/ripr/src/analysis/language/python/guard_activation.rs:1436) is fixed on main by #11918, so it is no longer expected here, but the shards must actually run before the required check can be declared green.
- The candidate's own two new tests did execute and pass at this exact head in the feature lane (both recorded ok at 00:13:28Z), so the candidate's behavior change is exercised and green; what is missing is a green required check and an executed shard suite.
Non-blocking:
- Spec narrowing not applied. docs/specs/RIPR-SPEC-0240-unknown-not-a-gap.md still states the sole-method rule at line 857 ("Money::name( when the type has no other method of that name") without the new refusal condition. Every recent merged sibling in this area narrowed that spec together with the behavior change (90ea8a7 for #11836, 067d312 for #11365, 237902e for #11251, ac7599a for #10910), so the repo convention is to narrow it. The implementation only under-claims relative to the spec, so this is stale documentation rather than a false-confidence surface, and no gate enforces it.
- The two new test names are absent from .ripr/traceability.toml. Not a gate requirement, but siblings such as #11365 also registered their new tests, so this is an inconsistency with the local convention rather than a defect.
- Test-harness collateral. The shared source() builder now emits its default
#[derive(Debug, Clone, Copy, PartialEq)] pub struct Money(pub i64);only when the case's extra_items does not contain the substring "struct Money". That substring test also matches the pre-existingshadowedfixture (mod other { pub struct Money(pub i64); }), so exactly one pre-existing case, "a same-named type imported from another module", now builds without any in-file Money definition while its impl header still spells a bare Money. The case still asserts no credit and still passes, and the removed std derives define no add or index, so the sole-method decision it exercises is unaffected. What I could not establish statically is whether that case now passes for the reason it names (a foreign named import refuses the lift) or for a different reason (the owner's self type has no same-module definition). Keying the guard off an explicit case field rather than a substring of extra_items would remove the ambiguity. - HiddenImpls::read_blanket_impl records blanket-impl method names globally rather than per self type, so a blanket impl for an unrelated type can withhold the sole-method credit for this type. This is fail-closed and documented in the code, but it is a precision cost broader than the per-type framing in the PR body.
- The PR body records that the crates/ripr/src/testing/scale.rs guards were not run locally because the build host ran out of disk, and asks for hosted proof. This diff does not touch scale.rs, but the claim is unverified locally and the hosted shard lanes that would cover it are skipped at this head.
- No changelog fragment is needed beyond the one present; the fragment correctly describes the narrowing and the spelling-collision behavior.
Not run:
- This review host has no Rust toolchain: rustc, cargo and rustup are all absent from PATH. Nothing was built, compiled, formatted, linted or tested locally. cargo fmt --check, cargo clippy, cargo xtask precommit, the nextest shard lanes, the testing::scale guards and every local cargo xtask gate were NOT run by this review.
- The hosted Rust tests shard 1..4 of 4 lanes were skipped at this head, so the full workspace suite is unobserved at c78e0bd.
- The candidate's own tests were observed only in the Rust-only feature lane (cargo test -p ripr --locked --no-default-features --features lang-rust --no-fail-fast), which excludes the python and typescript language features; no default-feature build was observed at this head.
- No runtime or mutation execution was performed. Every exposure statement here is static, and no claim is made about runtime mutation outcomes or test-suite sufficiency.
- The REST artifact endpoint was used for in-memory JUnit inspection; no repository file was modified and no HEAD-moving git command was run.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head c78e0bd0b37b4a80450bade86e17fb2e24571a0e. Not an approval.
There was a problem hiding this comment.
Confirmed findings
- Item-level macro token matching withholds sole-method credit for any invocation containing the type name, regardless of whether that macro can define an impl.
- Blanket impls are tracked globally by method name, so a blanket impl for an unrelated generic type can suppress sole-method credit for the owner type.
- Item-level macro calls are conservatively classified as hidden impl sources whenever their argument words contain the owner's type name, even though the implementation does not establish that the macro writes an impl or is capable of affecting that type.
Verification questions
- Confirm the item-level macro route withholds credit whenever any item macro argument contains the owner's type spelling, regardless of whether the macro can expand to an impl.
- Confirm derive parsing treats unknown qualified and cfg_attr derives as unreadable, but the implementation uses token splitting rather than validating derive syntax.
- Confirm the item-level macro invocation branch has no negative case proving that an invocation not naming the owner preserves WeaklyExposed; unlike macro definitions, any invocation containing the type token withholds credit.
- Confirm crates/ripr/tests/operator_call_credit.rs:995 — Add a negative control for an item-level macro invocation that does not name Money and assert that the call remains WeaklyExposed. The existing unrelated-macro case only proves that a macro definition for another type is ignored, so it does not discriminate the new item_macro_words rule, which withholds credit for any invocation whose token text contains Money.
- Confirm qualified std derives such as #[derive(std::clone::Clone)] are treated as unknown rather than using the known method set, unnecessarily withholding every method on that type.
Evidence gaps
- Exact-head focused-test and formatting evidence is unavailable: ripr failed with exit code 2 and the scheduled cargo-test receipt is absent.
- Model proof intent was rejected by deterministic validation.
- The PR's claimed focused-test and formatting proof is not present as completed exact-head evidence in this review packet.
Parked follow-ups
- crates/ripr/src/analysis/classify/implicit_call.rs:1408 —
read_derivesdoes not recognize qualified std derives:std::clone::Cloneis split into words and compared as unknown, causing theunreadableflag and withholding credit for every method. Normalize the final path segment for known std derives, while retaining unknown handling for qualified third-party derives.
…n rule (#10625) The positive invocation case now sits in a module the test does not enclose, so the table rule (not the enclosing-scope rule) decides it, and an invocation that does not name the type leaves the credit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzUdZP8xBvycZVNxUDB
|
|
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head 4eb54d5): REVIEW_INCOMPLETE
This is a re-bind: an independent review already exists on this PR bound to c78e0bd0b37b4a80450bade86e17fb2e24571a0e. The head has since moved. This review covers the delta and states, per earlier finding, whether it still holds, has been repaired, or is stale. It supersedes nothing; it binds to the head below.
Inspected:
- Head
4eb54d5218be91f2cb086f484e20b6aade13c477, base refmain@7ddbd2f78e067671d244f3cee4d9b368374def54; not draft;mergeable: MERGEABLE,mergeStateStatus: BLOCKED; labelmerge-readypresent. - The delta
c78e0bd0..4eb54d521: one path,crates/ripr/tests/operator_call_credit.rs, +29/-0 — test-only. The head's only new commit is4eb54d521"test(rust): add a negative control for the item-level macro invocation rule (#10625)". No production file changed in this delta. - The delta's content in full: a new case
sole_macro_invocation_other, whose fixture invokes the macro withOtherrather thanMoney, assertingExposureClass::WeaklyExposed— against the existing case that invokes it withMoneyand assertsExposureClass::StaticUnknown. The two fixtures differ only in the macro argument. - The candidate's whole contribution against the merge base
7ddbd2f78e: 4 paths, +447/-4 —changelog.d/10625-sole-method-hidden-impls.md(+2),crates/ripr/src/analysis/classify/call_identity.rs(+8),crates/ripr/src/analysis/classify/implicit_call.rs(+248),crates/ripr/tests/operator_call_credit.rs(+193). Unchanged by this delta. - The earlier review's open findings, re-checked at this head against the source tree.
- Hosted evidence at this head via GraphQL
statusCheckRollup(30 contexts) andbranchProtectionRulesonmain.
Blocking:
- No Rust proof ran at this head, so the required check cannot be satisfied. Every Rust context at
4eb54d521isSKIPPED—rust-coverage,rust-tests-junit,future-clippy,msrv,cargo-deny,ci-result,Rust-only feature lane,source-identity— and the required context onmain,Ripr Rust Small Result, is absent from the head's 30 contexts, consistent withmergeStateStatus: BLOCKED. The cause is mechanical and known:.github/workflows/routed-rust.ymltriggers its Rust qualification onpull_request: types: [labeled]and its route job runs only when the label event ismerge-ready, so themerge-readylabel is present on this PR yet the lane did not run for this head — the head commit landed after the label was applied. The remedy is the one this campaign has applied elsewhere: remove themerge-readylabel and re-add it, so the Rust lane runs against4eb54d521. (The workflow's own run name is conditional for the same reason —name: ${{ (github.event_name != 'pull_request' || github.event.label.name == 'merge-ready') && 'Ripr Rust Small Result' || 'Merge-ready Nonrequest' }}— so a non-merge-readylabel event cannot even report the required context.) - The inherited base-side red the earlier review attributed is still live on
main. The earlier review recorded the required check as red atc78e0bd0for two causes, neither attributable to this candidate: thecheck-process-policyorphan (policy/process_allowlist.d/11720-first-pr-run-chain.txtdeclaresuse std::process::Command, butcrates/ripr/src/output/first_pr/run_chain.rsnow importsuse std::process::{Child, Command, ExitStatus, Stdio};), and three pre-existing tests failing in the Rust-only feature lane. The first of those is still red at the current main tipa69bf0214(job124707375551), and the identical repair is carried by three open PRs (#11975, #11942, #11995 — the same blob2402ccd2against main's63db01ce), with #11975 the survivor. This diff touches neitherrun_chain.rsnorpolicy/, so the attribution is unchanged; it is recorded here so the re-add of the label is not mistaken for a sufficient remedy on its own.
Non-blocking:
- The spec narrowing the earlier review flagged is still not applied.
docs/specs/RIPR-SPEC-0240-unknown-not-a-gap.md:857still reads "Money::name(when the type has no other method of that name (an inherentnamewins the path, and a second trait'snamemakes it ambiguous)", with no refusal condition for an impl the index cannot see — and the phrases "sole method" and "hidden impl" do not occur anywhere in that spec. The implementation under-claims relative to the spec, so this is stale documentation rather than a false-confidence surface, and no gate enforces it. Every recent merged sibling in this area narrowed the same spec alongside the behaviour change (90ea8a7 for #11836, 067d312 for #11365, 237902e for #11251, ac7599a for #10910), so the convention is established. Still holds; not repaired by this delta. - The new tests are still absent from
.ripr/traceability.toml, and this delta adds a third. A grep of the traceability file at this head finds none ofan_impl_the_index_cannot_see_may_define_the_method_so_no_sole_credit,a_std_derive_that_defines_the_method_withholds_the_sole_credit, or the newly addedsole_macro_invocation_other.xtask check_traceabilitydoes not require every new test to be registered, so this is a convention gap rather than a gate failure. Still holds, and has grown by one test with this delta. - The
source()builder's substring guard ambiguity the earlier review flagged is unaffected by the new case. The guard emits the default#[derive(Debug, Clone, Copy, PartialEq)] pub struct Money(pub i64);only when the case'sextra_itemsdoes not contain the substring"struct Money". The new case'sextra_itemsis"mod generated { add_for!(Other); }", which does not contain it, so the defaultMoneydefinition is still emitted and the new case's premise is intact. The pre-existingshadowedfixture remains the one case that no longer builds an in-fileMoneywhile its impl header still spells a bareMoney— that ambiguity is untouched. Still holds. HiddenImpls::read_blanket_implstill records blanket-impl method names globally rather than per self type, so a blanket impl for an unrelated type can withhold the sole-method credit for this type. Fail-closed and documented in the code, but broader than the per-type framing in the PR body. Unchanged by this delta.- The branch has not absorbed current
main. The head's merge base with the current main tipa69bf0214is still7ddbd2f78e— the branch's last main merge — and 174 paths differ between the head and the current main tip. GitHub's test-merge commit9f3a95a4c166eac64887d474a96cc9135cfbb435exists and the PR isMERGEABLE, so it still merges cleanly and the candidate's own contribution remains the same 4 paths / +447 measured against the merge base. This is a landing fact, not a coverage fact: a main advance does not invalidate a head-bound review, and the branch's own contribution is unaffected by how far main has moved since the branch's merge.
Worth keeping:
- The delta is exactly the kind of addition that raises a test's discriminating power rather than its count.
sole_macro_invocation_otherdiffers fromsole_macro_invocationonly in the macro's argument (OtherversusMoney) and asserts the opposite class (WeaklyExposedversusStaticUnknown), so it fails if the item-level macro-invocation rule ever stops being about the named type — the failure mode a single-direction test cannot see. - The new case asserts its own fixture construction before its class assertion (
assert!(source(&invoked_other).contains("mod generated { add_for!(Other); }"))andassert!(!source(&invoked_other).contains("mod generated { add_for!(Money); }"))), which is what keeps the negative from passing for a reason other than the one it names. - The change stays inside the conservative direction:
withhold_implicit_call_gapconverts onlyweakly_exposed/reachable_unrevealedtostatic_unknownand never raises a class, so a false negative here cannot become a wrong actionable repair signal.
Not run:
- The Rust toolchain on this host is not on
PATH, so nothing was built, compiled, formatted, linted or tested locally.cargo fmt --check,cargo clippy,cargo xtask precommit, the nextest shard lanes and every localcargo xtaskgate were not run by this review. - The full workspace suite is unobserved at this head: all four Rust test shard lanes are
SKIPPED, and the run's own log states that skipped, cancelled and not_reported are not passes. The candidate's own tests have not executed at4eb54d521. - The candidate's tests were previously observed only in the Rust-only feature lane (
cargo test -p ripr --locked --no-default-features --features lang-rust --no-fail-fast), which excludes the python and typescript language features; no default-feature build has been observed at this head. - The hosted job-log endpoint was unreadable for this review: the shared REST core quota is exhausted, so the leaf-level detail inside the failing gates job is not quoted. The attribution above is a source-level causal chain (allowlist pattern → import form →
xtask/src/main.rsmatcher →check_policy_all→ci-policy→ step 16 ofrust-gates.yml), not a log quotation. - No runtime or mutation execution was performed. Every exposure statement here is static; no claim is made about runtime mutation outcomes or test-suite sufficiency.
- Provider checks at this head report
CodeRabbitNEUTRAL,Devin ReviewSUCCESS,GitGuardianSUCCESS andGraphiteSUCCESS. Those are provider conclusions, not independent evidence, and none of the findings above rests on them.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 4eb54d5218be91f2cb086f484e20b6aade13c477. Not an approval.
|
Review of record, head 716d074. Disposition: REVIEW_READY (COMMENT on author PR). Inspected: full diff of classify/implicit_call.rs, call_identity.rs memo, operator_call_credit.rs and fragment. The sole-method credit ( Generated by Claude Code |
Governing issue or accepted claim: #10625
Acceptance delta (one sentence):
Type::name(..)is no longer credited to a trait-impl owner as the sole implementation when a derived, blanket or macro-generated impl the index cannot see could define the same method for that type (item 3,sole_methodindexed-only sub-gap).Behavior change
type_path_ownerincrates/ripr/src/analysis/classify/implicit_call.rssetsole_methodfrom workspace-indexed functions only. It now also requires that no hidden impl could define the method. The answer is fail closed (yes) for:#[derive(..)]on the type naming a std derive that defines the method (Clone, Debug, Default, Hash, Ord, PartialEq, PartialOrd), or any derive ripr cannot read (non-std derive, orcfg_attrhiding one);impl<T> Trait for Tthat defines the method, including through&T,&'a T,&'a mut Tand raw pointers (the self type is parsed as a type and peeled to the type parameter);macro_rules!/macrodefinition that mentions the type and writes animpl, or an item-level macro invocation that names the type;The withholding only moves
weakly_exposedtostatic_unknown; it never raises a class.Cost choice
The scan is built once per index, not per owner:
HiddenImpls::build(held inCallIdentityMemos, so a cloned index recomputes) reads each indexed file's syntax once and records derives per type name, blanket-impl method names, and the words of impl-writing macro definitions and of item-level macro invocations. It visits item headers only and skips function bodies and impl bodies, so the walk is linear in item count and each owner's question is a map lookup. Not run: thecrates/ripr/src/testing/scale.rsguards (the build host ran out of disk building the lib tests); hosted proof needed.Precision cost and limits (fail closed)
Serialize,Deserialize,thiserror::Error, ...) now withholds the sole-method credit for every method name on that type. This costs precision (credit is dropped where a derive could not define the method) in exchange for never naming the wrong implementation.type Money = Other;) is not followed.Type-identity choice (
impl_self_type_name)Chosen: the conservative option. Keep the stripped-spelling identity, but treat it only in the direction that lowers credit. Spelling collisions (
other::MoneyvsMoney,Wrapper<i32>vsWrapper<f64>) are counted together insame_name, so they can only remove a sole-method claim. A full type-identity representation is not part of this slice. Also recorded on the issue claim comment.Proof
cargo test -p ripr --test operator_call_credit: 28 passed. New or extended:an_impl_the_index_cannot_see_may_define_the_method_so_no_sole_credit(unknown derive, blanket impl,&'a Tand&'a mut Tblanket impls, sibling-file macro, item-leveladd_for!(Money);,cfg_attr(.., derive(..)), plus a positive control and an unrelated-macro negative) anda_std_derive_that_defines_the_method_withholds_the_sole_credit(PartialOrdderive vs a manualpartial_cmpowner, with a control without the derive). Each case asserts its fixture construction first.cargo fmt --checkclean.cargo xtask precommit, theclassifylib unit tests, the scale guards. Hosted exact-head proof is needed.Not covered (remaining under #10625 item 3)
impl_self_type_namestill strips references, generics and module prefixes at about 10 call sites (type-identity representation decision);impl Add<Money>header with a call spellingAdd<i64>beyond the existing mismatch case.🤖 Generated with Claude Code
https://claude.ai/code/session_01YVdGzUdZP8xBvycZVNxUDB