Alexander Regueiro
99ed06eb88
libs: doc comments
2019-02-10 23:57:25 +00:00
Alexander Regueiro
b87363e763
tests: doc comments
2019-02-10 23:42:32 +00:00
Austin Bonander
27c8dfddac
Improve error message and docs for non-UTF-8 bytes in stdio on Windows
...
cc #23344
2019-02-03 22:55:56 -08:00
Mazdak Farrokhzad
ebbecac538
Rollup merge of #57296 - JosephTLyons:Fix-question-mark-operator-in-stdio-document, r=wesleywiser
...
Fixed the link to the ? operator
I'm working on updating all broken links, but figured I'd break up the pull requests so they are easier to review, versus just one big pull request.
2019-01-12 10:54:58 +01:00
king6cong
d60fa1d3c2
Doc rewording, use the same name writer
2019-01-04 11:23:24 +08:00
Joseph Lyons
40658fdade
Fixed the link to the ? operator
2019-01-03 00:20:31 -05:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
kennytm
14ebca5c19
Rollup merge of #56941 - euclio:deny-libstd-resolution-failures, r=QuietMisdreavus
...
deny intra-doc link resolution failures in libstd
Fixes #56693 .
Until we land a fix for the underlying issue (#56922 ), we can at least fix the failures in libstd so they don't propagate to downstream crates.
2018-12-23 02:11:59 +08:00
Pietro Albini
cf9fd6074d
Rollup merge of #56363 - Lucretiel:patch-3, r=shepmaster
...
Defactored Bytes::read
Removed unneeded refactoring of read_one_byte, which removed the unneeded dynamic dispatch (`dyn Read`) used by that function.
This function is only used in one place in the entire Rust codebase; there doesn't seem to be a reason for it to exist (and there especially doesn't seem to be a reason for it to use dynamic dispatch)
2018-12-19 11:47:04 +01:00
Andy Russell
82e55c1bdc
deny intra-doc link resolution failures in libstd
2018-12-17 21:10:24 -05:00
Nathan West
a1790e8c20
Reordered match arms
2018-12-17 17:43:52 -08:00
kennytm
27c3631d82
Rollup merge of #56708 - oli-obk:stability_internal_const_fn, r=alexcrichton
...
Remove some unnecessary feature gates
fixes #56585
cc @jethrogb
2018-12-14 22:10:12 +08:00
Alex Crichton
cf47a19305
Bump to 1.33.0
...
* Update bootstrap compiler
* Update version to 1.33.0
* Remove some `#[cfg(stage0)]` annotations
Actually updating the version number is blocked on updating Cargo
2018-12-12 08:09:26 -08:00
Oliver Scherer
799cadb2bd
Remove unnecessary feature gates from const fns
2018-12-11 10:32:39 +01:00
Alexander Regueiro
ee89c088b0
Various minor/cosmetic improvements to code
2018-12-07 23:53:34 +00:00
bors
fc84f5f837
Auto merge of #56581 - kennytm:rollup, r=kennytm
...
Rollup of 7 pull requests
Successful merges:
- #56000 (Add Armv8-M Mainline targets)
- #56250 (Introduce ptr::hash for references)
- #56434 (Improve query cycle errors for parallel queries)
- #56516 (Replace usages of `..i + 1` ranges with `..=i`.)
- #56555 (Send textual profile data to stderr, not stdout)
- #56561 (Fix bug in from_key_hashed_nocheck)
- #56574 (Fix a stutter in the docs for slice::exact_chunks)
Failed merges:
r? @ghost
2018-12-07 08:46:45 +00:00
Jethro Beekman
8d6edc9f8f
SGX target: implement synchronization primitives and threading
2018-12-07 11:26:51 +05:30
Jethro Beekman
4a3505682e
Add x86_64-fortanix-unknown-sgx target to libstd and dependencies
...
The files src/libstd/sys/sgx/*.rs are mostly copied/adapted from
the wasm target.
This also updates the dlmalloc submodule to the very latest version.
2018-12-07 11:26:50 +05:30
Corey Farwell
c025d61409
Replace usages of ..i + 1 ranges with ..=i.
2018-12-04 12:05:19 -08:00
Nathan West
7c05ef5db0
Typo
2018-11-29 20:53:37 -05:00
Nathan West
697b83b307
Removed unnecessary buf subscript
2018-11-29 20:53:13 -05:00
Nathan West
f59d645a9b
Defactored Bytes::read
...
Removed unneeded refactoring of read_one_byte, which removed the unneeded dynamic dispatch (`dyn Read`) used by that function.
2018-11-29 20:36:32 -05:00
antoine-de
1ed91951c3
fix small doc mistake
...
The std::io::read main documentation can lead to error because the
buffer is prefilled with 10 zeros that will pad the response.
Using an empty vector is better.
The `read_to_end` documentation is already correct though.
This is my first rust PR, don't hesitate to tell me if I did something
wrong.
2018-11-21 11:17:48 +01:00
Pietro Albini
b20bba4f37
Rollup merge of #55211 - fintelia:bufwriter-buffer, r=shepmaster
...
Add BufWriter::buffer method
CC #45323
2018-11-15 11:04:28 +01:00
teresy
eca11b99a7
refactor: use shorthand fields
2018-11-06 15:05:44 -05:00
Jonathan Behrens
59a030916b
Fix compile errors in test
2018-11-02 13:39:56 -04:00
Jonathan Behrens
40e41440e4
Suggested edits
2018-11-02 13:39:56 -04:00
Jonathan Behrens
07d966dbb8
Add some tests
2018-11-02 13:39:56 -04:00
Jonathan Behrens
7eece4771b
Add BufWriter::buffer method
2018-11-02 13:39:56 -04:00
bors
b9adc3327e
Auto merge of #53517 - phungleson:fix-impl-from-for-error, r=frewsxcv
...
Add doc for impl From for Error
As part of issue #51430 (cc @skade).
The impl is very simple, let me know if we need to go into any details.
2018-10-07 22:00:04 +00:00
Corey Farwell
4f3896d8ef
'a' → 'an' in front of vowel sounds.
2018-10-06 11:21:53 -04:00
Son
b3750aa34e
Remove main() from examples
2018-10-03 08:25:31 +10:00
Marcus Griep
5285d35b49
Improve docs for std::io::Seek
...
Fixes #54562
2018-09-28 08:01:56 -04:00
Son
70f4269d97
Doc for From ErrorKind
2018-09-27 05:34:12 +10:00
kennytm
3c9e884dd3
Rollup merge of #54046 - snaedis:issue-48022, r=steveklabnik
...
Update documentation for fill_buf in std::io::BufRead
Brings the documentation in line with the BufReader implementation.
Fixes #48022 .
This is my first PR, and I think the `E-easy` label is very cool, as so is the practice of describing the fix but leaving it for someone else; it really makes it a lot less intimidating to get started with something!
2018-09-12 12:17:28 +08:00
bors
06da917b01
Auto merge of #51885 - GuillaumeGomez:trait-impl-show-docs, r=Mark-Simulacrum,QuietMisdreavus
...
Trait impl show docs
Fixes #51834 .
<img width="1440" alt="screen shot 2018-06-29 at 00 14 33" src="https://user-images.githubusercontent.com/3050060/42063323-6e6e8cc8-7b31-11e8-88ef-4dd2229df76c.png ">
(You can see both commit changes in the screenshot 😄 )
r? @QuietMisdreavus
2018-09-08 04:14:54 +00:00
Alva Snædís
aa4f73c845
Update documentation for fill_buf in std::io::BufRead
...
Brings the documentation in line with the BufReader implementation.
Fixes #48022 .
2018-09-07 23:16:55 +00:00
kennytm
654c5788aa
Rollup merge of #53376 - frewsxcv:frewsxcv-copy, r=GuillaumeGomez
...
Cross reference io::copy and fs::copy in docs.
Fixes https://github.com/rust-lang/rust/issues/52524 .
2018-09-07 15:26:30 +08:00
Guillaume Gomez
c1ad1b0338
Fix invalid urls
2018-09-06 23:32:30 +02:00
Oliver Schneider
472ca71598
Implement the min_const_fn feature gate
2018-08-31 08:39:59 +02:00
Son
96282e1866
Add doc for impl From for Error
2018-08-20 12:04:08 +10:00
Matthias Krüger
71120ef1e5
Fix typos found by codespell.
2018-08-19 17:41:28 +02:00
varkor
ea505fd60b
Make std::io::Error #[non_exhaustive]
2018-08-15 17:16:48 +01:00
Corey Farwell
5f198a5e44
Cross reference io::copy and fs::copy in docs.
...
Fixes https://github.com/rust-lang/rust/issues/52524 .
2018-08-14 23:33:47 -04:00
Ralf Jung
31bec788f4
avoid using the word 'initialized' to talk about that non-reentrant-capable state of the mutex
2018-08-08 18:12:33 +02:00
Ralf Jung
645388583c
actually, reentrant uninitialized mutex acquisition is outright UB
2018-08-06 14:39:55 +02:00
Ralf Jung
22457deef7
make Lazy::new unsafe and check reentrancy condition in the callers
2018-08-06 13:52:15 +02:00
Ralf Jung
d3d31105e9
clarify partially initialized Mutex issues
2018-08-06 12:54:44 +02:00
ljedrz
b5ed39ff10
Implement custom read_to_end for io::Take
2018-08-01 13:26:45 +02:00
Simon Sapin
4ca77f702f
Remove unstable and deprecated APIs
2018-07-30 18:18:23 +02:00