From ea0a31ff0c19c14583239848a7737e453aef3cee Mon Sep 17 00:00:00 2001 From: Tomasz Miąsko Date: Thu, 3 Mar 2022 00:00:00 +0000 Subject: Inline SmallCStr::deref --- compiler/rustc_data_structures/src/small_c_str.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_data_structures/src') diff --git a/compiler/rustc_data_structures/src/small_c_str.rs b/compiler/rustc_data_structures/src/small_c_str.rs index cd902524562..3a8ab8ff991 100644 --- a/compiler/rustc_data_structures/src/small_c_str.rs +++ b/compiler/rustc_data_structures/src/small_c_str.rs @@ -62,6 +62,7 @@ impl SmallCStr { impl Deref for SmallCStr { type Target = ffi::CStr; + #[inline] fn deref(&self) -> &ffi::CStr { self.as_c_str() } -- cgit 1.4.1-3-g733a5