diff options
Diffstat (limited to 'src/libstd/path.rs')
| -rw-r--r-- | src/libstd/path.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index e8297c20af3..7631a9a44bb 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -1709,6 +1709,7 @@ impl Path { /// let path_buf = Path::new("foo.txt").to_path_buf(); /// assert_eq!(path_buf, std::path::PathBuf::from("foo.txt")); /// ``` + #[rustc_conversion_suggestion] #[stable(feature = "rust1", since = "1.0.0")] pub fn to_path_buf(&self) -> PathBuf { PathBuf::from(self.inner.to_os_string()) |
