Skip to content

Conversation

@flodiebold
Copy link
Member

If the first type parameter gets inferred, that's still not handled correctly; it'll require some more refactoring: E.g. if we have Thing<T, F=fn() -> T> and then instantiate Thing<_>, that gets turned into Thing<_, fn() -> _> before the _ is instantiated into a type variable -- so afterwards, we have two type variables without any connection to each other.

If the first type parameter gets inferred, that's still not handled correctly;
it'll require some more refactoring: E.g. if we have `Thing<T, F=fn() -> T>` and
then instantiate `Thing<_>`, that gets turned into `Thing<_, fn() -> _>` before
the `_` is instantiated into a type variable -- so afterwards, we have two type
variables without any connection to each other.
@matklad
Copy link
Contributor

matklad commented Jun 29, 2020

bors r+

@flodiebold
Copy link
Member Author

This should fix #2880.

@bors
Copy link
Contributor

bors bot commented Jun 29, 2020

@bors bors bot merged commit 82ce579 into rust-lang:master Jun 29, 2020
@flodiebold flodiebold deleted the params-depending-on-params branch June 29, 2020 14:36
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