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

Change parent of SyntaxNode to RefCell from Cell #44

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

agathazeren
Copy link
Contributor

@agathazeren agathazeren commented Oct 21, 2020

Since Weak is not Copy (and therefore Option<WeakHandle>> is not Copy) it shouldn't be put into a Cell, only a RefCell. In a Cell, there is no way to access the content of the parent.

Since `Weak` is not `Copy` (and therefore `Option<WeakHandle>>` is not `Copy`)
it shouldn't be put into a `Cell`, only a `RefCell`. In a `Cell`, there is be
no way to access the content of the parent.
@agathazeren agathazeren mentioned this pull request Oct 21, 2020
Copy link
Contributor

@scarab5q scarab5q left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fairly straightforward change

@agathazeren
Copy link
Contributor Author

Thanks scarab5q!

@ngortheone can you look into why the pr can still not be merged? Thanks, and sorry to bother you so much.

@ngortheone
Copy link
Collaborator

looks like @scarab5q does not have approval power...

@ngortheone ngortheone merged commit ad5f4bb into org-rs:master Oct 23, 2020
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.

None yet

3 participants