rust/src/libcore
Manish Goregaokar ec41d01d4f
Rollup merge of #73778 - nbdd0121:const_likely, r=oli-obk
Make `likely` and `unlikely` const, gated by feature `const_unlikely`

This PR also contains a fix to allow `#[allow_internal_unstable]` to work properly with `#[rustc_const_unstable]`.

cc @RalfJung @nagisa

r? @oli-obk
2020-07-01 07:42:52 -07:00
..
alloc Rollup merge of #71492 - LeSeulArtichaut:document-unsafe-2, r=Mark-Simulacrum 2020-04-24 02:47:38 +02:00
array Add comment for Ord implementation for array 2020-05-06 17:02:53 +08:00
benches Disable core benches on wasm (benches not supported). 2020-06-18 14:48:53 -07:00
char Adjusted some doctests in libcore to use should_panic. 2020-06-13 00:12:07 -04:00
convert Auto merge of #72717 - poliorcetics:try-from-int-to-nzint, r=dtolnay 2020-06-25 17:37:02 +00:00
fmt Rollup merge of #72452 - Lucretiel:precision-doc, r=dtolnay 2020-05-29 15:06:59 +09:00
future Adds a clearer message for when the async keyword is missing from a function 2020-06-25 16:01:45 -07:00
hash Forward Hash::write_iN to Hash::write_uN 2020-06-27 15:36:46 +02:00
iter Refactor try_find a little 2020-06-19 13:54:29 -07:00
macros Stabilize #[track_caller]. 2020-06-30 22:22:32 -07:00
mem Rollup merge of #73579 - RalfJung:doc-missing-links, r=shepmaster 2020-06-26 13:57:33 -07:00
num Auto merge of #73032 - yoshuawuyts:stabilize-leading_trailing_ones, r=Amanieu 2020-06-29 00:43:19 +00:00
ops Implement associated lang items 2020-06-24 19:08:11 -04:00
prelude Bump bootstrap compiler 2020-04-25 09:25:33 -04:00
ptr Fix ptr doc warnings. 2020-06-23 16:25:01 -07:00
slice Rollup merge of #73577 - VillSnow:master, r=Amanieu 2020-06-28 08:30:22 -07:00
str Group Pattern::strip_* method together 2020-06-14 01:01:07 +00:00
sync Rollup merge of #73036 - alexcrichton:update-wasm-fence, r=Mark-Simulacrum 2020-06-12 00:05:27 +02:00
task Use matches macro in libcore and libstd 2020-01-08 07:10:28 +03:00
tests Auto merge of #73032 - yoshuawuyts:stabilize-leading_trailing_ones, r=Amanieu 2020-06-29 00:43:19 +00:00
unicode Stabilize UNICODE_VERSION (feature unicode_version) 2020-04-23 14:36:30 +02:00
any.rs Map to -> return. 2020-05-12 16:54:29 +01:00
ascii.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
bool.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
borrow.rs Format the world 2019-12-22 17:42:47 -05:00
Cargo.toml Ensure std benchmarks get tested. 2020-06-18 09:11:15 -07:00
cell.rs Rollup merge of #73302 - JakobDegen:should-panic-documentation, r=Mark-Simulacrum 2020-06-13 16:47:54 +02:00
clone.rs Bump bootstrap compiler 2020-04-25 09:25:33 -04:00
cmp.rs Fix doc link to Eq trait from PartialEq trait 2020-04-29 12:06:32 -04:00
default.rs Free default() forwarding to Default::default() 2020-06-07 01:27:06 -07:00
ffi.rs Make VaList::arg link actually work 2020-04-23 11:06:46 -04:00
hint.rs Document unsafety in core::{panicking, alloc::layout, hint, iter::adapters::zip} 2020-04-24 01:48:48 +02:00
internal_macros.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
intrinsics.rs Rollup merge of #73778 - nbdd0121:const_likely, r=oli-obk 2020-07-01 07:42:52 -07:00
lib.rs Rollup merge of #73778 - nbdd0121:const_likely, r=oli-obk 2020-07-01 07:42:52 -07:00
marker.rs Bump to 1.46 2020-06-03 15:27:51 -04:00
option.rs Remove irrelevant comment 2020-06-25 23:08:58 +01:00
panic.rs Stabilize #[track_caller]. 2020-06-30 22:22:32 -07:00
panicking.rs Join mutiple lines if it is more readable 2020-06-15 13:15:47 +00:00
pin.rs clarify interaction of pin drop guarantee and panics 2020-04-27 14:45:37 +02:00
primitive.rs Bump core::primitive to 1.43 2020-02-23 23:59:39 -08:00
raw.rs Use dyn trait syntax in more comments and docs 2020-05-24 14:46:50 +03:00
result.rs Fix broken inner_deref doc tests. 2020-06-20 12:27:16 -07:00
time.rs Revise according to review 2020-06-20 10:55:39 -04:00
tuple.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
unit.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00