File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
branches/dist-snap/src/libstd Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
9
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10
- refs/heads/dist-snap: e1c1c059c6d120d324a0a2d5125363c21ad11940
10
+ refs/heads/dist-snap: 3ce75e786de9945338c862fd73cc86fd6f892436
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
13
13
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ fn test_option_dance() {
437
437
}
438
438
#[ test] #[ should_fail] #[ ignore( cfg( windows) ) ]
439
439
fn test_option_too_much_dance ( ) {
440
- let mut y = Some ( util:: NonCopyable ( ) ) ;
440
+ let mut y = Some ( util:: NonCopyable :: new ( ) ) ;
441
441
let _y2 = y. swap_unwrap ( ) ;
442
442
let _y3 = y. swap_unwrap ( ) ;
443
443
}
Original file line number Diff line number Diff line change @@ -79,13 +79,15 @@ pub struct NonCopyable {
79
79
priv i: ( ) ,
80
80
}
81
81
82
+ impl NonCopyable {
83
+ /// Creates a dummy non-copyable structure and returns it for use.
84
+ pub fn new ( ) -> NonCopyable { NonCopyable { i : ( ) } }
85
+ }
86
+
82
87
impl Drop for NonCopyable {
83
88
fn finalize ( & self ) { }
84
89
}
85
90
86
- /// Creates a dummy non-copyable structure and returns it for use.
87
- pub fn NonCopyable ( ) -> NonCopyable { NonCopyable { i : ( ) } }
88
-
89
91
90
92
/// A type with no inhabitants
91
93
pub enum Void { }
You can’t perform that action at this time.
0 commit comments