diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-06-24 18:09:27 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-07-29 20:44:42 +0300 |
| commit | dbc13fb309f3a1539e8bb1cdeeb5fbb2e3eaaa43 (patch) | |
| tree | ae397af7bc2ae5860b59119b98042abae376468d /library/std/src/ffi | |
| parent | afabc583f7f646d45f506263a1c331383ebdc252 (diff) | |
| download | rust-dbc13fb309f3a1539e8bb1cdeeb5fbb2e3eaaa43.tar.gz rust-dbc13fb309f3a1539e8bb1cdeeb5fbb2e3eaaa43.zip | |
Sparkle some attributes over `CloneToUninit` stuff
Diffstat (limited to 'library/std/src/ffi')
| -rw-r--r-- | library/std/src/ffi/os_str.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/ffi/os_str.rs b/library/std/src/ffi/os_str.rs index f68ea3c562a..918eec2d0d8 100644 --- a/library/std/src/ffi/os_str.rs +++ b/library/std/src/ffi/os_str.rs @@ -1266,6 +1266,7 @@ impl Clone for Box<OsStr> { #[unstable(feature = "clone_to_uninit", issue = "126799")] unsafe impl CloneToUninit for OsStr { + #[inline] #[cfg_attr(debug_assertions, track_caller)] unsafe fn clone_to_uninit(&self, dst: *mut Self) { // SAFETY: we're just a wrapper around a platform-specific Slice |
