rust/src/librustc/ty
Mazdak Farrokhzad 9d122670fd
Rollup merge of #62692 - eddyb:precompute-niches, r=oli-obk
rustc: precompute the largest Niche and store it in LayoutDetails.

Since we only ever can use at most one niche, it makes sense to just store that in the layout, for the simplest caching (especially as it's almost trivial to compute).

There might be a speedup from this, but even if it's marginal now, the caching would be a more significant benefit for future optimization attempts.
2019-07-26 18:56:41 +02:00
..
inhabitedness rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-04 12:53:12 +02:00
print Avoid infinite looping in print_def_path. 2019-07-08 22:27:02 +02:00
query Rollup merge of #60066 - sfackler:type-name, r=Centril 2019-07-25 23:20:49 +02:00
_match.rs Unify all uses of 'gcx and 'tcx. 2019-06-14 18:58:23 +03:00
adjustment.rs Run rustfmt --file-lines ... for changes from previous commits. 2019-06-14 18:58:32 +03:00
binding.rs move librustc to 2018 2019-02-05 12:45:47 -06:00
cast.rs Use derive macro for HashStable 2019-03-13 00:03:13 +01:00
codec.rs cleanup: Remove extern crate serialize as rustc_serializes 2019-07-23 19:20:16 +03:00
constness.rs Rollup merge of #62019 - jeremystucki:refactoring, r=estebank 2019-06-22 01:42:41 +02:00
context.rs Use sharded maps for interning 2019-07-19 23:37:48 +02:00
erase_regions.rs Don't use lift to detect local types 2019-06-26 13:04:05 +02:00
error.rs Remove unnecessary lift calls 2019-06-14 21:11:50 +02:00
fast_reject.rs Remove needless lifetimes 2019-06-21 11:39:28 +02:00
flags.rs Allow usage_of_ty_tykind only in sty 2019-06-24 18:14:53 +02:00
fold.rs Don't use lift to detect local types 2019-06-26 13:04:05 +02:00
instance.rs Unify all uses of 'gcx and 'tcx. 2019-06-14 18:58:23 +03:00
layout.rs rustc: precompute the largest Niche and store it in LayoutDetails. 2019-07-15 18:41:24 +03:00
mod.rs cleanup: Remove extern crate serialize as rustc_serializes 2019-07-23 19:20:16 +03:00
outlives.rs Unify all uses of 'gcx and 'tcx. 2019-06-14 18:58:23 +03:00
relate.rs Don't use lift to detect local types 2019-06-26 13:04:05 +02:00
steal.rs rustc: rename Mir to mir::Body in comments and to MIR in error strings. 2019-05-29 00:26:56 +03:00
structural_impls.rs implement TypeFoldable for Arc 2019-07-02 12:25:22 -04:00
sty.rs cleanup: Remove extern crate serialize as rustc_serializes 2019-07-23 19:20:16 +03:00
subst.rs cleanup: Remove extern crate serialize as rustc_serializes 2019-07-23 19:20:16 +03:00
trait_def.rs rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-04 12:53:12 +02:00
util.rs Rollup merge of #62585 - pnkfelix:issue-60431-make-struct-tail-normalize-when-possible, r=eddyb 2019-07-13 16:18:37 +02:00
walk.rs Remove needless lifetimes 2019-06-21 11:39:28 +02:00
wf.rs rustc: remove 'x: 'y bounds (except from comments/strings). 2019-06-18 18:10:21 +03:00