Camelid
8258cf285f
Convert a bunch of intra-doc links
2020-11-07 12:50:57 -08:00
bors
9e1c436178
Auto merge of #74225 - poliorcetics:std-thread-unsafe-op-in-unsafe-fn, r=joshtriplett
...
Std/thread: deny unsafe op in unsafe fn
Partial fix of #73904 .
This encloses `unsafe` operations in `unsafe fn` in `libstd/thread`.
`@rustbot` modify labels: F-unsafe-block-in-unsafe-fn
2020-09-26 03:54:00 +00:00
Dylan MacKenzie
110e59e70e
Update library functions with stability attributes
...
This may not be strictly minimal, but all unstable functions also need a
`rustc_const_unstable` attribute.
2020-09-22 10:05:58 -07:00
Alexis Bourget
d01bd19573
Fix missing unsafe block for target arch wasm32
2020-09-21 23:09:12 +02:00
Alexis Bourget
3afadaad4f
Fix accordingly to review
2020-09-21 22:37:30 +02:00
Alexis Bourget
5d29954b2f
Improve some SAFETY comments following suggestions
2020-09-21 22:37:30 +02:00
Alexis Bourget
a83b79ec31
Finished documenting all unsafe op inside unsafe fn
2020-09-21 22:37:30 +02:00
Alexis Bourget
8c9cb06c2e
Deny unsafe op in unsafe fns without the unsafe keyword, first part for std/thread
2020-09-21 22:37:29 +02:00
Howard Su
a80d39041e
Use inline(never) instead of cold
...
inline(never) is better way to avoid optimizer to inline the function instead of cold.
2020-09-03 06:31:21 +08:00
Lzu Tao
a4e926daee
std: move "mod tests/benches" to separate files
...
Also doing fmt inplace as requested.
2020-08-31 02:56:59 +00:00
Alexis Bourget
fb3f927131
Move to intra doc links for std::thread documentation
2020-08-20 22:03:00 +02:00
Alexis Bourget
82ccdab96c
Disallow missing unsafe blocks in unsafe fn in panicking.rs
...
This adds SAFETY comments where necessary, explaining the preconditions
and how they are respected.
2020-07-29 21:58:09 +02:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00