I’ve latest night build version of rustic:

libstd: rustc -v                                            
rustc 0.10-pre-nightly (ff64381 2014-03-28 00:26:52 -0700)
host: x86_64-apple-darwin

Unfortunately, same error with `--cfg stage2`:

libstd: rustc --cfg stage2 lib.rs                           
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!
num/int.rs:27:33: 27:53 note: expansion site


Best regards,
Alexander


On 30 Mar 2014, at 16:02, Daniel Micay <danielmi...@gmail.com> wrote:

> 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.
> 
> 

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to