Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDisallow the use of `Drop` as a bound #20151
Comments
This comment has been minimized.
This comment has been minimized.
|
Why should |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
This should probably live in rust-lang/rfcs, btw. |
This comment has been minimized.
This comment has been minimized.
|
We don’t have a strict set of rules about when to put issues in the RFCs repo, so I wasn’t sure about where to put this issue. It’s a pretty minor thing, though—no code should be using |
This comment has been minimized.
This comment has been minimized.
|
I can't think of a reason you'd want it as a bound but I don't see why that means it shouldn't be legal. I can't think of a reason you'd use StrPrelude as a bound either, but it's still not disallowed. It would be better to go in the other direction and make |
This comment has been minimized.
This comment has been minimized.
|
But we might want to allow |
This comment has been minimized.
This comment has been minimized.
|
There's nothing stopping people from writing a new trait called |
kmcallister
added
A-typesystem
A-traits
labels
Jan 16, 2015
This comment has been minimized.
This comment has been minimized.
|
These days, a change like this would require an RFC. @P1start if you still feel strongly about this, please file one! |
P1start commentedDec 23, 2014
It’s pretty useless to do so, and we might find a use for it post-1.0 for something like
&out/&uninitthat can’t be dropped.