From 87cdfb6e71b0ebe3e41e04d8840a20d7428197be Mon Sep 17 00:00:00 2001 From: John Kåre Alsaker Date: Mon, 30 Mar 2020 14:36:28 +0200 Subject: Add inline attributes for functions used in the query system --- src/libstd/thread/local.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libstd/thread') 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 LocalKey { /// 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(&'static self, f: F) -> Result where F: FnOnce(&T) -> R, -- cgit 1.4.1-3-g733a5