Work around ICE
This commit is contained in:
@@ -70,9 +70,7 @@ pub type TimerToken = service::TimerToken;
|
||||
pub type StreamToken = service::StreamToken;
|
||||
pub type IoContext<'s, M> = service::IoContext<'s, M>;
|
||||
pub type IoService<M> = service::IoService<M>;
|
||||
pub const USER_TOKEN_START: usize = service::USER_TOKEN;
|
||||
|
||||
|
||||
//pub const USER_TOKEN_START: usize = service::USER_TOKEN; // TODO: ICE in rustc 1.7.0-nightly (49c382779 2016-01-12)
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
||||
@@ -13,7 +13,7 @@ pub type StreamToken = usize;
|
||||
const MAX_USER_TIMERS: usize = 32;
|
||||
const USER_TIMER: usize = 0;
|
||||
const LAST_USER_TIMER: usize = USER_TIMER + MAX_USER_TIMERS - 1;
|
||||
pub const USER_TOKEN: usize = LAST_USER_TIMER + 1;
|
||||
//const USER_TOKEN: usize = LAST_USER_TIMER + 1;
|
||||
|
||||
/// Messages used to communicate with the event loop from other threads.
|
||||
pub enum IoMessage<Message> where Message: Send + Sized {
|
||||
|
||||
Reference in New Issue
Block a user