Skip to content

Add borrow inference unit tests#85

Merged
Medowhill merged 1 commit intomasterfrom
hlz/borrow-inference-tests
Apr 21, 2026
Merged

Add borrow inference unit tests#85
Medowhill merged 1 commit intomasterfrom
hlz/borrow-inference-tests

Conversation

@KomaEc
Copy link
Copy Markdown
Contributor

@KomaEc KomaEc commented Apr 21, 2026

Migrate tests from Crown's borrow analysis and add new ones with proper assertions on demotion results. Tests cover iterative pointer demotion, inferred return provenance bounds, demotion optimality, and known limitations (struct field collapsing, interprocedural, null-ptr provenance) as #[should_panic] tests asserting correct expected behavior.

Migrate tests from Crown's borrow analysis and add new ones with proper
assertions on demotion results. Tests cover iterative pointer demotion,
inferred return provenance bounds, demotion optimality, and known
limitations (struct field collapsing, interprocedural, null-ptr provenance)
as #[should_panic] tests asserting correct expected behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Medowhill Medowhill merged commit d5b6af4 into master Apr 21, 2026
1 check passed
@Medowhill Medowhill deleted the hlz/borrow-inference-tests branch April 21, 2026 06:43
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.

2 participants