-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Replace NonCopyable usage with NoPod #12016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@huonw r? |
|
||
#[test] | ||
fn test_replace() { | ||
let mut x = Some(NonCopyable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this testing replace
, not NonCopyable
?
Maybe change the test to something like Some(~"foo")
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
erm, good catch!
Is it just me, or is "NoPod" less readable than "NonCopyable" ? :( (I guess I did not mind it or notice so much when it was buried in the rest of PR #11768 but here it seems to bother me.) I would have been fine if |
@pnkfelix you mean just having a |
Also, FWIW, it doesn't bothers me much. TBH! |
@flaper87 yes, a field and deleting the destructor is what I meant. (In my earlier comment I had forgotten the current implementation strategy for Anyway I was just voicing my personal taste, I do not care enough about the readability issue here to try to block your change. After all my own taste might change in time. |
cc #10834