rust/src/libcore
Yuki Okushi f28e3873c5
Rollup merge of #71366 - faern:use-assoc-int-consts3, r=dtolnay
Use assoc int consts3

Define module level int consts with associated constants instead of `min_value()` and `max_value()`. So the code become consistent with what the docs recommend etc. Seems natural.

Also remove the last usages of the int module constants from this repo (except src/test/ directory which I have still not really done anything in). Some places were missed in the previous PRs because the code uses `crate::<IntTy>` to reach the constants.

This is a continuation of #70857

r? @dtolnay
2020-04-22 10:34:06 +09:00
..
alloc Improve Layout::extend docs 2020-04-20 12:30:35 -04:00
array fix internal lint fallout 2020-03-31 19:01:48 +02:00
benches Use assoc float consts in libcore 2020-04-06 22:44:51 +02:00
char Store UNICODE_VERSION as a tuple 2020-04-11 12:56:25 +02:00
convert Rollup merge of #70487 - Mark-Simulacrum:float-unchecked-casts, r=SimonSapin 2020-04-03 00:32:00 +02:00
fmt Replace max/min_value() with MAX/MIN assoc consts 2020-04-03 09:33:10 +02:00
future Remove a stack frame from .await calls 2020-04-05 18:51:21 -07:00
hash Rollup merge of #69471 - nnethercote:rm-sip-Hasher-short_write, r=dtolnay 2020-03-15 02:44:15 +01:00
iter Stop accessing module level int consts via crate::<Ty> 2020-04-20 23:38:06 +02:00
macros Deprecate the asm! macro 2020-04-15 18:09:00 +01:00
mem Auto merge of #69079 - CAD97:layout-of-ptr, r=RalfJung 2020-03-22 18:37:19 +00:00
num Use assoc float consts instead of module level 2020-04-20 23:38:06 +02:00
ops Remove the last remnant of unsigned Neg 2020-04-13 18:37:06 -07:00
prelude Deprecate the asm! macro 2020-04-15 18:09:00 +01:00
ptr ptr: add tracking issue for len() method on raw slices 2020-04-14 21:34:27 +02:00
slice Stop accessing module level int consts via crate::<Ty> 2020-04-20 23:38:06 +02:00
str Rollup merge of #71366 - faern:use-assoc-int-consts3, r=dtolnay 2020-04-22 10:34:06 +09:00
sync Use copy bound in atomic operations to generate simpler MIR 2020-03-18 00:47:08 +01:00
task Use matches macro in libcore and libstd 2020-01-08 07:10:28 +03:00
tests Use integer assoc consts in libcore 2020-04-06 23:08:12 +02:00
unicode Store UNICODE_VERSION as a tuple 2020-04-11 12:56:25 +02:00
any.rs get rid of ConstPropUnsupported; use ZST marker structs instead 2020-03-22 12:16:24 +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 Move the matches! macro to the prelude 2019-10-23 15:35:36 +02:00
cell.rs Rollup merge of #70029 - jonas-schievink:bootstrap, r=Centril 2020-03-17 03:05:17 +01:00
clone.rs Minor follow-up after renaming librustc(_middle) 2020-04-03 19:03:13 +09:00
cmp.rs Dogfood or_patterns in the standard library 2020-04-16 12:44:57 -07:00
default.rs Fix typo in Default trait docs: Provides -> Provide 2020-04-16 22:39:00 +01:00
ffi.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
hint.rs Make documentation examples use new integer assoc consts 2020-04-03 09:33:10 +02:00
internal_macros.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
intrinsics.rs Add example in the alternative in std::mem::transmute docs 2020-04-18 14:58:38 +08:00
lib.rs Dogfood or_patterns in the standard library 2020-04-16 12:44:57 -07:00
marker.rs Minor follow-up after renaming librustc(_middle) 2020-04-03 19:03:13 +09:00
option.rs make "other" in docs of Option::{zip,zip_with} monofont 2020-03-19 22:19:37 +03:00
panic.rs Format the world 2019-12-22 17:42:47 -05:00
panicking.rs also make panic_fmt track_caller 2020-03-10 10:31:03 +01:00
pin.rs fix various typos 2020-03-06 15:19:31 +01:00
primitive.rs Bump core::primitive to 1.43 2020-02-23 23:59:39 -08:00
raw.rs Minor follow-up after renaming librustc(_middle) 2020-04-03 19:03:13 +09:00
result.rs docs: make the description of Result::map_or more clear 2020-04-04 14:18:02 +03:00
time.rs Stop accessing module level int consts via crate::<Ty> 2020-04-20 23:38:06 +02: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