diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/lib.rs | 2 | ||||
| -rw-r--r-- | src/libstd/path.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 29ea87aaf78..0d4e310480d 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -229,7 +229,7 @@ // Turn warnings into errors, but only after stage0, where it can be useful for // code to emit warnings during language transitions -#![deny(warnings)] +#![cfg_attr(not(stage0), deny(warnings))] // std may use features in a platform-specific way #![allow(unused_features)] diff --git a/src/libstd/path.rs b/src/libstd/path.rs index bed9efcb846..6328e4a8447 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -1702,6 +1702,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()) |
