File tree Expand file tree Collapse file tree 3 files changed +2
-37
lines changed
branches/dist-snap/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 @@ -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: 91d3e7f1a0757bf314ab3a4c4be8f910e2355d35
10
+ refs/heads/dist-snap: 06d196ad5fe2d06eb32478b75c09c0a6063f5d9b
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 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