about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2020-01-10 18:56:30 +0000
committerLzu Tao <taolzu@gmail.com>2020-01-10 18:56:30 +0000
commitea6bb7fe17395545a8f22563ed831ac5d2b4389f (patch)
tree41eacbcbd20c78836c484b6ddb3bcc779c9db1d7 /src/libstd
parenteca1e8bd9beeaabbc240ad342892f26998ad7f35 (diff)
downloadrust-ea6bb7fe17395545a8f22563ed831ac5d2b4389f.tar.gz
rust-ea6bb7fe17395545a8f22563ed831ac5d2b4389f.zip
Inline `AsRef<Path> for str`
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)
     }