mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
feat: show errors from cargo metadata
and initial cargo check
in the status bar
closes #3155
This commit is contained in:
parent
9ec5e6e4fd
commit
de33702784
3 changed files with 63 additions and 13 deletions
|
@ -178,6 +178,7 @@ where
|
|||
start..start + len
|
||||
}
|
||||
|
||||
#[repr(transparent)]
|
||||
pub struct JodChild(pub process::Child);
|
||||
|
||||
impl ops::Deref for JodChild {
|
||||
|
@ -200,6 +201,13 @@ impl Drop for JodChild {
|
|||
}
|
||||
}
|
||||
|
||||
impl JodChild {
|
||||
pub fn into_inner(self) -> process::Child {
|
||||
// SAFETY: repr transparent
|
||||
unsafe { std::mem::transmute::<JodChild, process::Child>(self) }
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue