Skip to content

Commit 07443f1

Browse files
committed
Update name
1 parent 15262ec commit 07443f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+158
-158
lines changed

src/libstd/fs.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ impl Read for File {
660660
}
661661

662662
#[inline]
663-
fn can_read_vectored(&self) -> bool {
664-
self.inner.can_read_vectored()
663+
fn is_read_vectored(&self) -> bool {
664+
self.inner.is_read_vectored()
665665
}
666666

667667
#[inline]
@@ -680,8 +680,8 @@ impl Write for File {
680680
}
681681

682682
#[inline]
683-
fn can_write_vectored(&self) -> bool {
684-
self.inner.can_write_vectored()
683+
fn is_write_vectored(&self) -> bool {
684+
self.inner.is_write_vectored()
685685
}
686686

687687
fn flush(&mut self) -> io::Result<()> {
@@ -705,8 +705,8 @@ impl Read for &File {
705705
}
706706

707707
#[inline]
708-
fn can_read_vectored(&self) -> bool {
709-
self.inner.can_read_vectored()
708+
fn is_read_vectored(&self) -> bool {
709+
self.inner.is_read_vectored()
710710
}
711711

712712
#[inline]
@@ -725,8 +725,8 @@ impl Write for &File {
725725
}
726726

727727
#[inline]
728-
fn can_write_vectored(&self) -> bool {
729-
self.inner.can_write_vectored()
728+
fn is_write_vectored(&self) -> bool {
729+
self.inner.is_write_vectored()
730730
}
731731

732732
fn flush(&mut self) -> io::Result<()> {

src/libstd/io/buffered.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ impl<R: Read> Read for BufReader<R> {
292292
Ok(nread)
293293
}
294294

295-
fn can_read_vectored(&self) -> bool {
296-
self.inner.can_read_vectored()
295+
fn is_read_vectored(&self) -> bool {
296+
self.inner.is_read_vectored()
297297
}
298298

299299
// we can't skip unconditionally because of the large buffer case in read.
@@ -684,8 +684,8 @@ impl<W: Write> Write for BufWriter<W> {
684684
}
685685
}
686686

687-
fn can_write_vectored(&self) -> bool {
688-
self.get_ref().can_write_vectored()
687+
fn is_write_vectored(&self) -> bool {
688+
self.get_ref().is_write_vectored()
689689
}
690690

691691
fn flush(&mut self) -> io::Result<()> {

src/libstd/io/cursor.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ where
266266
Ok(nread)
267267
}
268268

269-
fn can_read_vectored(&self) -> bool {
269+
fn is_read_vectored(&self) -> bool {
270270
true
271271
}
272272

@@ -377,7 +377,7 @@ impl Write for Cursor<&mut [u8]> {
377377
}
378378

379379
#[inline]
380-
fn can_write_vectored(&self) -> bool {
380+
fn is_write_vectored(&self) -> bool {
381381
true
382382
}
383383

@@ -398,7 +398,7 @@ impl Write for Cursor<&mut Vec<u8>> {
398398
}
399399

400400
#[inline]
401-
fn can_write_vectored(&self) -> bool {
401+
fn is_write_vectored(&self) -> bool {
402402
true
403403
}
404404

@@ -419,7 +419,7 @@ impl Write for Cursor<Vec<u8>> {
419419
}
420420

421421
#[inline]
422-
fn can_write_vectored(&self) -> bool {
422+
fn is_write_vectored(&self) -> bool {
423423
true
424424
}
425425

@@ -442,7 +442,7 @@ impl Write for Cursor<Box<[u8]>> {
442442
}
443443

444444
#[inline]
445-
fn can_write_vectored(&self) -> bool {
445+
fn is_write_vectored(&self) -> bool {
446446
true
447447
}
448448

src/libstd/io/impls.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ impl<R: Read + ?Sized> Read for &mut R {
2121
}
2222

2323
#[inline]
24-
fn can_read_vectored(&self) -> bool {
25-
(**self).can_read_vectored()
24+
fn is_read_vectored(&self) -> bool {
25+
(**self).is_read_vectored()
2626
}
2727

2828
#[inline]
@@ -58,8 +58,8 @@ impl<W: Write + ?Sized> Write for &mut W {
5858
}
5959

6060
#[inline]
61-
fn can_write_vectored(&self) -> bool {
62-
(**self).can_write_vectored()
61+
fn is_write_vectored(&self) -> bool {
62+
(**self).is_write_vectored()
6363
}
6464

6565
#[inline]
@@ -120,8 +120,8 @@ impl<R: Read + ?Sized> Read for Box<R> {
120120
}
121121

122122
#[inline]
123-
fn can_read_vectored(&self) -> bool {
124-
(**self).can_read_vectored()
123+
fn is_read_vectored(&self) -> bool {
124+
(**self).is_read_vectored()
125125
}
126126

127127
#[inline]
@@ -157,8 +157,8 @@ impl<W: Write + ?Sized> Write for Box<W> {
157157
}
158158

159159
#[inline]
160-
fn can_write_vectored(&self) -> bool {
161-
(**self).can_write_vectored()
160+
fn is_write_vectored(&self) -> bool {
161+
(**self).is_write_vectored()
162162
}
163163

164164
#[inline]
@@ -261,7 +261,7 @@ impl Read for &[u8] {
261261
}
262262

263263
#[inline]
264-
fn can_read_vectored(&self) -> bool {
264+
fn is_read_vectored(&self) -> bool {
265265
true
266266
}
267267

@@ -342,7 +342,7 @@ impl Write for &mut [u8] {
342342
}
343343

344344
#[inline]
345-
fn can_write_vectored(&self) -> bool {
345+
fn is_write_vectored(&self) -> bool {
346346
true
347347
}
348348

@@ -382,7 +382,7 @@ impl Write for Vec<u8> {
382382
}
383383

384384
#[inline]
385-
fn can_write_vectored(&self) -> bool {
385+
fn is_write_vectored(&self) -> bool {
386386
true
387387
}
388388

src/libstd/io/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ pub trait Read {
588588
/// and coalesce writes into a single buffer for higher performance.
589589
///
590590
/// The default implementation returns `false`.
591-
#[unstable(feature = "can_vector", issue = "none")]
592-
fn can_read_vectored(&self) -> bool {
591+
#[unstable(feature = "can_vector", issue = "69941")]
592+
fn is_read_vectored(&self) -> bool {
593593
false
594594
}
595595

@@ -1325,8 +1325,8 @@ pub trait Write {
13251325
/// and coalesce writes into a single buffer for higher performance.
13261326
///
13271327
/// The default implementation returns `false`.
1328-
#[unstable(feature = "can_vector", issue = "none")]
1329-
fn can_write_vectored(&self) -> bool {
1328+
#[unstable(feature = "can_vector", issue = "69941")]
1329+
fn is_write_vectored(&self) -> bool {
13301330
false
13311331
}
13321332

src/libstd/io/stdio.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ impl Read for StdinRaw {
8888
}
8989

9090
#[inline]
91-
fn can_read_vectored(&self) -> bool {
92-
self.0.can_read_vectored()
91+
fn is_read_vectored(&self) -> bool {
92+
self.0.is_read_vectored()
9393
}
9494

9595
#[inline]
@@ -107,8 +107,8 @@ impl Write for StdoutRaw {
107107
}
108108

109109
#[inline]
110-
fn can_write_vectored(&self) -> bool {
111-
self.0.can_write_vectored()
110+
fn is_write_vectored(&self) -> bool {
111+
self.0.is_write_vectored()
112112
}
113113

114114
fn flush(&mut self) -> io::Result<()> {
@@ -125,8 +125,8 @@ impl Write for StderrRaw {
125125
}
126126

127127
#[inline]
128-
fn can_write_vectored(&self) -> bool {
129-
self.0.can_write_vectored()
128+
fn is_write_vectored(&self) -> bool {
129+
self.0.is_write_vectored()
130130
}
131131

132132
fn flush(&mut self) -> io::Result<()> {
@@ -156,9 +156,9 @@ impl<W: io::Write> io::Write for Maybe<W> {
156156
}
157157

158158
#[inline]
159-
fn can_write_vectored(&self) -> bool {
159+
fn is_write_vectored(&self) -> bool {
160160
match self {
161-
Maybe::Real(w) => w.can_write_vectored(),
161+
Maybe::Real(w) => w.is_write_vectored(),
162162
Maybe::Fake => true,
163163
}
164164
}
@@ -187,9 +187,9 @@ impl<R: io::Read> io::Read for Maybe<R> {
187187
}
188188

189189
#[inline]
190-
fn can_read_vectored(&self) -> bool {
190+
fn is_read_vectored(&self) -> bool {
191191
match self {
192-
Maybe::Real(w) => w.can_read_vectored(),
192+
Maybe::Real(w) => w.is_read_vectored(),
193193
Maybe::Fake => true,
194194
}
195195
}
@@ -383,8 +383,8 @@ impl Read for Stdin {
383383
self.lock().read_vectored(bufs)
384384
}
385385
#[inline]
386-
fn can_read_vectored(&self) -> bool {
387-
self.lock().can_read_vectored()
386+
fn is_read_vectored(&self) -> bool {
387+
self.lock().is_read_vectored()
388388
}
389389
#[inline]
390390
unsafe fn initializer(&self) -> Initializer {
@@ -412,8 +412,8 @@ impl Read for StdinLock<'_> {
412412
}
413413

414414
#[inline]
415-
fn can_read_vectored(&self) -> bool {
416-
self.inner.can_read_vectored()
415+
fn is_read_vectored(&self) -> bool {
416+
self.inner.is_read_vectored()
417417
}
418418

419419
#[inline]
@@ -584,8 +584,8 @@ impl Write for Stdout {
584584
self.lock().write_vectored(bufs)
585585
}
586586
#[inline]
587-
fn can_write_vectored(&self) -> bool {
588-
self.lock().can_write_vectored()
587+
fn is_write_vectored(&self) -> bool {
588+
self.lock().is_write_vectored()
589589
}
590590
fn flush(&mut self) -> io::Result<()> {
591591
self.lock().flush()
@@ -606,8 +606,8 @@ impl Write for StdoutLock<'_> {
606606
self.inner.borrow_mut().write_vectored(bufs)
607607
}
608608
#[inline]
609-
fn can_write_vectored(&self) -> bool {
610-
self.inner.borrow_mut().can_write_vectored()
609+
fn is_write_vectored(&self) -> bool {
610+
self.inner.borrow_mut().is_write_vectored()
611611
}
612612
fn flush(&mut self) -> io::Result<()> {
613613
self.inner.borrow_mut().flush()
@@ -758,8 +758,8 @@ impl Write for Stderr {
758758
self.lock().write_vectored(bufs)
759759
}
760760
#[inline]
761-
fn can_write_vectored(&self) -> bool {
762-
self.lock().can_write_vectored()
761+
fn is_write_vectored(&self) -> bool {
762+
self.lock().is_write_vectored()
763763
}
764764
fn flush(&mut self) -> io::Result<()> {
765765
self.lock().flush()
@@ -780,8 +780,8 @@ impl Write for StderrLock<'_> {
780780
self.inner.borrow_mut().write_vectored(bufs)
781781
}
782782
#[inline]
783-
fn can_write_vectored(&self) -> bool {
784-
self.inner.borrow_mut().can_write_vectored()
783+
fn is_write_vectored(&self) -> bool {
784+
self.inner.borrow_mut().is_write_vectored()
785785
}
786786
fn flush(&mut self) -> io::Result<()> {
787787
self.inner.borrow_mut().flush()

src/libstd/io/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl Read for Repeat {
180180
}
181181

182182
#[inline]
183-
fn can_read_vectored(&self) -> bool {
183+
fn is_read_vectored(&self) -> bool {
184184
true
185185
}
186186

@@ -241,7 +241,7 @@ impl Write for Sink {
241241
}
242242

243243
#[inline]
244-
fn can_write_vectored(&self) -> bool {
244+
fn is_write_vectored(&self) -> bool {
245245
true
246246
}
247247

src/libstd/net/tcp.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@ impl Read for TcpStream {
577577
}
578578

579579
#[inline]
580-
fn can_read_vectored(&self) -> bool {
581-
self.0.can_read_vectored()
580+
fn is_read_vectored(&self) -> bool {
581+
self.0.is_read_vectored()
582582
}
583583

584584
#[inline]
@@ -597,8 +597,8 @@ impl Write for TcpStream {
597597
}
598598

599599
#[inline]
600-
fn can_write_vectored(&self) -> bool {
601-
self.0.can_write_vectored()
600+
fn is_write_vectored(&self) -> bool {
601+
self.0.is_write_vectored()
602602
}
603603

604604
fn flush(&mut self) -> io::Result<()> {
@@ -616,8 +616,8 @@ impl Read for &TcpStream {
616616
}
617617

618618
#[inline]
619-
fn can_read_vectored(&self) -> bool {
620-
self.0.can_read_vectored()
619+
fn is_read_vectored(&self) -> bool {
620+
self.0.is_read_vectored()
621621
}
622622

623623
#[inline]
@@ -636,8 +636,8 @@ impl Write for &TcpStream {
636636
}
637637

638638
#[inline]
639-
fn can_write_vectored(&self) -> bool {
640-
self.0.can_write_vectored()
639+
fn is_write_vectored(&self) -> bool {
640+
self.0.is_write_vectored()
641641
}
642642

643643
fn flush(&mut self) -> io::Result<()> {

0 commit comments

Comments
 (0)