diff --git a/src/libstd/path.rs b/src/libstd/path.rs index ec96157547383..d0ae67017e9f1 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -1654,6 +1654,7 @@ impl AsRef for PathBuf { /// assert_eq!(extension, Some(OsStr::new("txt"))); /// ``` #[stable(feature = "rust1", since = "1.0.0")] +#[repr(C)] pub struct Path { inner: OsStr, }