rust/compiler/rustc_mir/src
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
..
borrow_check Fix more “a”/“an” typos 2021-08-22 17:27:18 +02:00
const_eval Improve comments about const panic handling 2021-07-28 16:18:38 +02:00
dataflow Remove Session.used_attrs and move logic to CheckAttrVisitor 2021-08-21 13:27:27 -05:00
interpret Auto merge of #88242 - bonega:allocation_range, r=oli-obk 2021-08-25 02:17:41 +00:00
monomorphize Auto merge of #87739 - Aaron1011:remove-used-attrs, r=wesleywiser 2021-08-24 03:58:22 +00:00
transform Fix typos “an”→“a” and a few different ones that appeared in the same search 2021-08-22 18:15:49 +02:00
util Rollup merge of #88129 - willcrichton:expose-graphviz-modules, r=ecstatic-morse 2021-08-18 19:55:04 +02:00
lib.rs Remove box syntax from rustc_mir 2021-08-18 09:31:51 +02:00
shim.rs Remove box syntax from rustc_mir 2021-08-18 09:31:51 +02:00