rust/library/std/src/io
Michael Goulet 0c241e6bdb
Rollup merge of #114194 - thomcc:flushinline, r=cuviper
Inline trivial (noop) flush calls

At work I noticed that `writer.flush()?` didn't get optimized away in cases where the flush is obviously a no-op, which I had expected (well, desired).

I went through and added `#[inline]` to a bunch of cases that were obviously noops, or delegated to ones that were obviously noops. I omitted platforms I don't have access to (some tier3). I didn't do this very scientifically, in cases where it was non-obvious I left `#[inline]` off.
2023-08-10 21:17:36 -07:00
..
buffered Rollup merge of #112008 - intruder-kat:master, r=Nilstrieb 2023-07-06 20:11:38 -07:00
copy additional io::copy specializations 2023-07-09 00:05:56 +02:00
cursor attempt to optimise vectored write 2022-06-26 17:15:31 +01:00
error std: add type alias for raw OS errors 2023-01-31 17:23:35 +01:00
impls std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
readbuf Spelling library/ 2023-04-26 02:10:22 -04:00
stdio Make default stdio lock() return 'static handles 2022-02-13 10:23:16 -05:00
util Rollup merge of #98154 - vidhanio:master, r=workingjubilee 2023-07-30 20:36:33 +02:00
copy.rs additional io::copy specializations 2023-07-09 00:05:56 +02:00
cursor.rs Rollup merge of #98651 - mattfbacon:master, r=ChrisDenton 2023-03-27 08:46:51 +02:00
error.rs remove some unneeded imports 2023-04-12 19:27:18 +02:00
impls.rs Rollup merge of #110633 - scottmcm:more-take, r=thomcc 2023-04-21 20:35:29 +05:30
mod.rs Rollup merge of #107200 - mina86:c, r=Amanieu 2023-06-18 08:06:41 +02:00
prelude.rs Use heading for std::prelude and not io::prelude 2021-01-05 17:52:24 -08:00
readbuf.rs inline trivial (noop) flush calls 2023-07-28 18:09:12 -07:00
stdio.rs replace version placeholders 2023-04-28 08:47:55 -07:00
tests.rs Limit read size in File::read_to_end loop 2023-04-21 20:54:12 +01:00
util.rs Fix empty_write since rust version attribute 2023-07-30 22:53:32 +01:00