Lzu Tao
2c995d29f7
Prefer https link for wikipedia URLs
2020-08-23 10:02:42 +00:00
Camelid
637659be6a
Add missing links
2020-08-22 20:23:50 -07:00
Camelid
becf5ec4ea
Add missing intra-doc link
2020-08-22 17:41:40 -07:00
Camelid
5d32786b4f
Switch to intra-doc links in std::macros
...
Also:
* Fix typo in module docs
* Link to `std::io::stderr` instead of `std::io::Stderr` to match the
link text
* Link to `std::io::stdout`
2020-08-22 15:44:00 -07:00
Oliver Middleton
57e7e2875b
Update docs for SystemTime Windows implementation
...
Windows now uses `GetSystemTimePreciseAsFileTime` on versions of Windows that support it.
2020-08-22 22:00:33 +01:00
bors
c5a8b7b901
Auto merge of #75790 - LeSeulArtichaut:std-intra-doc, r=jyn514
...
Use intra-doc-links in `std::sync::*`
Helps with #75080 .
r? @jyn514
2020-08-22 08:54:29 +00:00
LeSeulArtichaut
f3a832f4b4
Use intra-doc-links in std::sync::*
2020-08-22 01:28:26 +02:00
Tomasz Miąsko
78e094632e
Remove wrapper type handling absent raw standard streams
...
Raw standard streams are always available. Remove unused wrapper type
that was supposed to be responsible for handling their absence.
2020-08-21 13:17:20 +02:00
Tomasz Miąsko
4a00421ba4
Make raw standard stream constructors const
2020-08-21 13:17:20 +02:00
Tomasz Miąsko
479c23bb49
Remove result type from raw standard streams constructors
...
Raw standard streams constructors are infallible. Remove unnecessary
result type.
2020-08-21 13:17:20 +02:00
Yuki Okushi
2a7f868d7f
Rollup merge of #75750 - poliorcetics:intra-links-std-thread, r=jyn514
...
Move to intra doc links for std::thread documentation
Helps with #75080 .
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
r? @jyn514
2020-08-21 17:55:15 +09:00
Yuki Okushi
f2d25538d4
Rollup merge of #75324 - ericseppanen:master, r=JohnTitor
...
clarify documentation of remove_dir errors
remove_dir will error if the path doesn't exist or isn't a directory.
It's useful to clarify that this is "remove dir or fail" not "remove dir
if it exists".
I don't think this belongs in the title. "Removes an existing, empty
directory" is strangely worded-- there's no such thing as a non-existing
directory. Better to just say explicitly it will return an error.
2020-08-21 17:55:08 +09:00
Alexis Bourget
fb3f927131
Move to intra doc links for std::thread documentation
2020-08-20 22:03:00 +02:00
Josh Stone
7ac126ec56
Rollup merge of #75703 - tmiasko:stack-overflow-musl, r=cuviper
...
Enable stack-overflow detection on musl for non-main threads
2020-08-20 10:07:24 -07:00
Tyler Mandry
ad3db41182
Rollup merge of #75696 - matklad:mirit, r=RalfJung
...
Remove `#[cfg(miri)]` from OnceCell tests
They were carried over from once_cell crate, but they are not entirely
correct (as miri now supports more things), and we don't run miri
tests for std, so let's just remove them.
Maybe one day we'll run miri in std, but then we can just re-install
these attributes.
2020-08-19 11:12:25 -07:00
Tyler Mandry
0fdc8c06dd
Rollup merge of #75674 - poliorcetics:intra-links-std-io, r=jyn514
...
Move to intra doc links for std::io
Helps with #75080 .
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
r? @jyn514
I had no problems with those files so I added some small links here and there.
2020-08-19 11:12:23 -07:00
Tyler Mandry
4123237fa1
Rollup merge of #75648 - matklad:lazy-dropck, r=KodrAus
...
Make OnceCell<T> transparent to dropck
See the failed build in
https://github.com/rust-lang/rust/pull/75555#issuecomment-675016718
for an example where we need this in real life
r? @ghost
2020-08-19 11:12:20 -07:00
Alexis Bourget
dad8e11e9f
Fix nits in intra-doc links for std io
2020-08-19 16:26:17 +02:00
Aleksey Kladov
34e7eac1ca
Remove #[cfg(miri)]
from OnceCell tests
...
They were carried over from once_cell crate, but they are not entirely
correct (as miri now supports more things), and we don't run miri
tests for std, so let's just remove them.
Maybe one day we'll run miri in std, but then we can just re-install
these attributes.
2020-08-19 10:28:22 +02:00
Yuki Okushi
07ea340e89
Rollup merge of #75685 - nixphix:docs/unix-ext, r=jyn514
...
Switch to intra-doc links in /src/sys/unix/ext/*.rs
Partial fix for #75080
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
r? @jyn514
These two links are not resolving to either `crate::fs::File...` or `fs::File...`
```
# unix/ext/fs.rs
27: /// [`File::read`]: ../../../../std/fs/struct.File.html#method.read
130: /// [`File::write`]: ../../../../std/fs/struct.File.html#method.write
```
2020-08-19 15:54:39 +09:00
Yuki Okushi
9cf390357b
Rollup merge of #75646 - poliorcetics:intra-links-keywords, r=jyn514
...
Move to intra doc links for keyword documentation
Helps with #75080 .
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
2020-08-19 15:54:32 +09:00
Tim Diekmann
438c40efa1
Allow reallocation to different alignment
2020-08-19 06:46:47 +02:00
Lzu Tao
768509ff84
Minor changes to Ipv4Addr
...
* Impl IntoInner rather than AsInner for Ipv4Addr
* Add some comments
* Add test to show endiannes of Ipv4Addr display
2020-08-19 03:27:24 +00:00
Prabakaran Kumaresshan
63d2e9b05f
resolve comments
2020-08-19 06:19:35 +05:30
Prabakaran Kumaresshan
3e3a2c82f3
Switch to intra-doc links in /src/sys/unix/ext/*.rs
2020-08-19 05:43:55 +05:30
Tomasz Miąsko
6a80b1387f
Enable stack-overflow detection on musl for non-main threads
2020-08-19 00:00:00 +00:00
Alexis Bourget
5d49c0e55a
Move to intra doc links for std::io
2020-08-18 19:36:52 +02:00
Tim Diekmann
63d241a7b7
Make grow_impl
unsafe
2020-08-18 15:22:10 +02:00
Tim Diekmann
66a651244e
Add comment, which was removed by accident (again)
2020-08-18 10:00:31 +02:00
Tim Diekmann
a9fe0ca47a
Clean up AllocRef implementation and documentation
2020-08-18 09:53:22 +02:00
bors
515c9fa505
Auto merge of #75621 - TimDiekmann:no-fast-realloc, r=Amanieu
...
Remove fast path in reallocation for same layout sizes
r? @Amanieu
Before merging a perf-run should be done.
Closes https://github.com/rust-lang/wg-allocators/issues/70
2020-08-18 05:42:05 +00:00
Yuki Okushi
732bebd854
Rollup merge of #75629 - EllenNyan:ellen-intra-doc-links, r=jyn514
...
Use intra-doc links in `std::env`, `std::alloc` and `std::error`
This is partial fixes for #75080 .
2020-08-18 09:27:51 +09:00
Yuki Okushi
d18719bbaf
Rollup merge of #75464 - poliorcetics:intra-links-panic-and-ascii, r=jyn514
...
Move to intra doc links for ascii.rs and panic.rs
Helps with #75080 .
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
I also updated the doc to fix the wording in `AsciiExt` since it is now deprecated.
The two file are small changes so I bundled them together.
Some links could not be changed to make them work, I believe those are known issues with primitive types.
2020-08-18 09:27:43 +09:00
Aleksey Kladov
695d86f584
Make OnceCell<T> transparent to dropck
...
See the failed build in
https://github.com/rust-lang/rust/pull/75555#issuecomment-675016718
for an example where we need this in real life
2020-08-18 00:34:54 +02:00
Alexis Bourget
431a465a8f
Move to intra doc links for keyword documentation
2020-08-17 22:17:14 +02:00
Ellen
e7a7279750
Remove unnecessary links in env.rs
2020-08-17 15:16:09 +01:00
Ellen
a2dfc3ec78
Switch to intra-doc links for std/src/alloc.rs
2020-08-17 14:42:40 +01:00
Ellen
b6d2868caa
Switch to intra-doc links for std/src/env.rs
2020-08-17 14:42:23 +01:00
Ellen
509cad7f2f
Switch to intra-doc links for std/src/error.rs
2020-08-17 14:42:16 +01:00
Tim Diekmann
c48f784418
Fix typo in comment
2020-08-17 15:05:19 +02:00
Tim Diekmann
c619b36975
Remove fast path in reallocation for same layout sizes
2020-08-17 13:23:38 +02:00
bors
94d7660d59
Auto merge of #75468 - poliorcetics:intra-links-fs, r=jyn514
...
Move to intra doc links in std/src/fs.rs
Helps with #75080 .
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
2020-08-17 06:02:16 +00:00
Prabakaran Kumaresshan
0a96e089ba
Switch to intra-doc links in /sys/windows/ext/{ffi,fs,process}.rs
2020-08-16 22:28:45 +05:30
bors
7a4fb355c6
Auto merge of #75567 - poliorcetics:intra-links-std-net, r=jyn514
...
Move to intra doc links in std::net
Helps with #75080 .
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
The links for `true` and `false` had to stay else `rustdoc` complained, it is intended ?
2020-08-16 13:15:52 +00:00
Alexis Bourget
5fc187cd97
Fix a link, improve method resolution
2020-08-16 14:41:12 +02:00
bors
de32266a17
Auto merge of #75565 - nixphix:docs/vxworks-ext, r=jyn514
...
Switch to intra-doc links in std/src/sys/vxworks/ext/{fs,process}.rs
Partial fix for #75080
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
r? @jyn514
2020-08-16 08:45:52 +00:00
bors
3f3250500f
Auto merge of #75246 - pickfire:patch-5, r=Amanieu
...
Add more examples to Path ends_with
We faced a footgun when using ends_with to check extension,
showing an example could prevent that.
2c155e50b2
2020-08-15 19:51:44 +00:00
Alexis Bourget
15cad1c465
Move to intra doc links in std::net
2020-08-15 19:17:19 +02:00
Prabakaran Kumaresshan
c5849ae3e0
inline linking
2020-08-15 22:11:09 +05:30
Prabakaran Kumaresshan
f615b6d338
remove empty lines
2020-08-15 21:53:02 +05:30