Skip to content

Conversation

mystor
Copy link
Collaborator

@mystor mystor commented Feb 3, 2017

In order to do this, when --features nightly is not enabled:

  • There is no default implementation of Finalize, meaning that it
    must be manually implemented (for example, by the new
    #[derive(Finalize)] custom derive implementation).
  • There is no support for CoerceUnsize so it is hard (impossible?) to
    create Gc<T> where T: ?Sized.
  • The tree now contains dummy no-op implementations of Shared<T> and
    NotNull<T>, which are used in stable rust.

Fixes #46

In order to do this, when `--features nightly` is not enabled:
 - There is no default implementation of `Finalize`, meaning that it
 must be manually implemented (for example, by the new
 `#[derive(Finalize)]` custom derive implementation).
 - There is no support for `CoerceUnsize` so it is hard (impossible?) to
 create `Gc<T> where T: ?Sized`.
 - The tree now contains dummy no-op implementations of `Shared<T>` and
 `NotNull<T>`, which are used in stable rust.

Fixes #46
@mystor mystor requested a review from Manishearth February 3, 2017 02:04
@Manishearth
Copy link
Owner

\o/

@Manishearth Manishearth deleted the stable branch February 3, 2017 21:47
andersk added a commit to andersk/rust-gc that referenced this pull request Feb 1, 2021
I converted this from feature(optin_builtin_traits) in Manishearth#111, but in
fact this has been unused since Manishearth#51 removed the explicit negative
impls for !Send and !Sync.

Signed-off-by: Anders Kaseorg <[email protected]>
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.

2 participants