[rust-dev] How to use the std::path?

2013-10-26 Thread Ramakrishnan Muthukrishnan
Hi, This is my first post to the list. Had been playing with Rust for the past one week and it is very nice so far. I hope this is the list for users of Rust as well (as opposed to developers of Rust). I apologise if it is the wrong place to ask newbie questions.. I am trying to follow the

Re: [rust-dev] How to use the std::path?

2013-10-26 Thread Ramakrishnan Muthukrishnan
On Sat, Oct 26, 2013 at 5:00 PM, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: Hi, This is my first post to the list. Had been playing with Rust for the past one week and it is very nice so far. I hope this is the list for users of Rust as well (as opposed to developers of Rust). I

Re: [rust-dev] How to use the std::path?

2013-10-26 Thread Brendan Zabarauskas
Using master is highly recommended. Treat the 0.* releases as snapshots as opposed to stable releases. ~Brendan On 26/10/2013, at 11:59 PM, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: On Sat, Oct 26, 2013 at 5:00 PM, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: Hi, This is

Re: [rust-dev] How to use the std::path?

2013-10-26 Thread Corey Richardson
Nope. Path is in the prelude. The problem is he is using 0.8, which didn't have `Path::new`. On Sat, Oct 26, 2013 at 8:16 AM, clonejo clon...@clnj.de wrote: It seems you never told the compiler that the Path struct is to be found in the path module. So either import the Path struct (use

Re: [rust-dev] Trait method self parameter type clashes with lifetime annotation required by the implementation

2013-10-26 Thread Oren Ben-Kiki
This is a good summary of the situation. There's one more twist to it though; I not only want both ownership and aliasing, I also want send-ability. That is, it should be possible to send the whole arena to another task. I think this rules out option 1 (though I don't know enough about lifetimes

Re: [rust-dev] rust issue 9382

2013-10-26 Thread Daniel Micay
On Sat, Oct 26, 2013 at 6:03 PM, Philip Herron redbr...@gcc.gnu.org wrote: Hey I started looking around and working on https://github.com/mozilla/rust/issues/9382 And the crash is: Assertion failed: ((i = FTy-getNumParams() || FTy-getParamType(i) == Args[i]-getType()) Calling a function

Re: [rust-dev] How to use the std::path?

2013-10-26 Thread Kevin Ballard
The path module was rewritten in between 0.8 and master. The documentation you are looking at only applies to master. I would strongly encourage you to upgrade. Anyway, as long as you're using 0.8, the correct documentation is http://static.rust-lang.org/doc/0.8/std/path/index.html. -Kevin