File tree Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -577,6 +577,7 @@ mod tests {
577
577
#[test] #[should_fail]
578
578
fn test_ascii_fail_char_slice() { 'λ'.to_ascii(); }
579
579
580
+ #[test]
580
581
fn test_opt() {
581
582
assert_eq!(65u8.to_ascii_opt(), Some(Ascii { chr: 65u8 }));
582
583
assert_eq!(255u8.to_ascii_opt(), None);
Original file line number Diff line number Diff line change @@ -99,9 +99,8 @@ impl Writer for UdpStream {
99
99
#[ cfg( test) ]
100
100
mod test {
101
101
use super :: * ;
102
- use io:: net:: ip:: { Ipv4Addr , SocketAddr } ;
102
+ use io:: net:: ip:: { SocketAddr } ;
103
103
use io:: * ;
104
- use io:: test:: * ;
105
104
use prelude:: * ;
106
105
107
106
iotest ! ( fn bind_error( ) {
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ mod test {
54
54
use unstable:: run_in_bare_thread;
55
55
use super :: * ;
56
56
use rt:: task:: Task ;
57
- use rt:: local_ptr;
58
57
59
58
#[ test]
60
59
fn thread_local_task_smoke_test ( ) {
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl TyVisitor for MyVisitor {
65
65
fn visit_estr_uniq ( & mut self ) -> bool { true }
66
66
fn visit_estr_slice ( & mut self ) -> bool { true }
67
67
fn visit_estr_fixed ( & mut self ,
68
- _sz : uint , _sz : uint ,
68
+ _sz : uint , _sz2 : uint ,
69
69
_align : uint ) -> bool { true }
70
70
71
71
fn visit_box ( & mut self , _mtbl : uint , _inner : * TyDesc ) -> bool { true }
You can’t perform that action at this time.
0 commit comments