about summary refs log tree commit diff
path: root/library/std/src/sys/sgx/stdio.rs
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-08-20 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-08-21 13:17:20 +0200
commit4a00421ba4daae419d06b67bd1bb46d7930b0dc7 (patch)
treed047e2c2fce8a6171532a1671e1363227bbd4eed /library/std/src/sys/sgx/stdio.rs
parent479c23bb493e4ea801c125cfc54e70723a9aeeb5 (diff)
downloadrust-4a00421ba4daae419d06b67bd1bb46d7930b0dc7.tar.gz
rust-4a00421ba4daae419d06b67bd1bb46d7930b0dc7.zip
Make raw standard stream constructors const
Diffstat (limited to 'library/std/src/sys/sgx/stdio.rs')
-rw-r--r--library/std/src/sys/sgx/stdio.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sys/sgx/stdio.rs b/library/std/src/sys/sgx/stdio.rs
index d771a39ea85..49f44f9f498 100644
--- a/library/std/src/sys/sgx/stdio.rs
+++ b/library/std/src/sys/sgx/stdio.rs
@@ -19,7 +19,7 @@ fn with_std_fd<F: FnOnce(&FileDesc) -> R, R>(fd: abi::Fd, f: F) -> R {
 }
 
 impl Stdin {
-    pub fn new() -> Stdin {
+    pub const fn new() -> Stdin {
         Stdin(())
     }
 }
@@ -31,7 +31,7 @@ impl io::Read for Stdin {
 }
 
 impl Stdout {
-    pub fn new() -> Stdout {
+    pub const fn new() -> Stdout {
         Stdout(())
     }
 }
@@ -47,7 +47,7 @@ impl io::Write for Stdout {
 }
 
 impl Stderr {
-    pub fn new() -> Stderr {
+    pub const fn new() -> Stderr {
         Stderr(())
     }
 }