Skip to content

Allow trait objects with methods on self: Gc<Self> on nightly#162

Merged
Manishearth merged 2 commits into
Manishearth:masterfrom
andersk:dispatch-from-dyn
Jan 27, 2023
Merged

Allow trait objects with methods on self: Gc<Self> on nightly#162
Manishearth merged 2 commits into
Manishearth:masterfrom
andersk:dispatch-from-dyn

Conversation

@andersk

@andersk andersk commented Jan 27, 2023

Copy link
Copy Markdown
Collaborator

This requires #![feature(arbitrary_self_types)] and nightly 2023-01-27 or later for rust-lang/rust#97373.

The Trace constraint is still needed when allocating or deallocating
Gc objects, and when mutably borrowing a GcCell, but isn’t strictly
needed elsewhere.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This requires #![feature(arbitrary_self_types)] and nightly 2023-01-27
or later for rust-lang/rust#97373.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@Manishearth
Manishearth merged commit de3769d into Manishearth:master Jan 27, 2023
@andersk andersk mentioned this pull request Jun 29, 2023
@andersk
andersk deleted the dispatch-from-dyn branch June 30, 2023 00:20
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