Skip to content

A late diplomatic recognition that most primitive types impl Copy. #37103

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

Closed
wants to merge 1 commit into from

Conversation

liigo
Copy link
Contributor

@liigo liigo commented Oct 12, 2016

For types i8 u8 i16 u16 i32 u32 i64 u64 isize usize f32 f64 bool char,
and (), they already implemented Copy implicitly since Rust 1.0.
But why not make things explicit?

For types i8 u8 i16 u16 i32 u32 i64 u64 isize usize f32 f64 bool char,
and (), they already implemented `Copy` *implicitly* since Rust 1.0.
But why not make things explicit?
@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@liigo
Copy link
Contributor Author

liigo commented Oct 12, 2016

Weird coherence rule:

error[E0206]: the trait `Copy` may not be implemented for this type
   --> src/libcore/marker.rs:271:17
    |
271 | copy_impl! { i8 u8 i16 u16 i32 u32 i64 u64 isize usize f32 f64 bool char }
    | ----------------^^--------------------------------------------------------
    | |               |
    | |               type is not a structure or enumeration
    | in this macro invocation

@liigo
Copy link
Contributor Author

liigo commented Oct 25, 2016

cc #25893

@liigo
Copy link
Contributor Author

liigo commented Nov 10, 2016

Closing, no more investment

@liigo liigo closed this Nov 10, 2016
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.

3 participants