Skip to content
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

analyze: add option to skip borrowck #1181

Merged
merged 4 commits into from
Dec 9, 2024
Merged

Conversation

spernsteiner
Copy link
Collaborator

This adds a new command-line option --skip-borrowck that completely disables the borrowck pass. All pointers are given the UNIQUE permission, allowing them to be rewritten to &mut T instead of &Cell<T>. This is useful when the code uses language features that aren't supported by borrowck and it's known (or assumed) that it doesn't require any Cell rewrites.

@spernsteiner spernsteiner force-pushed the analyze-skip-borrowck-base branch from 1a418d6 to d951c0c Compare December 3, 2024 19:57
@spernsteiner spernsteiner force-pushed the analyze-skip-borrowck branch 2 times, most recently from 0ec40f6 to 8a99922 Compare December 3, 2024 22:26
@spernsteiner spernsteiner force-pushed the analyze-skip-borrowck branch from 8a99922 to 6c3455e Compare December 9, 2024 19:12
@spernsteiner spernsteiner force-pushed the analyze-skip-borrowck-base branch from d951c0c to c9f0c11 Compare December 9, 2024 19:12
@spernsteiner spernsteiner changed the base branch from analyze-skip-borrowck-base to master December 9, 2024 19:12
@spernsteiner spernsteiner merged commit bcc772e into master Dec 9, 2024
8 checks passed
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