We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5afb0 commit b5b1d06Copy full SHA for b5b1d06
src/libstd/ffi/os_str.rs
@@ -173,7 +173,7 @@ impl ops::Deref for OsString {
173
}
174
175
176
-#[stable(feature = "rust1", since = "1.9.0")]
+#[stable(feature = "osstring_default", since = "1.9.0")]
177
impl Default for OsString {
178
#[inline]
179
fn default() -> OsString {
@@ -310,11 +310,11 @@ impl OsStr {
310
311
312
313
314
impl<'a> Default for &'a OsStr {
315
316
fn default() -> &'a OsStr {
317
- ""
+ OsStr::new("")
318
319
320
0 commit comments