Skip to content
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

Solve ProjectionPredicate during normalization #830

Merged
merged 9 commits into from
Oct 1, 2024
Merged

Conversation

ranjitjhala
Copy link
Contributor

Fixes #829

Copy link
Member

@nilehmann nilehmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ranjitjhala, looks good to merge (modulo small comments), but I'm not sure if it fully solves #829. That one involves a FnOnce::Otput projection on a function pointer and I have the impression that the implementation of FnOnce for function pointers is built-in, so I'm not sure how that plays out. It may be ok though. That's an orthogonal issue though, just want to make sure we are not closing #829 if it's not fully solved.

crates/flux-middle/src/rty/projections.rs Outdated Show resolved Hide resolved
}

fn ctor_for_param(&mut self, _param_ty: rustc_middle::ty::ParamTy) -> super::SubsetTyCtor {
todo!()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
todo!()
tracked_span_bug!()

}

fn region_for_param(&mut self, _ebr: rustc_middle::ty::EarlyParamRegion) -> Region {
todo!()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
todo!()
tracked_span_bug!()

}

fn expr_for_param_const(&self, _param_const: rustc_middle::ty::ParamConst) -> Expr {
todo!()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
todo!()
tracked_span_bug!()

}

fn const_for_param(&mut self, _param: &Const) -> Const {
todo!()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
todo!()
tracked_span_bug!()

@ranjitjhala ranjitjhala merged commit b7f0858 into main Oct 1, 2024
7 checks passed
@ranjitjhala ranjitjhala deleted the issue-808 branch October 1, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: cannot infer substitution during normalization
2 participants