Skip to content

Fix the README in instrusive_collections_examples #47

@ckaran

Description

@ckaran

This is related to #37.

I just realized that it is unsound to use Arc, Rc, or references within an intrusive collection as I described in the README. The issue is that I switched modes from nodes point to Things (which own nodes) to nodes point to other nodes. If you own the node, but it is a part of a Thing, then when the owning Thing is dropped, you now have dangling pointer. Rust's compilation rules would normally prevent this from being a problem, but because of the amount of unsafe code that I already have to use, it is easy to make a mistake and bypass the compiler checks. I'm going to work on fixing this once I get a little more done on the singly linked list.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions