about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index f00ef269309..7ea642942dd 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -2655,6 +2655,7 @@ impl AsRef<Path> for OsString {
 
 #[stable(feature = "rust1", since = "1.0.0")]
 impl AsRef<Path> for str {
+    #[inline]
     fn as_ref(&self) -> &Path {
         Path::new(self)
     }