Skip to content

Conversation

compiler-errors
Copy link
Member

Feels slightly less ad-hoc, and is an attempt at this comment: #116756 (comment)

The only thing that I don't like is the filtering in one_bound_for_assoc_type -- I wonder if I should filter somewhere else?

r? @fee1-dead or @oli-obk

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 18, 2023
@rust-log-analyzer

This comment has been minimized.

@rust-cloud-vms rust-cloud-vms bot force-pushed the elaborate-host-effect branch from d215b0b to 3dd95d2 Compare October 18, 2023 03:21
Comment on lines -224 to +231
// HACK(eddyb) should get the original `Span`.
let span = tcx.def_span(def_id);
ty::GenericPredicates {
parent: None,
predicates: tcx.arena.alloc_from_iter(
self.param_env.caller_bounds().iter().filter_map(|predicate| {
match predicate.kind().skip_binder() {
ty::ClauseKind::Trait(data) if data.self_ty().is_param(index) => {
// HACK(eddyb) should get the original `Span`.
let span = tcx.def_span(def_id);
Copy link
Member

Choose a reason for hiding this comment

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

Should this be reverted?

@oli-obk
Copy link
Contributor

oli-obk commented Oct 18, 2023

The only thing that I don't like is the filtering in one_bound_for_assoc_type -- I wonder if I should filter somewhere else?

😅 this is the same thing I had in my own attempt at effect generics last year. I'll compare the impls to see if I found some other subtle issues due to the higher test coverage compared to the current effects impl

@bors
Copy link
Collaborator

bors commented Oct 18, 2023

☔ The latest upstream changes (presumably #116885) made this pull request unmergeable. Please resolve the merge conflicts.

@fee1-dead
Copy link
Member

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 21, 2023
@compiler-errors
Copy link
Member Author

This is superseded (in the other direction) by #119721.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants