about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2020-03-30 14:36:28 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2020-03-30 14:37:44 +0200
commit87cdfb6e71b0ebe3e41e04d8840a20d7428197be (patch)
tree4376edff6c97540d941bb6d45271f219e91dae86 /src/libstd
parenta80ec3b3b1d11ed83754885efdd07037d256dbf2 (diff)
downloadrust-87cdfb6e71b0ebe3e41e04d8840a20d7428197be.tar.gz
rust-87cdfb6e71b0ebe3e41e04d8840a20d7428197be.zip
Add inline attributes for functions used in the query system
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/thread/local.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs
index 1dd942e252f..29e99c0afd2 100644
--- a/src/libstd/thread/local.rs
+++ b/src/libstd/thread/local.rs
@@ -253,6 +253,7 @@ impl<T: 'static> LocalKey<T> {
     /// This function will still `panic!()` if the key is uninitialized and the
     /// key's initializer panics.
     #[stable(feature = "thread_local_try_with", since = "1.26.0")]
+    #[inline]
     pub fn try_with<F, R>(&'static self, f: F) -> Result<R, AccessError>
     where
         F: FnOnce(&T) -> R,