diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-03-30 14:36:28 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-03-30 14:37:44 +0200 |
| commit | 87cdfb6e71b0ebe3e41e04d8840a20d7428197be (patch) | |
| tree | 4376edff6c97540d941bb6d45271f219e91dae86 /src/libstd | |
| parent | a80ec3b3b1d11ed83754885efdd07037d256dbf2 (diff) | |
| download | rust-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.rs | 1 |
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, |
