Re: [rust-dev] Rust build farm

2015-01-01 Thread Kai Noda
Hi Tom, There is http://buildbot.rust-lang.org/ but it only checks "make check" perhaps for saving CPU time. I filed an issue about it but there's no progress so far: https://github.com/rust-lang/rust/issues/19698 Regards, Kai 野田 開 2014-12-29 0:29 GMT+08:00 Tom Browder : > I notice bugs re

Re: [rust-dev] undefined reference to `str::str.StrPrelude::bytes::deref::hf4838b8c6b01fc6aSGs

2014-12-21 Thread Kai Noda
Hi Kashyap, I have no idea on what troubles you, but "rustc -Z print-link-args" might print something useful for you. Regards, Kai 野田 開 2014-12-18 11:19 GMT+08:00 C K Kashyap : > > Thanks Cody, > > I retried by uninstalling and installing rustc using rustp script and then > downloading the ni

Re: [rust-dev] Rust Guide 22 and 23

2014-12-05 Thread Kai Noda
Hi Peter, I would do in this way: use std::fmt::Show; use std::num::{mod, NumCast}; fn inverse(x: T) -> Result { let local = num::cast(x).expect("fail to cast into f64"); if 0. == local { Err("x cannot be zero!".to_string()); } Ok(1. / local) } fn dotest (x: T) { println!("1/{}

Re: [rust-dev] File Descriptors

2014-11-18 Thread Kai Noda
Hi Nikos, std::sys is private and only for internal use in libstd as of now. It was broken in the course of the Great Runtime Overhaul https://github.com/rust-lang/rust/pull/18557 Stay tuned for updates from aturon... Regards, Kai 野田 開 2014-11-19 7:13 GMT+08:00 Nikos Vasilakis : > Hi every

Re: [rust-dev] Compiling static binary

2014-11-15 Thread Kai Noda
Hi Paul, I managed to get it working by manually tweaking linker options (this mustn't be the right way to go...) Rust devs: what is the official way to do this? Simply adding "-C link-args=-static" doesn't work (see my second transcript) $ cat hello-rust.rs fn main() { println!("Hello, wor

Re: [rust-dev] Bug in lifetime inference?

2014-09-10 Thread Kai Noda
ailing code worked a week or so ago. Similar issue in that I can > make it work by giving an explicit type for the literal array. > > David > > On Sat, Aug 30, 2014 at 04:52:00PM +0800, Kai Noda wrote: > >> Hi Rusters, >> I'm very new to Rust, so I'd like you

[rust-dev] Bug in lifetime inference?

2014-08-30 Thread Kai Noda
Hi Rusters, I'm very new to Rust, so I'd like you to check if this is really a compiler bug or not. fn main() { let s1 = &[0i]; { let s2 = &[0i]; let s3 = if true { s1 } else { s2 }; }; } http://is.gd/NCeGpl :5:19: 5:23 error: borrowed value does not live long enough

Re: [rust-dev] Can Rust Git HEAD build Git HEAD itself?

2014-08-29 Thread Kai Noda
ith nightly is essentially just a coincidence that > the versions match closely enough (the Rust nightly is 12 hours behind HEAD > on average, and so may be missing the breaking commits). > > > In summary: local-rust failing is not a bug, it's just a consequence of us > boots

[rust-dev] Can Rust Git HEAD build Git HEAD itself?

2014-08-29 Thread Kai Noda
Hi Rustlers, When I build Rust Git HEAD with the binary package from rust-lang.org in this way, $ CC=gcc47 CXX=g++47 ./configure --prefix=$HOME/local/rust --enable-valgrind --enable-local-rust --local-rust-root=$HOME/local/rust-nightly-x86_64-unknown-linux-gnu/ $ make -j8 install it (usually) wo