Repository navigation
fix(analysis): a test-local binder named like the owner no longer credits it (#14552) #16298
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
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0403ae1
fix(analysis): a test-local binder named like the owner no longer cre…
claude 8b90631
test(fixtures): pin #14552 in the honesty corpus and recapture report…
claude 00b1db2
fix(analysis): drop needless borrows in the local-binder reading (#14…
claude 0405129
fix(analysis): refuse a macro operand that spells use or mod, skip fi…
claude b473693
fix(analysis): read a macro-generated test's local binders from its e…
claude 6cbb424
test(fixtures): re-bless five shadowed-closure goldens for #14552
claude 45e6a92
fix(analysis): refuse a nested macro in an operand, admit field, slic…
claude ae733e4
Merge main into claude/project-thread-jbootm
claude ba9920c
chore(cache): move the local-binder bump to 1.204 / 0.206 after main …
claude 6aeb5fc
test(honesty): recapture corpus reports at cache generation 1.204 (#1…
claude ccdf470
fix(analysis): read a split `::` inside a macro as a path separator (…
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| <!-- section: Fixed --> | ||
| - Analysis: a test that only calls a local of its own body named like the changed function (`let dt = |x| x + 1;`, `let dt = other;`, a closure parameter or a nested `fn dt`) no longer counts as a `direct_owner_call` of that function; the seam now reads `reach: weak` through `same_test_file`. The parsed body decides each mention block by block, so a call before the binding, inside the binding's own initializer, or after the binding's block ends still credits the owner. A qualified call, an import or glob in an enclosing block, another binding pattern (`match`, `if let`, `for`) or a non-std macro keeps the earlier reading. Pinned in the evidence-promotion honesty corpus with a block-scoped control (#14552). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.