]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/unused_io_amount.stderr
New upstream version 1.66.0+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
10 error: read amount is not handled
11 --> $DIR/unused_io_amount.rs:11:5
12 |
13 LL | s.read(&mut buf)?;
14 | ^^^^^^^^^^^^^^^^^
15 |
16 = help: use `Read::read_exact` instead, or handle partial reads
17
18 error: written amount is not handled
19 --> $DIR/unused_io_amount.rs:16:5
20 |
21 LL | s.write(b"test").unwrap();
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^
23 |
24 = help: use `Write::write_all` instead, or handle partial writes
25
26 error: read amount is not handled
27 --> $DIR/unused_io_amount.rs:18:5
28 |
29 LL | s.read(&mut buf).unwrap();
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^
31 |
32 = help: use `Read::read_exact` instead, or handle partial reads
33
34 error: read amount is not handled
35 --> $DIR/unused_io_amount.rs:22:5
36 |
37 LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39
40 error: written amount is not handled
41 --> $DIR/unused_io_amount.rs:23:5
42 |
43 LL | s.write_vectored(&[io::IoSlice::new(&[])])?;
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45
46 error: read amount is not handled
47 --> $DIR/unused_io_amount.rs:30:5
48 |
49 LL | reader.read(&mut result).ok()?;
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 |
52 = help: use `Read::read_exact` instead, or handle partial reads
53
54 error: read amount is not handled
55 --> $DIR/unused_io_amount.rs:39:5
56 |
57 LL | reader.read(&mut result).or_else(|err| Err(err))?;
58 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59 |
60 = help: use `Read::read_exact` instead, or handle partial reads
61
62 error: read amount is not handled
63 --> $DIR/unused_io_amount.rs:51:5
64 |
65 LL | reader.read(&mut result).or(Err(Error::Kind))?;
66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67 |
68 = help: use `Read::read_exact` instead, or handle partial reads
69
70 error: read amount is not handled
71 --> $DIR/unused_io_amount.rs:58:5
72 |
73 LL | / reader
74 LL | | .read(&mut result)
75 LL | | .or(Err(Error::Kind))
76 LL | | .or(Err(Error::Kind))
77 LL | | .expect("error");
78 | |________________________^
79 |
80 = help: use `Read::read_exact` instead, or handle partial reads
81
82 error: written amount is not handled
83 --> $DIR/unused_io_amount.rs:67:5
84 |
85 LL | w.write(b"hello world").await.unwrap();
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 |
88 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
89
90 error: read amount is not handled
91 --> $DIR/unused_io_amount.rs:72:5
92 |
93 LL | r.read(&mut buf[..]).await.unwrap();
94 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95 |
96 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
97
98 error: written amount is not handled
99 --> $DIR/unused_io_amount.rs:85:9
100 |
101 LL | w.write(b"hello world").await?;
102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103 |
104 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
105
106 error: read amount is not handled
107 --> $DIR/unused_io_amount.rs:93:9
108 |
109 LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?;
110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111 |
112 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
113
114 error: written amount is not handled
115 --> $DIR/unused_io_amount.rs:101:5
116 |
117 LL | w.write(b"hello world").await.unwrap();
118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119 |
120 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
121
122 error: read amount is not handled
123 --> $DIR/unused_io_amount.rs:106:5
124 |
125 LL | r.read(&mut buf[..]).await.unwrap();
126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127 |
128 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
129
130 error: aborting due to 16 previous errors
131