Re: [rust-dev] Cap'n Proto and region variables

2013-07-26 Thread Erick Tryzelaar
David: That error seems pretty similar to this one ( https://github.com/mozilla/rust/issues/7331), so I added your code as another example. On Wed, Jul 24, 2013 at 4:26 PM, David Renshaw dwrens...@gmail.com wrote: Looks like it's broken at the moment. If I try to compile this program: trait

Re: [rust-dev] Cap'n Proto and region variables

2013-07-26 Thread Erick Tryzelaar
Yep, you are right. I think this is going to need #7331 fixed to work for you. On Fri, Jul 26, 2013 at 10:28 AM, David Renshaw dwrens...@gmail.com wrote: I don't think that workaround helps in my case. The next thing I want is a struct: struct SegmentReader'self { data : 'self [u8] }

Re: [rust-dev] Cap'n Proto and region variables

2013-07-24 Thread Niko Matsakis
On Sun, Jul 21, 2013 at 12:44:24PM -0400, David Renshaw wrote: Hello everyone, I'm playing around with a Rust implementation for Cap'n Proto. Check it out: http://github.com/dwrensha/capnproto-rust . I welcome any comments or contributions. The reason I'm sharing this project with you now

Re: [rust-dev] Cap'n Proto and region variables

2013-07-24 Thread David Renshaw
Looks like it's broken at the moment. If I try to compile this program: trait Constructable'self { fn construct(v : 'self[u8]) - Self; } fn main() { } I get this error: error: internal compiler error: ty::Region#subst(): Reference to self region when given substs with no self region: