File tree Expand file tree Collapse file tree 3 files changed +2
-37
lines changed
branches/snap-stage3/src/libcore Expand file tree Collapse file tree 3 files changed +2
-37
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 91d3e7f1a0757bf314ab3a4c4be8f910e2355d35
4
+ refs/heads/snap-stage3: 06d196ad5fe2d06eb32478b75c09c0a6063f5d9b
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change 10
10
11
11
/*!
12
12
13
- The `io` module contains basic input and output routines.
14
-
15
- A quick summary:
16
-
17
- ## `Reader` and `Writer` traits
18
-
19
- These traits define the minimal set of methods that anything that can do
20
- input and output should implement.
21
-
22
- ## `ReaderUtil` and `WriterUtil` traits
23
-
24
- Richer methods that allow you to do more. `Reader` only lets you read a certain
25
- number of bytes into a buffer, while `ReaderUtil` allows you to read a whole
26
- line, for example.
27
-
28
- Generally, these richer methods are probably the ones you want to actually
29
- use in day-to-day Rust.
30
-
31
- Furthermore, because there is an implementation of `ReaderUtil` for
32
- `<T: Reader>`, when your input or output code implements `Reader`, you get
33
- all of these methods for free.
34
-
35
- ## `print` and `println`
36
-
37
- These very useful functions are defined here. You generally don't need to
38
- import them, though, as the prelude already does.
39
-
40
- ## `stdin`, `stdout`, and `stderr`
41
-
42
- These functions return references to the classic three file descriptors. They
43
- implement `Reader` and `Writer`, where appropriate.
13
+ Basic input/output
44
14
45
15
*/
46
16
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ use option::*;
14
14
use either:: * ;
15
15
use rt;
16
16
use rt:: logging:: { Logger , StdErrLogger } ;
17
- use io;
18
- use libc;
19
- use repr;
20
- use vec;
21
17
use cast;
22
18
use str;
23
19
@@ -45,7 +41,6 @@ pub fn console_off() {
45
41
#[ lang="log_type" ]
46
42
pub fn log_type < T > ( level : u32 , object : & T ) {
47
43
use container:: Container ;
48
- use cast:: transmute;
49
44
use io;
50
45
use libc;
51
46
use repr;
You can’t perform that action at this time.
0 commit comments