diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2017-12-08 19:28:13 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2017-12-08 19:28:13 +0100 |
| commit | c5eff5442ca963e20225c8229aff7be28f65a0a6 (patch) | |
| tree | 3afc0bcb670d2f4a93c12a255c0d8a7877f54e14 /src/libstd | |
| parent | 1cf11b3d0bb0c448b221953d0227a28306d8e297 (diff) | |
| download | rust-c5eff5442ca963e20225c8229aff7be28f65a0a6.tar.gz rust-c5eff5442ca963e20225c8229aff7be28f65a0a6.zip | |
fs::{read, read_string, write}: add tracking issue number
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index a5884f75e0a..f40aed2478a 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -244,7 +244,7 @@ pub struct DirBuilder { /// # Ok(()) /// # } /// ``` -#[unstable(feature = "fs_read_write", issue = /* FIXME */ "0")] +#[unstable(feature = "fs_read_write", issue = "46588")] pub fn read<P: AsRef<Path>>(path: P) -> io::Result<Vec<u8>> { let mut bytes = Vec::new(); File::open(path)?.read_to_end(&mut bytes)?; @@ -285,7 +285,7 @@ pub fn read<P: AsRef<Path>>(path: P) -> io::Result<Vec<u8>> { /// # Ok(()) /// # } /// ``` -#[unstable(feature = "fs_read_write", issue = /* FIXME */ "0")] +#[unstable(feature = "fs_read_write", issue = "46588")] pub fn read_string<P: AsRef<Path>>(path: P) -> io::Result<String> { let mut string = String::new(); File::open(path)?.read_to_string(&mut string)?; @@ -315,7 +315,7 @@ pub fn read_string<P: AsRef<Path>>(path: P) -> io::Result<String> { /// # Ok(()) /// # } /// ``` -#[unstable(feature = "fs_read_write", issue = /* FIXME */ "0")] +#[unstable(feature = "fs_read_write", issue = "46588")] pub fn write<P: AsRef<Path>, C: AsRef<[u8]>>(path: P, contents: C) -> io::Result<()> { File::create(path)?.write_all(contents.as_ref()) } |
