You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code snippet gets an internal compiler error when encoding metadata. It should probably be rejected earlier on, since the innermost recv function doesn't have type parameters. Adding <T: send> to the inner function makes it compile successfully.
mod stream {
enum stream<T: send> { send(T, server::stream<T>), }
mod server {
impl recv<T: send> for stream<T> {
fn recv() -> extern fn(+stream<T>) -> stream::stream<T> {
fn recv(+pipe: stream<T>) -> stream::stream<T> {
option::unwrap(pipes::recv(pipe))
}
recv
}
}
type stream<T: send> = pipes::recv_packet<stream::stream<T>>;
}
}
Activity
catamorphism commentedon Jul 1, 2012
I'll take a look.
catamorphism commentedon Jul 10, 2012
resolve3 fixes this. I'll check in a test case.
catamorphism commentedon Jul 10, 2012
Added the test case: 78088fb
Auto merge of rust-lang#2766 - RalfJung:scfix, r=RalfJung
Merge pull request rust-lang#2766 from reddevilmidzy/auto-build
Merge pull request rust-lang#2766 from gilescope/windows-build