Skip to content

Add support for ranges and index lang items along with the TyTy::SliceType #974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Feb 25, 2022

Conversation

philberty
Copy link
Member

@philberty philberty commented Feb 24, 2022

This PR contains more code to begin supporting Slices which requires support
for more intrinsic, range and index lang items. More work is needed to support
slices such as the const_ptr lang item and the offset intrinsic but this is a big
PR already and adds support for more lang items along the way.

Fixes #975
Addresses #849

@philberty philberty added this to the Macro Expansion milestone Feb 24, 2022
@philberty philberty self-assigned this Feb 24, 2022
@philberty philberty linked an issue Feb 24, 2022 that may be closed by this pull request
This means we can reuse the same code for operations that are not
HIR::OperatorExpr's such as ArrayIndexExpr which can resolve to
core::ops::index lang items.
This reuses our code to resolve operator overloads to call into the index
lang item for the array-index-expression this serves as a basis for
supporting slices.

Fixes #975
@philberty philberty changed the title Implement Slices WIP Add support for ranges and index lang items along with the TyTy::SliceType Feb 25, 2022
@philberty
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 25, 2022

Build succeeded:

@bors bors bot merged commit d3a4cf9 into master Feb 25, 2022
@philberty philberty deleted the phil/slice-dev branch March 4, 2022 12:44
@philberty philberty mentioned this pull request Mar 10, 2022
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Index lang item
2 participants