Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMove away from Root::deref. #4526
Conversation
It does not add any safety, as the reference is constructed from a raw pointer without limiting the lifetime in any way.
It does not add any safety, as the reference is constructed from a raw pointer without limiting the lifetime in any way.
As it will be used much more widely after the upcoming changes, this limits the effort reading and writing the method calls.
This changes those calls that were already sound.
This changes those calls whose unsoundness was not picked up by the type system because of a lifetime constraint that cannot be expressed at this time.
…oxy.
Note that Root::clone() calls through to JSRef::clone() due to autoderef.
highfive
commented
Jan 1, 2015
hoppipolla-critic-bot
commented
Jan 1, 2015
|
Critic review: https://critic.hoppipolla.co.uk/r/3624 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
This comment has been minimized.
This comment has been minimized.
|
r+ |
This comment has been minimized.
This comment has been minimized.
|
saw approval from Manishearth |
This comment has been minimized.
This comment has been minimized.
|
merging servo/servo/deref-1 = 203d166 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
all tests pass: |
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = 141b5d0 |
This comment has been minimized.
This comment has been minimized.
|
r+ |
This comment has been minimized.
This comment has been minimized.
|
saw approval from Manishearth |
This comment has been minimized.
This comment has been minimized.
|
merging servo/servo/deref-1 = 203d166 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
all tests pass: |
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = 141b5d0 |
203d166
into
master
Ms2ger commentedJan 1, 2015
This is a start towards fixing #3868. Not all callers have been fixed yet, so the
Derefimplementation remains for now.