]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/unused_io_amount.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / unused_io_amount.stderr
1 error: written amount is not handled
2 --> $DIR/unused_io_amount.rs:9:5
3 |
4 LL | s.write(b"test")?;
5 | ^^^^^^^^^^^^^^^^^
6 |
7 = help: use `Write::write_all` instead, or handle partial writes
8 = note: `-D clippy::unused-io-amount` implied by `-D warnings`
9 = help: to override `-D warnings` add `#[allow(clippy::unused_io_amount)]`
10
11 error: read amount is not handled
12 --> $DIR/unused_io_amount.rs:12:5
13 |
14 LL | s.read(&mut buf)?;
15 | ^^^^^^^^^^^^^^^^^
16 |
17 = help: use `Read::read_exact` instead, or handle partial reads
18
19 error: written amount is not handled
20 --> $DIR/unused_io_amount.rs:18:5
21 |
22 LL | s.write(b"test").unwrap();
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^
24 |
25 = help: use `Write::write_all` instead, or handle partial writes
26
27 error: read amount is not handled
28 --> $DIR/unused_io_amount.rs:21:5
29 |
30 LL | s.read(&mut buf).unwrap();
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^
32 |
33 = help: use `Read::read_exact` instead, or handle partial reads
34
35 error: read amount is not handled
36 --> $DIR/unused_io_amount.rs:26:5
37 |
38 LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
41 error: written amount is not handled
42 --> $DIR/unused_io_amount.rs:28:5
43 |
44 LL | s.write_vectored(&[io::IoSlice::new(&[])])?;
45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46
47 error: read amount is not handled
48 --> $DIR/unused_io_amount.rs:36:5
49 |
50 LL | reader.read(&mut result).ok()?;
51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 |
53 = help: use `Read::read_exact` instead, or handle partial reads
54
55 error: read amount is not handled
56 --> $DIR/unused_io_amount.rs:46:5
57 |
58 LL | reader.read(&mut result).or_else(|err| Err(err))?;
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60 |
61 = help: use `Read::read_exact` instead, or handle partial reads
62
63 error: read amount is not handled
64 --> $DIR/unused_io_amount.rs:59:5
65 |
66 LL | reader.read(&mut result).or(Err(Error::Kind))?;
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68 |
69 = help: use `Read::read_exact` instead, or handle partial reads
70
71 error: read amount is not handled
72 --> $DIR/unused_io_amount.rs:67:5
73 |
74 LL | / reader
75 LL | |
76 LL | | .read(&mut result)
77 LL | | .or(Err(Error::Kind))
78 LL | | .or(Err(Error::Kind))
79 LL | | .expect("error");
80 | |________________________^
81 |
82 = help: use `Read::read_exact` instead, or handle partial reads
83
84 error: written amount is not handled
85 --> $DIR/unused_io_amount.rs:77:5
86 |
87 LL | s.write(b"ok").is_ok();
88 | ^^^^^^^^^^^^^^^^^^^^^^
89 |
90 = help: use `Write::write_all` instead, or handle partial writes
91
92 error: written amount is not handled
93 --> $DIR/unused_io_amount.rs:79:5
94 |
95 LL | s.write(b"err").is_err();
96 | ^^^^^^^^^^^^^^^^^^^^^^^^
97 |
98 = help: use `Write::write_all` instead, or handle partial writes
99
100 error: read amount is not handled
101 --> $DIR/unused_io_amount.rs:82:5
102 |
103 LL | s.read(&mut buf).is_ok();
104 | ^^^^^^^^^^^^^^^^^^^^^^^^
105 |
106 = help: use `Read::read_exact` instead, or handle partial reads
107
108 error: read amount is not handled
109 --> $DIR/unused_io_amount.rs:84:5
110 |
111 LL | s.read(&mut buf).is_err();
112 | ^^^^^^^^^^^^^^^^^^^^^^^^^
113 |
114 = help: use `Read::read_exact` instead, or handle partial reads
115
116 error: written amount is not handled
117 --> $DIR/unused_io_amount.rs:89:5
118 |
119 LL | w.write(b"hello world").await.unwrap();
120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121 |
122 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
123
124 error: read amount is not handled
125 --> $DIR/unused_io_amount.rs:95:5
126 |
127 LL | r.read(&mut buf[..]).await.unwrap();
128 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
129 |
130 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
131
132 error: written amount is not handled
133 --> $DIR/unused_io_amount.rs:109:9
134 |
135 LL | w.write(b"hello world").await?;
136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
137 |
138 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
139
140 error: read amount is not handled
141 --> $DIR/unused_io_amount.rs:118:9
142 |
143 LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?;
144 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
145 |
146 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
147
148 error: written amount is not handled
149 --> $DIR/unused_io_amount.rs:127:5
150 |
151 LL | w.write(b"hello world").await.unwrap();
152 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
153 |
154 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
155
156 error: read amount is not handled
157 --> $DIR/unused_io_amount.rs:133:5
158 |
159 LL | r.read(&mut buf[..]).await.unwrap();
160 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
161 |
162 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
163
164 error: aborting due to 20 previous errors
165