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
impl<TStream,TCtx> endpoint::Endpoint<TCtx>forPipe<TStream>whereTStream:StepStream + 'static,TCtx: endpoint::EndpointRegistrar + endpoint::EventSender<TEvent=pipe::Event>{//ICE appears when inserting the below methodfnready(&mutself,ctx:&mutContext<PipeEvt>,events: mio::EventSet){self.apply(|s| s.ready(ctx, events))}}// Here everything is working fine but I'm not satisfied with the designimpl<T:StepStream>Endpoint<PipeCmd,PipeEvt>forPipe<T>{fnready(&mutself,ctx:&mutContext<PipeEvt>,events: mio::EventSet){self.apply(|s| s.ready(ctx, events))}fnprocess(&mutself,ctx:&mutContext<PipeEvt>,cmd:PipeCmd){match cmd {PipeCmd::Open => self.apply(|s| s.open(ctx)),PipeCmd::Close => self.apply(|s| s.close(ctx)),PipeCmd::Send(msg) => self.apply(|s| s.send(ctx, msg)),PipeCmd::Recv => self.apply(|s| s.recv(ctx))}}}
I expected to see this happen: compiler error, because it was a just a copy/paste and laziness to actually look at it.
rustc panic !
I tried this code:
I expected to see this happen: compiler error, because it was a just a copy/paste and laziness to actually look at it.
Instead, this happened: ICE
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: