On 30/03/14 08:00 AM, Alexander Stavonin wrote:
> Hi!
> 
> I’m trying to build libstd like separate library (long term goal is
>  Rust + libstd in kernel drivers). So, I made a copy of lib std and
> compiling it:
> 
> 
> /num/int_macros.rs:231:1: 231:19 error: failed to find an implementation
> of trait kinds::Copy for int/
> /num/int_macros.rs:231 impl Int for $T {}/
> /                      ^~~~~~~~~~~~~~~~~~/
> /num/int_macros.rs:14:1: 500:3 note: in expansion of int_module!/
> 
> 
> Should I add some additional compiler flags except /rustic lib.rs/?
> 
> Best regards,
> Alexander

You need to pass `--cfg stage2` if you have an up-to-date Rust compiler.
Otherwise, you're compiling the code for the snapshot compiler, and
that's an older dialect of Rust.


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to