Skip to content

Commit a01d06d

Browse files
committed
change request id to u32 to make powerpc happy
1 parent 58f2e17 commit a01d06d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/proc-macro-api/src/bidirectional_protocol/msg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{
88
legacy_protocol::msg::{FlatTree, Message, PanicMessage, ServerConfig},
99
};
1010

11-
pub type RequestId = u64;
11+
pub type RequestId = u32;
1212

1313
#[derive(Debug, Serialize, Deserialize)]
1414
pub struct Envelope {

crates/proc-macro-api/src/process.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{
66
process::{Child, ChildStdin, ChildStdout, Command, Stdio},
77
sync::{
88
Arc, Mutex, OnceLock,
9-
atomic::{AtomicU64, Ordering},
9+
atomic::{AtomicU32, Ordering},
1010
},
1111
};
1212

@@ -36,7 +36,7 @@ pub(crate) struct ProcMacroServerProcess {
3636
protocol: Protocol,
3737
/// Populated when the server exits.
3838
exited: OnceLock<AssertUnwindSafe<ServerError>>,
39-
next_request_id: AtomicU64,
39+
next_request_id: AtomicU32,
4040
}
4141

4242
#[derive(Debug, Clone)]
@@ -94,7 +94,7 @@ impl ProcMacroServerProcess {
9494
version: 0,
9595
protocol: protocol.clone(),
9696
exited: OnceLock::new(),
97-
next_request_id: AtomicU64::new(1),
97+
next_request_id: AtomicU32::new(1),
9898
})
9999
};
100100
let mut srv = create_srv()?;

0 commit comments

Comments
 (0)