Skip to content
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

Describe implicit copyability in documentation #7774

Closed
huonw opened this issue Jul 13, 2013 · 2 comments
Closed

Describe implicit copyability in documentation #7774

huonw opened this issue Jul 13, 2013 · 2 comments

Comments

@huonw
Copy link
Member

huonw commented Jul 13, 2013

Neither the tutorial nor manual mention the implicit copyability in any detail. The tutorial should possibly at least mention it, and the manual should describe the conditions required for it.

The rule is possibly "primitive type like int, float, () etc, or a struct/enum that contains only implicitly copyable types, and doesn't have a destructor", but I'm not sure, so this should be checked with someone knowledgeable.

@brendanzab
Copy link
Member

Way to steal my issue. I was so gonna post this >:[

/jk

@thestinger
Copy link
Contributor

There isn't really a concept of implicit copyable, as it's just a term some people use to describe types that are not moved. I added documentation to the tutorial about this, and it is covered in the manual.

http://static.rust-lang.org/doc/master/tutorial.html#move-semantics
http://static.rust-lang.org/doc/master/rust.html#moved-and-copied-types

flip1995 pushed a commit to flip1995/rust that referenced this issue Oct 7, 2021
Useless exponent

Closes rust-lang#7745

I'm open to some thoughts on dropping the exponents on suggestions when it's zero. I personally don't see any problem on this.

changelog: [`useless_exponent`] suggestion drops exponent when exponent value is zero
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

No branches or pull requests

3 participants