Skip to content

Commit ea13253

Browse files
committed
---
yaml --- r: 227614 b: refs/heads/try c: d645f8f h: refs/heads/master v: v3
1 parent bf38017 commit ea13253

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 04f7eba909ffc5a6473087391c92a7a1489ae94b
4+
refs/heads/try: d645f8fc286af1841f1a352ddc7282c6e9a7dd8f
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/libstd/thread/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ impl Builder {
297297
/// the OS level.
298298
#[unstable(feature = "scoped",
299299
reason = "memory unsafe if destructor is avoided, see #24292")]
300+
#[deprecated(since = "1.2.0",
301+
reason = "this unsafe API is unlikely to ever be stabilized \
302+
in this form")]
300303
pub fn scoped<'a, T, F>(self, f: F) -> io::Result<JoinGuard<'a, T>> where
301304
T: Send + 'a, F: FnOnce() -> T, F: Send + 'a
302305
{
@@ -398,6 +401,9 @@ pub fn spawn<F, T>(f: F) -> JoinHandle<T> where
398401
/// to recover from such errors.
399402
#[unstable(feature = "scoped",
400403
reason = "memory unsafe if destructor is avoided, see #24292")]
404+
#[deprecated(since = "1.2.0",
405+
reason = "this unsafe API is unlikely to ever be stabilized \
406+
in this form")]
401407
pub fn scoped<'a, T, F>(f: F) -> JoinGuard<'a, T> where
402408
T: Send + 'a, F: FnOnce() -> T, F: Send + 'a
403409
{

0 commit comments

Comments
 (0)