diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-07-06 02:33:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-06 02:33:16 +0900 |
| commit | 470ed70a86c3a77b4643300d022fd79cf43d97cc (patch) | |
| tree | a016cbf6eb5658347509ae95d4f3ce04698cc5e9 /library/std/src/fs.rs | |
| parent | 2bc7d4d70acc2fb317c26600e59094c510ac528b (diff) | |
| parent | e2536bb271ead2228f5a7c54db043fe681d61b3f (diff) | |
| download | rust-470ed70a86c3a77b4643300d022fd79cf43d97cc.tar.gz rust-470ed70a86c3a77b4643300d022fd79cf43d97cc.zip | |
Rollup merge of #86852 - Amanieu:remove_doc_aliases, r=joshtriplett
Remove some doc aliases As per the new doc alias policy in https://github.com/rust-lang/std-dev-guide/pull/25, this removes some controversial doc aliases: - `malloc`, `alloc`, `realloc`, etc. - `length` (alias for `len`) - `delete` (alias for `remove` in collections and also file/directory deletion) r? `@joshtriplett`
Diffstat (limited to 'library/std/src/fs.rs')
| -rw-r--r-- | library/std/src/fs.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 36910143dc9..a9ce814e2ec 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -1551,7 +1551,6 @@ impl AsInner<fs_imp::DirEntry> for DirEntry { /// Ok(()) /// } /// ``` -#[doc(alias = "delete")] #[stable(feature = "rust1", since = "1.0.0")] pub fn remove_file<P: AsRef<Path>>(path: P) -> io::Result<()> { fs_imp::unlink(path.as_ref()) @@ -1986,7 +1985,6 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> { /// Ok(()) /// } /// ``` -#[doc(alias = "delete")] #[stable(feature = "rust1", since = "1.0.0")] pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> { fs_imp::rmdir(path.as_ref()) @@ -2024,7 +2022,6 @@ pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> { /// Ok(()) /// } /// ``` -#[doc(alias = "delete")] #[stable(feature = "rust1", since = "1.0.0")] pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> { fs_imp::remove_dir_all(path.as_ref()) |
