diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-10-23 18:06:11 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-11-10 01:10:07 +0100 |
| commit | d1d2aa22c0d15465af1daccdb3821450c98d0ed0 (patch) | |
| tree | 18c62f427f6e1efd2edd878b565fcfd1e2897c5c /src/libstd/thread | |
| parent | 53fe6294170e5f872877e87c1b05795b2b4d11d1 (diff) | |
| download | rust-d1d2aa22c0d15465af1daccdb3821450c98d0ed0.tar.gz rust-d1d2aa22c0d15465af1daccdb3821450c98d0ed0.zip | |
reduce list to functions callable in const ctx.
Diffstat (limited to 'src/libstd/thread')
| -rw-r--r-- | src/libstd/thread/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index 3a3d2450014..e9a97f7c747 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -1391,7 +1391,7 @@ impl<T> JoinHandle<T> { /// println!("thread id: {:?}", thread.id()); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - pub const fn thread(&self) -> &Thread { + pub fn thread(&self) -> &Thread { &self.0.thread } |
