3 ms·
I don't get why we don't just use the same magic that `?Sized` uses, to make it opt-out in terms of mental overhead for the developer, but opt-in in terms of wh
by creatonez 7y ago
I don't get why we don't just use the same magic that `?Sized` uses, to make it opt-out in terms of mental overhead for the developer, but opt-in in terms of what's going on under the hood:
#[derive(!Move)]
- jeltz 7y agoMaybe this wont work for Move speficially, but I like this a solution for the general problem of skipping default traits.
- withoutboats 7y agoThe syntax is different but Rust has this feature- its called auto traits, and its how we handle traits related to threadsafety. Its not a solution for what Pin solves because the whole notion that a type might be moveable or not moveable is actually a misstatement of the problem that Pin is solving.