rust/src/libcore
kennytm e17ebdf344
Rollup merge of #47892 - Badel2:const_type_id_of, r=oli-obk
Turn `type_id` into a constant intrinsic

https://github.com/rust-lang/rust/issues/27745

The method `get_type_id` in `Any` is intended to support reflection. It's currently unstable in favor of using an associated constant instead. This PR makes the `type_id` intrinsic a constant intrinsic, the same as `size_of` and `align_of`, allowing `TypeId::of` to be a `const fn`, which will allow using an associated constant in `Any`.
2018-02-05 01:27:36 +08:00
..
benches Auto merge of #45595 - scottmcm:iter-try-fold, r=dtolnay 2017-11-17 07:43:08 +00:00
fmt Changed back inline markings. 2018-01-30 05:31:38 -07:00
hash Fix broken link markup in Hasher::finish docs 2017-11-10 20:58:03 +01:00
iter Spacing 2018-01-20 00:41:21 +01:00
num Use constant for 180/π in to_degrees 2018-02-01 18:35:51 +00:00
ops Adjust wording of Placer trait safety requirements 2018-01-16 08:51:24 -08:00
prelude Reexport -> re-export in prose and documentation comments 2018-01-15 13:36:53 -05:00
slice Auto merge of #47772 - arthurprs:iter-position-bounds-check, r=dtolnay 2018-01-28 10:41:34 +00:00
str Make double ended string searchers use dependent fingers (fixes #47175) 2018-01-06 11:17:11 +05:30
sync Auto merge of #47204 - varkor:unsafecell-into_inner-safe, r=alexcrichton 2018-01-28 19:01:51 +00:00
tests Rollup merge of #47552 - oberien:stepby-nth, r=dtolnay 2018-02-01 02:34:15 +08:00
any.rs Turn type_id into a constant intrinsic 2018-02-01 23:03:19 +01:00
array.rs Changed back inline markings. 2018-01-30 05:31:38 -07:00
borrow.rs Update older URLs pointing to the first edition of the Book 2017-06-15 00:04:00 +09:00
Cargo.toml std: Add a new wasm32-unknown-unknown target 2017-11-19 21:07:41 -08:00
cell.rs Make UnsafeCell::into_inner safe 2018-01-05 01:11:20 +00:00
char.rs std: Stabilize char_escape_debug 2017-07-25 07:09:31 -07:00
char_private.rs regenerate libcore/char_private.rs 2017-10-26 22:32:24 -07:00
clone.rs Update bootstrap compiler 2017-08-31 06:58:58 -07:00
cmp.rs Rename never_type_impls gate to never_type 2017-12-12 14:03:03 +08:00
convert.rs Simplify implementation of Display and Error for convert::Infallible. 2017-09-23 17:27:02 -07:00
default.rs Fix "Quasi-quoting is inefficient" warning in incremental rustbuild. 2017-07-18 01:49:40 +08:00
internal_macros.rs fix version number 2017-09-21 15:46:17 -04:00
intrinsics.rs copy_nonoverlapping example: Fixed typo 2018-02-02 22:44:14 +02:00
iter_private.rs Various fixes to wording consistency in the docs 2017-03-22 17:19:52 +01:00
lib.rs Rollup merge of #47892 - Badel2:const_type_id_of, r=oli-obk 2018-02-05 01:27:36 +08:00
macros.rs Make examples equivalent 2018-01-04 15:55:01 +02:00
marker.rs Remove impl Foo for .. in favor of auto trait Foo 2018-01-13 18:48:00 +03:00
mem.rs Rollup merge of #46156 - SimonSapin:patch-14, r=withoutboats 2018-02-02 16:29:11 +08:00
nonzero.rs Rollup merge of #46287 - SimonSapin:stable-constness, r=aturon 2017-11-29 18:37:47 +08:00
option.rs Rollup merge of #47193 - cramertj:result-opts, r=TimNN 2018-01-20 22:32:42 +01:00
panicking.rs Bump master to 1.21.0 2017-07-25 07:03:19 -07:00
ptr.rs Changed back inline markings. 2018-01-30 05:31:38 -07:00
raw.rs Fix up various links 2017-03-20 10:10:16 -04:00
result.rs Add transpose conversions for Option and Result 2018-01-10 17:42:47 -08:00
time.rs Move time::Duration to libcore 2018-01-29 18:16:43 -05:00
tuple.rs Update bootstrap compiler 2017-08-31 06:58:58 -07:00
unit.rs impl FromIterator<()> for () 2017-10-18 23:12:37 -07:00