-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Model world borrow in Query
more accurately
#5588
Conversation
ac8e54d
to
5a08b7d
Compare
I like this direction a lot; I found the lifetimes here incredibly confusing and error prone when working on PRs that modify |
5a6da79
to
c51ebdf
Compare
for a reason why this PR is important see: #6214 which added a |
465bce6
to
7a3df82
Compare
7a3df82
to
4da01d4
Compare
(going to put this as a draft PR til I rewrite some doc comments) |
Why was this closed? |
Objective
Query
is an extremely error prone type to implement things on as the&'world World
field lets safe code do lots of unsound things with.Solution
newtype the
&'world World
and provide an API that more closely matches what the&'world World
is representing (See module and type level docs onQueryWorldBorrows
for more info)This diff mostly ended up being doc comments and safety comments 😆