Skip to content

Commit 7b09d34

Browse files
committed
Fix rebase errors
1 parent fc9c853 commit 7b09d34

File tree

4 files changed

+4
-212
lines changed

4 files changed

+4
-212
lines changed

Cargo.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1548,9 +1548,9 @@ dependencies = [
15481548

15491549
[[package]]
15501550
name = "html5ever"
1551-
version = "0.29.1"
1551+
version = "0.29.2"
15521552
source = "registry+https://github.com/rust-lang/crates.io-index"
1553-
checksum = "3b7410cae13cbc75623c98ac4cbfd1f0bedddf3227afc24f370cf0f50a44a11c"
1553+
checksum = "9b958f80f0fde8601dc6c08685adc743eecaa046181cebd5a57551468dfc2ddc"
15541554
dependencies = [
15551555
"log",
15561556
"mac",
@@ -2134,9 +2134,9 @@ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
21342134

21352135
[[package]]
21362136
name = "markup5ever"
2137-
version = "0.14.1"
2137+
version = "0.15.0"
21382138
source = "registry+https://github.com/rust-lang/crates.io-index"
2139-
checksum = "c7a7213d12e1864c0f002f52c2923d4556935a43dec5e71355c2760e0f6e7a18"
2139+
checksum = "03a7b81dfb91586d0677086d40a6d755070e0799b71bb897485bac408dfd5c69"
21402140
dependencies = [
21412141
"log",
21422142
"phf",

library/std/src/sys/anonymous_pipe/unix.rs

-94
Original file line numberDiff line numberDiff line change
@@ -9,97 +9,3 @@ pub type AnonPipe = FileDesc;
99
pub fn pipe() -> io::Result<(AnonPipe, AnonPipe)> {
1010
anon_pipe().map(|(rx, wx)| (rx.into_inner(), wx.into_inner()))
1111
}
12-
13-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
14-
impl AsFd for PipeReader {
15-
fn as_fd(&self) -> BorrowedFd<'_> {
16-
self.0.as_fd()
17-
}
18-
}
19-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
20-
impl AsRawFd for PipeReader {
21-
fn as_raw_fd(&self) -> RawFd {
22-
self.0.as_raw_fd()
23-
}
24-
}
25-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
26-
impl From<PipeReader> for OwnedFd {
27-
/// Get the inner of `PipeReader` as a `FileDesc`.
28-
fn from(pipe: PipeReader) -> Self {
29-
FileDesc::into_inner(pipe.0)
30-
}
31-
}
32-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
33-
impl FromRawFd for PipeReader {
34-
unsafe fn from_raw_fd(raw_fd: RawFd) -> Self {
35-
unsafe { Self(FileDesc::from_raw_fd(raw_fd)) }
36-
}
37-
}
38-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
39-
impl IntoRawFd for PipeReader {
40-
fn into_raw_fd(self) -> RawFd {
41-
self.0.into_raw_fd()
42-
}
43-
}
44-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
45-
impl From<PipeReader> for Stdio {
46-
/// Create a `Stdio` from `PipeReader` as an `OwnedFd`.
47-
fn from(pipe: PipeReader) -> Self {
48-
Self::from(OwnedFd::from(pipe))
49-
}
50-
}
51-
52-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
53-
impl AsFd for PipeWriter {
54-
fn as_fd(&self) -> BorrowedFd<'_> {
55-
self.0.as_fd()
56-
}
57-
}
58-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
59-
impl AsRawFd for PipeWriter {
60-
fn as_raw_fd(&self) -> RawFd {
61-
self.0.as_raw_fd()
62-
}
63-
}
64-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
65-
impl From<PipeWriter> for OwnedFd {
66-
/// Get the inner of `PipeWriter` as `FileDesc`.
67-
fn from(pipe: PipeWriter) -> Self {
68-
FileDesc::into_inner(pipe.0)
69-
}
70-
}
71-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
72-
impl FromRawFd for PipeWriter {
73-
unsafe fn from_raw_fd(raw_fd: RawFd) -> Self {
74-
unsafe { Self(FileDesc::from_raw_fd(raw_fd)) }
75-
}
76-
}
77-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
78-
impl IntoRawFd for PipeWriter {
79-
fn into_raw_fd(self) -> RawFd {
80-
self.0.into_raw_fd()
81-
}
82-
}
83-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
84-
impl From<PipeWriter> for Stdio {
85-
/// Create a `Stdio` from a `OwnedFd` of `PipeWriter`.
86-
fn from(pipe: PipeWriter) -> Self {
87-
Self::from(OwnedFd::from(pipe))
88-
}
89-
}
90-
91-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
92-
impl From<OwnedFd> for PipeReader {
93-
/// Create a `PipeReader` from `OwnedFd` inner.
94-
fn from(owned_fd: OwnedFd) -> Self {
95-
Self(FileDesc::from_inner(owned_fd))
96-
}
97-
}
98-
99-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
100-
impl From<OwnedFd> for PipeWriter {
101-
/// Create a `PipeWriter` from `OwnedFd` inner.
102-
fn from(owned_fd: OwnedFd) -> Self {
103-
Self(FileDesc::from_inner(owned_fd))
104-
}
105-
}

library/std/src/sys/anonymous_pipe/unsupported.rs

-16
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,3 @@ pub use crate::sys::pipe::AnonPipe;
55
pub fn pipe() -> io::Result<(AnonPipe, AnonPipe)> {
66
Err(io::Error::UNSUPPORTED_PLATFORM)
77
}
8-
9-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
10-
impl From<PipeReader> for Stdio {
11-
/// Diverge `PipeReader`s inner into a `Stdio`.
12-
fn from(pipe: PipeReader) -> Self {
13-
pipe.0.diverge()
14-
}
15-
}
16-
17-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
18-
impl From<PipeWriter> for Stdio {
19-
/// Diverge `PipeWriter`s inner into a `Stdio`.
20-
fn from(pipe: PipeWriter) -> Self {
21-
pipe.0.diverge()
22-
}
23-
}

library/std/src/sys/anonymous_pipe/windows.rs

-98
Original file line numberDiff line numberDiff line change
@@ -17,101 +17,3 @@ pub fn pipe() -> io::Result<(AnonPipe, AnonPipe)> {
1717
unsafe { Ok((Handle::from_raw_handle(read_pipe), Handle::from_raw_handle(write_pipe))) }
1818
}
1919
}
20-
21-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
22-
impl AsHandle for PipeReader {
23-
fn as_handle(&self) -> BorrowedHandle<'_> {
24-
self.0.as_handle()
25-
}
26-
}
27-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
28-
impl AsRawHandle for PipeReader {
29-
fn as_raw_handle(&self) -> RawHandle {
30-
self.0.as_raw_handle()
31-
}
32-
}
33-
34-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
35-
impl FromRawHandle for PipeReader {
36-
unsafe fn from_raw_handle(raw_handle: RawHandle) -> Self {
37-
unsafe { Self(Handle::from_raw_handle(raw_handle)) }
38-
}
39-
}
40-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
41-
impl IntoRawHandle for PipeReader {
42-
fn into_raw_handle(self) -> RawHandle {
43-
self.0.into_raw_handle()
44-
}
45-
}
46-
47-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
48-
impl From<PipeReader> for OwnedHandle {
49-
/// Get the inner `OwnedHandle` of `PipeReader`.
50-
fn from(pipe: PipeReader) -> Self {
51-
Handle::into_inner(pipe.0)
52-
}
53-
}
54-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
55-
impl From<PipeReader> for Stdio {
56-
/// Create a `Stdio` with `PipeReader`s inner handle.
57-
fn from(pipe: PipeReader) -> Self {
58-
Self::from(OwnedHandle::from(pipe))
59-
}
60-
}
61-
62-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
63-
impl AsHandle for PipeWriter {
64-
fn as_handle(&self) -> BorrowedHandle<'_> {
65-
self.0.as_handle()
66-
}
67-
}
68-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
69-
impl AsRawHandle for PipeWriter {
70-
fn as_raw_handle(&self) -> RawHandle {
71-
self.0.as_raw_handle()
72-
}
73-
}
74-
75-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
76-
impl FromRawHandle for PipeWriter {
77-
unsafe fn from_raw_handle(raw_handle: RawHandle) -> Self {
78-
unsafe { Self(Handle::from_raw_handle(raw_handle)) }
79-
}
80-
}
81-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
82-
impl IntoRawHandle for PipeWriter {
83-
fn into_raw_handle(self) -> RawHandle {
84-
self.0.into_raw_handle()
85-
}
86-
}
87-
88-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
89-
impl From<PipeWriter> for OwnedHandle {
90-
/// Get the inner `OwnedHandle` of `PipeWriter`.
91-
fn from(pipe: PipeWriter) -> Self {
92-
Handle::into_inner(pipe.0)
93-
}
94-
}
95-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
96-
impl From<PipeWriter> for Stdio {
97-
/// Make a `Stdio` with `PipeWriter`s inner handle.
98-
fn from(pipe: PipeWriter) -> Self {
99-
Self::from(OwnedHandle::from(pipe))
100-
}
101-
}
102-
103-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
104-
impl From<OwnedHandle> for PipeReader {
105-
/// Make a `PipeReader` with `OwnedHandle` as it's inner handle.
106-
fn from(owned_handle: OwnedHandle) -> Self {
107-
Self(Handle::from_inner(owned_handle))
108-
}
109-
}
110-
111-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
112-
impl From<OwnedHandle> for PipeWriter {
113-
/// Make a `PipeWriter` with `OwnedHandle` as it's inner handle.
114-
fn from(owned_handle: OwnedHandle) -> Self {
115-
Self(Handle::from_inner(owned_handle))
116-
}
117-
}

0 commit comments

Comments
 (0)