Skip to content

Commit 50d561b

Browse files
committed
---
yaml --- r: 62981 b: refs/heads/snap-stage3 c: 3ce75e7 h: refs/heads/master i: 62979: d7c9271 v: v3
1 parent 2acc0bb commit 50d561b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
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: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e1c1c059c6d120d324a0a2d5125363c21ad11940
4+
refs/heads/snap-stage3: 3ce75e786de9945338c862fd73cc86fd6f892436
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ fn test_option_dance() {
437437
}
438438
#[test] #[should_fail] #[ignore(cfg(windows))]
439439
fn test_option_too_much_dance() {
440-
let mut y = Some(util::NonCopyable());
440+
let mut y = Some(util::NonCopyable::new());
441441
let _y2 = y.swap_unwrap();
442442
let _y3 = y.swap_unwrap();
443443
}

branches/snap-stage3/src/libstd/util.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@ pub struct NonCopyable {
7979
priv i: (),
8080
}
8181

82+
impl NonCopyable {
83+
/// Creates a dummy non-copyable structure and returns it for use.
84+
pub fn new() -> NonCopyable { NonCopyable { i: () } }
85+
}
86+
8287
impl Drop for NonCopyable {
8388
fn finalize(&self) { }
8489
}
8590

86-
/// Creates a dummy non-copyable structure and returns it for use.
87-
pub fn NonCopyable() -> NonCopyable { NonCopyable { i: () } }
88-
8991

9092
/// A type with no inhabitants
9193
pub enum Void { }

0 commit comments

Comments
 (0)