Repository navigation
feat!: remove manual ownership overlay; package is @safe-only (v0.5.0) #82
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
MilesCranmer
merged 8 commits into
MilesCranmer:main
from
MilesCranmerBot:pr/v05-remove-manual-overlay
Aug 22, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ec306f6
feat!: remove manual ownership overlay; package is @safe-only (v0.5.0)
MilesCranmerBot 1129af2
Guard BorrowCheckError export on Julia versions without the auto layer
MilesCranmerBot e348430
Add docstrings for the remaining public API; fix docs build
MilesCranmerBot 8691ad1
fix(auto): gate the IR checker off on Julia 1.13-rc
MilesCranmerBot 188c37d
Point readers at @unsafe blocks instead of the removed overlay
MilesCranmerBot 882ae4c
Update compatibility messaging for the 1.12-only gate
MilesCranmerBot e6df5e6
Drop broken cross-reference anchor in README
MilesCranmerBot d3ce4a3
Merge gate-auto-on-113: keep nightly green pending 1.13 shim
MilesCranmerBot 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 |
|---|---|---|
| @@ -1,17 +1,15 @@ | ||
| name = "BorrowChecker" | ||
| uuid = "7bdcaa52-c310-4bb0-bf54-d941056ed284" | ||
| version = "0.4.6" | ||
| version = "0.5.0" | ||
| authors = ["MilesCranmer <miles.cranmer@gmail.com>"] | ||
|
|
||
| [deps] | ||
| DispatchDoctor = "8d63f2c5-f18a-4cf2-ba9d-b3f60fc568c8" | ||
| MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09" | ||
| Preferences = "21216c6a-2e73-6563-6e65-726566657250" | ||
| Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
|
|
||
| [compat] | ||
| DispatchDoctor = "0.4.19" | ||
| MacroTools = "0.5" | ||
| Preferences = "1.4" | ||
| Random = "1" | ||
| julia = "1.10" |
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,43 +1,19 @@ | ||
| module BorrowChecker | ||
|
|
||
| using MacroTools | ||
| using MacroTools: rmlines | ||
| using DispatchDoctor: @stable | ||
| include("preferences.jl") | ||
| include("auto.jl") | ||
|
|
||
| @stable default_mode = "disable" begin | ||
| include("utils.jl") | ||
| include("static_trait.jl") | ||
| include("errors.jl") | ||
| include("types.jl") | ||
| include("preferences.jl") | ||
| include("semantics.jl") | ||
| include("mutex.jl") | ||
| include("macros.jl") | ||
| include("overloads.jl") | ||
| include("type_overloads.jl") | ||
| include("disambiguations.jl") | ||
| include("auto.jl") | ||
| end | ||
|
|
||
| #! format: off | ||
| using .ErrorsModule: BorrowError, MovedError, BorrowRuleError, SymbolMismatchError, ExpiredError, AliasedReturnError | ||
| using .TypesModule: Owned, OwnedMut, Borrowed, BorrowedMut, LazyAccessor, OrBorrowed, OrBorrowedMut | ||
| using .MacrosModule: @own, @move, @ref, @ref_into, @take, @take!, @lifetime, @clone, @bc, @mut, @cc, @& | ||
| using .MutexModule: Mutex | ||
|
|
||
| export MovedError, BorrowError, BorrowRuleError, SymbolMismatchError, ExpiredError | ||
| export Owned, OwnedMut, Borrowed, BorrowedMut, LazyAccessor, OrBorrowed, OrBorrowedMut | ||
| export @own, @move, @ref, @ref_into, @take, @take!, @lifetime, @clone, @bc, @mut, @cc, @& | ||
| export @safe, @unsafe | ||
| export Mutex | ||
| export @safe, @unsafe, disable_by_default! | ||
|
|
||
| # Not exported but still available | ||
| using .Auto: @auto, @safe, @unsafe | ||
| using .PreferencesModule: disable_by_default! | ||
| using .StaticTraitModule: is_static | ||
| using .TypesModule: AsMutable, Lifetime, LazyAccessorOf, is_moved, get_owner, get_symbol, get_immutable_borrows, get_mutable_borrows | ||
| using .MacrosModule: @spawn | ||
| using .MutexModule: AbstractMutex, MutexGuard, LockNotHeldError, NoOwningMutexError, MutexGuardValueAccessError | ||
| #! format: on | ||
|
|
||
| # `BorrowCheckError` only exists where the automatic checker is supported | ||
| # (Julia >= 1.12 with `Base.code_ircode_by_type`); older versions get stubs. | ||
| if isdefined(Auto, :BorrowCheckError) | ||
| export BorrowCheckError | ||
| using .Auto: BorrowCheckError | ||
| end | ||
|
|
||
| end | ||
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.