rust/compiler/rustc_target/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
..
abi use convention for with_* methods 2021-08-24 19:41:58 +02:00
asm Fix typos “a”→“an” 2021-08-22 15:35:11 +02:00
spec allow specifying an ios version for the llvm target 2021-08-24 08:23:05 +02:00
lib.rs Emit warnings for unused fields in custom targets. 2021-06-17 21:48:02 +02:00
tests.rs Emit warnings for unused fields in custom targets. 2021-06-17 21:48:02 +02:00