mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-28 06:14:22 +00:00
parent
9b29573a4b
commit
c61fee6d55
3 changed files with 28 additions and 3 deletions
|
@ -236,3 +236,19 @@ mod imp {
|
|||
slice::from_raw_parts_mut(v.as_mut_ptr().add(v.len()), v.capacity() - v.len())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
mod imp {
|
||||
use std::{
|
||||
io,
|
||||
process::{ChildStderr, ChildStdout},
|
||||
};
|
||||
|
||||
pub(crate) fn read2(
|
||||
_out_pipe: ChildStdout,
|
||||
_err_pipe: ChildStderr,
|
||||
_data: &mut dyn FnMut(bool, &mut Vec<u8>, bool),
|
||||
) -> io::Result<()> {
|
||||
panic!("no processes on wasm")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue