rust/src/libcore
Dylan DPC 4f71270d7b
Rollup merge of #69354 - MichaelMcDonnell:duration_overflow_test, r=Centril
Test `Duration::new` panics on overflow

A `Duration` is created from a second and nanoseconds variable. The
documentation says: "This constructor will panic if the carry from the
nanoseconds overflows the seconds counter". This was, however, not tested
in the tests. I doubt the behavior will ever regress, but it is usually a
good idea to test all documented behavior.
2020-02-22 18:43:07 +05:30
..
array Format the world 2019-12-22 17:42:47 -05:00
benches Format the world 2019-12-22 17:42:47 -05:00
char Improve char::is_ascii_* code 2020-02-11 10:22:47 +01:00
convert Use Self instead of $type 2020-01-06 04:33:31 +00:00
fmt implement LowerExp and UpperExp for integers 2020-02-14 18:42:51 -08:00
future Revert "core: add IntoFuture trait and support for await" 2019-12-31 19:18:08 -05:00
hash Revert u8to64_le changes from #68914. 2020-02-21 10:11:35 +11:00
iter Rollup merge of #68597 - ollie27:skip_nth_last, r=Amanieu 2020-02-18 20:09:02 +09:00
macros macros: typo fix 2020-01-06 01:55:24 +00:00
mem stabalize ManuallyDrop::take 2020-01-09 13:32:10 -05:00
num Rollup merge of #68984 - ecstatic-morse:const-u8-is-ascii, r=sfackler 2020-02-22 18:42:59 +05:30
ops Remove problematic specialization from RangeInclusive 2020-02-08 18:47:41 -05:00
prelude Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
ptr Improve #Safety of core::ptr::drop_in_place 2020-02-16 13:12:34 +01:00
slice Auto merge of #67330 - golddranks:split_inclusive, r=kodraus 2020-02-22 03:54:50 +00:00
str Auto merge of #67330 - golddranks:split_inclusive, r=kodraus 2020-02-22 03:54:50 +00:00
sync Add SAFETY comment for atomic example 2020-01-16 19:26:02 -08:00
task Use matches macro in libcore and libstd 2020-01-08 07:10:28 +03:00
tests Test Duration::new panics on overflow 2020-02-21 08:04:16 -08:00
unicode Replace old tables with new unicode data 2020-01-14 19:11:28 -05:00
alloc.rs Revert "Remove checked_add in Layout::repeat" 2020-02-18 23:57:48 +01:00
any.rs Minor: note why we can rely on Any trait for safety 2020-01-28 20:53:45 -05: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 Move the matches! macro to the prelude 2019-10-23 15:35:36 +02:00
cell.rs Add repr(no_niche) to UnsafeCell. Fix #68303. 2020-02-10 14:44:12 -05:00
clone.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
cmp.rs Mark several functions and methods in core::cmp as #[must_use] 2020-02-08 10:42:23 -08:00
default.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
ffi.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
hint.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
internal_macros.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
intrinsics.rs Const-stabilize some arithmetic intrinsics 2020-02-04 11:04:04 -08:00
lib.rs Rollup merge of #68978 - ecstatic-morse:const-int-pow, r=oli-obk 2020-02-20 10:49:12 +01:00
marker.rs Add trait Self filtering to rustc_on_unimplemented 2020-02-12 17:26:49 -08:00
option.rs Rollup merge of #68918 - brson:unwrapdoc, r=Dylan-DPC 2020-02-09 00:53:55 +01:00
panic.rs Format the world 2019-12-22 17:42:47 -05:00
panicking.rs core and std macros and panic internals use panic::Location::caller. 2020-01-04 10:02:17 -08:00
pin.rs Relax the Sized bounds on Pin::map_unchecked(_mut) 2020-01-06 15:41:09 +01:00
raw.rs Fix more tests after revert of rustdoc cfg(test) feature 2019-06-09 18:15:53 +01:00
result.rs Rollup merge of #68918 - brson:unwrapdoc, r=Dylan-DPC 2020-02-09 00:53:55 +01:00
time.rs no longer promote non-pattern const functions 2019-12-22 18:37:22 +01: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