Skip to content

Fix ICE for -> impl Trait #80

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 2 commits into from
Jan 6, 2023
Merged

Fix ICE for -> impl Trait #80

merged 2 commits into from
Jan 6, 2023

Conversation

xFrednet
Copy link
Member

@xFrednet xFrednet commented Jan 6, 2023

This fixes an ICE for -> impl Trait representations. It doesn't work with -> impl Trait<T> yet, where T is a generic of the item.

I'm not a 100% happy with how the rustc backend is structured, as it feels messy and hard to follow. I'm sadly not sure how to structure it better, as I've never worked on a translation layer like this in rust. My guess is that these things are always a bit messy, but I still hope to find a cleaner solution. For now, I hope that this is good enough.

I also found a small bug with the refactoring from #66 that cargo dogfood didn't recompile the driver. It should now do that again :)

r? @Niki4tap

@xFrednet
Copy link
Member Author

xFrednet commented Jan 6, 2023

bors delegate=Niki4tap

@bors
Copy link
Contributor

bors bot commented Jan 6, 2023

✌️ Niki4tap can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@Niki4tap
Copy link
Member

Niki4tap commented Jan 6, 2023

LGTM!

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 6, 2023

@bors bors bot merged commit cc79eaf into rust-marker:master Jan 6, 2023
@xFrednet xFrednet deleted the 066-fix-ice branch January 6, 2023 15:07
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.

2 participants