Camelid
8258cf285f
Convert a bunch of intra-doc links
2020-11-07 12:50:57 -08:00
The8472
8c7046e675
remove needs_drop
2020-11-07 21:40:55 +01:00
Christiaan Dirkx
94d73d4403
Refactor parse_prefix on Windows
...
Refactor `get_first_two_components` to `get_next_component`.
Fixes the following behaviour of `parse_prefix`:
- series of separator bytes in a prefix are correctly parsed as a single separator
- device namespace prefixes correctly recognize both `\\` and `/` as separators
2020-11-07 16:15:48 +01:00
Christiaan Dirkx
6728240f36
Test structural matching for all range types
...
Adds structural match tests for all range types.
Note: also adds the otherwise unrelated test `test_range_to_inclusive` for completeness
2020-11-07 01:31:44 +01:00
Giacomo Stevanato
23d82761f7
<[T]>::reverse: Fix pointer provenance rules
2020-11-06 20:01:27 +01:00
Benoît du Garreau
001dd7e6a5
Add tracking issue
2020-11-06 18:04:52 +01:00
Benoît du Garreau
ae059b532f
Make some std::io functions const
...
Includes:
- io::Cursor::new
- io::Cursor::get_ref
- io::Cursor::position
- io::empty
- io::repeat
- io::sink
2020-11-06 17:48:26 +01:00
Yuki Okushi
8f70cad032
Rollup merge of #78730 - kornelski:not-inverse, r=Dylan-DPC
...
Expand explanation of reverse_bits
Original documentation only rephrased the function name
2020-11-07 01:02:20 +09:00
Yuki Okushi
162f400328
Rollup merge of #78538 - ssomers:btree_testing_rng, r=Mark-Simulacrum
...
BTreeMap: document a curious assumption in test cases
r? ```@Mark-Simulacrum```
2020-11-07 01:02:09 +09:00
Yuki Okushi
0e71fc75cc
Rollup merge of #78006 - pitaj:master, r=jyn514
...
Use Intra-doc links for std::io::buffered
Helps with #75080 . I used the implicit link style for intrinsics, as that was what `minnumf32` and others already had.
``@rustbot`` modify labels: T-doc, A-intra-doc-links
r? ``@jyn514``
2020-11-07 01:02:03 +09:00
Yuki Okushi
4136ed26a1
Rollup merge of #74979 - maekawatoshiki:fix, r=Mark-Simulacrum
...
`#![deny(unsafe_op_in_unsafe_fn)]` in sys/hermit
Partial fix of #73904 .
This encloses ``unsafe`` operations in ``unsafe fn`` in ``sys/hermit``.
Some unsafe blocks are not well documented because some system-based functions lack documents.
2020-11-07 01:01:59 +09:00
Ivan Tham
e8b5be5dff
Stabilize hint::spin_loop
...
Partially fix #55002 , deprecate in another release
Co-authored-by: Ashley Mannix <kodraus@hey.com >
Update stable version for stabilize_spin_loop
Co-authored-by: Joshua Nelson <joshua@yottadb.com >
Use better example for spinlock
As suggested by KodrAus
Remove renamed_spin_loop already available in master
Fix spin loop example
2020-11-06 23:41:55 +08:00
Maarten de Vries
3bee37c290
Disable accept4 on Android.
2020-11-06 14:17:48 +01:00
bors
f92b931045
Auto merge of #77856 - GuillaumeGomez:automatic-links-lint, r=jyn514,ollie27
...
Add non_autolinks lint
Part of #77501 .
r? `@jyn514`
2020-11-06 04:17:41 +00:00
Peter Jaszkowiak
8d48e3bbb2
document HACKs
2020-11-05 19:26:08 -07:00
Peter Jaszkowiak
fe6dfcd28a
Intra-doc links for std::io::buffered
2020-11-05 19:09:42 -07:00
Camelid
b813c72723
Clean up StructuralEq docs
2020-11-05 17:12:35 -08:00
Jacob Pratt
8078474b0a
Correct unsigned equivalent of isize to be usize
2020-11-05 16:52:32 -05:00
Guillaume Gomez
99200f760b
Fix even more URLs
2020-11-05 20:11:29 +01:00
est31
5058cad41e
Remove unneeded lifetimes in array/mod.rs
2020-11-05 11:49:27 +01:00
Mara Bos
f383e4f1d9
Rollup merge of #78757 - camelid:crate-link-text, r=jyn514
...
Improve and clean up some intra-doc links
2020-11-05 10:30:02 +01:00
Mara Bos
86e6afafe1
Rollup merge of #78738 - sasurau4:test/move-range-test-to-library-core, r=jyn514
...
Move range in ui test to ops test in library/core
Helps with #76268
r? ````@matklad````
2020-11-05 10:29:56 +01:00
Mara Bos
29fad213b2
Rollup merge of #78735 - danielhenrymantilla:simplify-unsafecell-getmut, r=RalfJung
...
Simplify the implementation of `get_mut` (no unsafe)
Quick PR to reduce one use of `unsafe` pointed out in the previous PR
r? ````@RalfJung````
2020-11-05 10:29:54 +01:00
Mara Bos
43e1b58bcc
Rollup merge of #78716 - est31:array_traits, r=Dylan-DPC
...
Array trait impl comment/doc fixes
Two small doc/comment fixes regarding trait implementations on arrays.
2020-11-05 10:29:46 +01:00
Mara Bos
6d7098f543
Rollup merge of #78465 - est31:proc_macro_to_string, r=jyn514
...
Change as_str → to_string in proc_macro::Ident::span() docs
There is no `as_str` function on Ident any more.
Also change it to an intra doc link while we're at it.
2020-11-05 10:29:42 +01:00
Mara Bos
99229337a8
Rollup merge of #78425 - chansuke:move_nan, r=jyn514
...
Move f64::NAN ui tests into `library`
This is a partial fix of #76268 .
r? ```@matklad```
2020-11-05 10:29:40 +01:00
Mara Bos
10d2843604
Rollup merge of #78093 - camelid:as-cleanup, r=jyn514
...
Clean up docs for 'as' keyword
2020-11-05 10:29:38 +01:00
Mara Bos
55f4b802fb
Rollup merge of #76718 - poliorcetics:vec-ui-to-unit-test, r=jyn514
...
Move Vec UI tests to unit tests when possible
Helps with #76268 .
I'm moving the tests using `Vec` or `VecDeque`.
````@rustbot```` modify labels: A-testsuite C-cleanup T-libs
2020-11-05 10:29:35 +01:00
Guillaume Gomez
9d114506c6
Rename lint to non_autolinks
2020-11-05 10:22:08 +01:00
Guillaume Gomez
60caf51b0d
Rename automatic_links to url_improvements
2020-11-05 10:22:08 +01:00
Guillaume Gomez
55b4d21e25
Fix automatic_links warnings
2020-11-05 10:22:08 +01:00
chansuke
f9b139f9c4
Add mod nan for test
2020-11-05 12:57:18 +09:00
Camelid
677b2acb48
Add missing comma
...
'Note however,' -> 'Note, however,'
2020-11-04 18:57:54 -08:00
Camelid
bbdb1f0f66
Clean up some intra-doc links
2020-11-04 18:57:52 -08:00
Camelid
3084a55d54
Don't use crate in link text
...
`crate::` -> `core::`
It looks weird to have `crate::` in the link text and we use the actual
crate name everywhere else.
If anyone is curious, I used this Vim command to update all the links:
%s/\(\s\)\[`crate::\(.*\)`\]/\1[`core::\2`](crate::\2)/g
2020-11-04 18:44:40 -08:00
Camelid
d8afe98eba
Clean up docs for 'as' keyword
2020-11-04 16:05:55 -08:00
chansuke
97d5a1be3f
Fix format
2020-11-05 08:40:04 +09:00
chansuke
5855fb7b79
Move f64::NAN ui tests into library
2020-11-05 08:32:07 +09:00
LinkTed
ead7185db6
Fix docs for MacOs (again)
2020-11-04 19:45:48 +01:00
Daiki Ihara
232b9ba129
Move range in ui test to ops test in library/core
2020-11-05 00:00:44 +09:00
Daniel Henry-Mantilla
69e5729c58
Simplify the implementation of get_mut (no unsafe)
2020-11-04 14:54:22 +01:00
est31
93fa023111
Fix outdated comment next to array_impl_default
...
The comment has become outdated as the array_impl macro
has been removed.
2020-11-04 12:21:22 +01:00
Kornel
340c94ad76
Expand explanation of reverse_bits
2020-11-04 11:21:07 +00:00
Benoît du Garreau
795bbfe056
Add tracking issue
2020-11-04 11:58:41 +01:00
Benoît du Garreau
9a12d727df
Constantify UnsafeCell::into_inner and related
...
Also includes:
- Cell::into_inner
- RefCell::into_inner
- Atomic*::into_inner
2020-11-04 11:41:57 +01:00
est31
5801109ba9
Move Copy and Clone into the list of traits implemented for all sizes
2020-11-04 01:28:37 +01:00
LinkTed
c779405686
Fix docs for MacOs (correction)
2020-11-03 18:28:04 +01:00
Yuki Okushi
9d4cdbbfcd
Rollup merge of #78664 - pickfire:patch-4, r=jonas-schievink
...
Fix intrinsic size_of stable link
I noticed that it is pointing to the same link when I was reading
https://github.com/rust-lang/rust-clippy/issues/2997
2020-11-03 15:27:18 +09:00
Vadim Petrochenkov
19dbb02a89
Expand NtExpr tokens only in key-value attributes
2020-11-03 00:53:43 +03:00
Ivan Tham
c83c635751
Fix intrinsic size_of stable link
...
I noticed that it is pointing to the same link when I was reading
https://github.com/rust-lang/rust-clippy/issues/2997
2020-11-02 16:03:23 +08:00