about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorThe 8472 <git@infinite-source.de>2023-05-22 16:14:19 +0200
committerThe 8472 <git@infinite-source.de>2023-06-23 00:17:34 +0200
commit070ce235f2c1b72be10ac10cd5474b0ce80a1071 (patch)
treec9dd9e965b090740714581041db2278241fd7371 /compiler/rustc_interface/src/errors.rs
parent405130538938e2d63a761b7d8d6b27d26e634c33 (diff)
downloadrust-070ce235f2c1b72be10ac10cd5474b0ce80a1071.tar.gz
rust-070ce235f2c1b72be10ac10cd5474b0ce80a1071.zip
Specialize StepBy<Range<{integer}>>
For ranges < usize we determine the number of items
StepBy would yield and then store that in the range.end
instead of the actual end. This significantly
simplifies calculation of the loop induction variable
especially in cases where StepBy::step (an usize)
could overflow the Range's item type
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions