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

Export {Imm,M}utableIntSlice in libcollections. #17924

Closed
mahkoh opened this issue Oct 10, 2014 · 0 comments
Closed

Export {Imm,M}utableIntSlice in libcollections. #17924

mahkoh opened this issue Oct 10, 2014 · 0 comments

Comments

@mahkoh
Copy link
Contributor

mahkoh commented Oct 10, 2014

No description provided.

@mahkoh mahkoh closed this as completed Nov 14, 2014
lnicola pushed a commit to lnicola/rust that referenced this issue Aug 29, 2024
fix: Panic when a TAIT exists in a RPIT

Fixes  rust-lang#17921

When there is a TAIT inside of a RPIT like;

```rust
trait Foo {}
type Bar = impl Foo;
fn foo<A>() -> impl Future<Output = Bar> { .. }
```

while inferencing `fn foo`, `insert_inference_vars_for_impl_trait` tries to substitute impl trait bounds of `Bar`, i.e. `Implemented(Foo)` with RPITs `placeholders`, and this causes panic

https://github.com/rust-lang/rust-analyzer/blob/fa003262474185fd62168379500fe906b331824b/crates/hir-ty/src/infer.rs#L903-L905
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

No branches or pull requests

2 participants