about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorPeter Jaszkowiak <p.jaszkow@gmail.com>2024-05-19 12:28:26 -0600
committerPeter Jaszkowiak <p.jaszkow@gmail.com>2024-07-05 16:33:58 -0600
commitffea65bf6101ddecf14787c1a29a1460320c5a91 (patch)
treea6ab8ffb7625243926a9805b9581226537eaa1e4 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent6e2780775f5cea9328d37f4b8d0ee79db0056267 (diff)
downloadrust-ffea65bf6101ddecf14787c1a29a1460320c5a91.tar.gz
rust-ffea65bf6101ddecf14787c1a29a1460320c5a91.zip
add `new_range_api` for RFC 3550
This includes a `From<legacy::RangeInclusive> for RangeInclusive` impl for convenience, instead of the `TryFrom` impl from the RFC.
Having `From` is highly convenient and the assertion is unlikely to be a problem in practice.

This includes re-exports of all existing `Range` types under `core::range`, plus the range-related traits (`RangeBounds`, `Step`, `OneSidedRange`) and the `Bound` enum.

Currently the iterators are just wrappers around the old range types,
and most other trait impls delegate to the old rage types as well.

Also includes an `.iter()` shorthand for `.clone().into_iter()`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions