Skip to content

Commit 0167bbb

Browse files
committed
async only on x86
1 parent 92bed92 commit 0167bbb

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

src/shims/unix/linux/fs/epoll.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ impl FileDescriptor for Epoll {
2929
Ok(Box::new(self.clone()))
3030
}
3131

32+
fn is_tty(&self) -> bool {
33+
false
34+
}
35+
3236
fn close<'tcx>(
3337
self: Box<Self>,
3438
_communicate_allowed: bool,

src/shims/unix/linux/fs/event.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ impl FileDescriptor for Event {
1818
Ok(Box::new(Event { val: self.val }))
1919
}
2020

21+
fn is_tty(&self) -> bool {
22+
false
23+
}
24+
2125
fn write<'tcx>(
2226
&self,
2327
_communicate_allowed: bool,

src/shims/unix/linux/fs/socketpair.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ impl FileDescriptor for SocketPair {
1616
Ok(Box::new(SocketPair))
1717
}
1818

19+
fn is_tty(&self) -> bool {
20+
false
21+
}
22+
1923
fn close<'tcx>(
2024
self: Box<Self>,
2125
_communicate_allowed: bool,

tests/pass-dep/tokio_mvp.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
//@only-target-linux: the errors differ too much between platforms
33

44
#[tokio::main]
5+
#[cfg(target_arch = "x86_64")]
56
async fn main() {}
7+
8+
#[cfg(target_arch = "not_x86_64")]
9+
fn main() {}

0 commit comments

Comments
 (0)