rust/compiler/rustc_middle/src/ty
bors e5484cec0e Auto merge of #88242 - bonega:allocation_range, r=oli-obk
Use custom wrap-around type instead of RangeInclusive

Two reasons:

1. More memory is allocated than necessary for `valid_range` in `Scalar`. The range is not used as an iterator and `exhausted` is never used.
2. `contains`, `count` etc. methods in `RangeInclusive` are doing very unhelpful(and dangerous!) things when used as a wrap-around range. - In general this PR wants to limit potentially confusing methods, that have a low probability of working.

Doing a local perf run, every metric shows improvement except for instructions.
Max-rss seem to have a very consistent improvement.

Sorry - newbie here, probably doing something wrong.
2021-08-25 02:17:41 +00:00
..
consts adjustions and cleanup to make Miri build again 2021-07-15 17:14:11 +02:00
inhabitedness Fix typos “a”→“an” 2021-08-22 15:35:11 +02:00
print introduce a Coerce predicate 2021-08-19 17:28:24 -04:00
_match.rs Add variance-related information to lifetime error messages 2021-06-06 12:37:42 -05:00
adjustment.rs Add some backticks to the rustc_middle::ty::adjustment::Adjustment docs 2021-05-24 15:47:28 -07:00
adt.rs Fix typos “a”→“an” 2021-08-22 15:35:11 +02:00
assoc.rs handle the case when container is not impl 2021-08-13 09:28:50 +00:00
binding.rs words 2020-11-16 22:42:09 +01:00
cast.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
closure.rs Fix typos “an”→“a” and a few different ones that appeared in the same search 2021-08-22 18:15:49 +02:00
codec.rs Fix typos “an”→“a” and a few different ones that appeared in the same search 2021-08-22 18:15:49 +02:00
consts.rs Update with comments 2021-03-23 17:16:20 +00:00
context.rs Auto merge of #87739 - Aaron1011:remove-used-attrs, r=wesleywiser 2021-08-24 03:58:22 +00:00
diagnostics.rs Do not discard ?Sized type params and suggest their removal 2021-07-30 08:44:31 -07:00
erase_regions.rs Auto merge of #83207 - oli-obk:valtree2, r=lcnr 2021-04-02 10:28:12 +00:00
error.rs move fallback_if_possible and friends to fallback.rs 2021-08-20 17:27:50 -04:00
fast_reject.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
flags.rs introduce a Coerce predicate 2021-08-19 17:28:24 -04:00
fold.rs Remove ty::Binder::bind() 2021-07-03 01:12:32 +09:00
generics.rs Do not suggest impl traits as type arguments 2021-08-03 20:05:50 +09:00
instance.rs Support forwarding caller location through trait object method call 2021-06-04 12:24:12 -05:00
layout.rs Auto merge of #88242 - bonega:allocation_range, r=oli-obk 2021-08-25 02:17:41 +00:00
list.rs Don't create references to uninitialized data in List::from_arena 2021-07-19 10:47:45 +02:00
mod.rs Fix typos “a”→“an” 2021-08-22 15:35:11 +02:00
normalize_erasing_regions.rs Update compiler/rustc_middle/src/ty/normalize_erasing_regions.rs 2021-07-04 12:37:25 -04:00
outlives.rs Address comments 2020-10-14 00:17:42 -04:00
query.rs Remove deadlock virtual call. 2021-07-18 11:14:08 +02:00
relate.rs Relate impl 2021-08-13 09:28:50 +00:00
structural_impls.rs introduce a Coerce predicate 2021-08-19 17:28:24 -04:00
sty.rs Fix typos “an”→“a” and a few different ones that appeared in the same search 2021-08-22 18:15:49 +02:00
subst.rs Auto merge of #87900 - jackh726:issue-87429, r=nikomatsakis 2021-08-24 14:55:48 +00:00
trait_def.rs Rename all_crate_nums query to crates and remove useless wrapper 2021-07-01 16:51:11 +02:00
util.rs Fix more “a”/“an” typos 2021-08-22 17:27:18 +02:00
vtable.rs Add comment and more tests. 2021-07-22 23:29:53 +08:00
walk.rs extract ConstKind::Unevaluated into a struct 2021-03-20 17:21:44 +01:00