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

Add note about type_alias_bounds #2

Closed
dtolnay opened this issue May 21, 2019 · 2 comments · Fixed by #4
Closed

Add note about type_alias_bounds #2

dtolnay opened this issue May 21, 2019 · 2 comments · Fixed by #4

Comments

@dtolnay
Copy link
Owner

dtolnay commented May 21, 2019

unit-type-parameters/README.md#documentation

This section should call out that type_alias_bounds is a future compatibility lint in the sense that the compiler may enforce the bounds eventually and the current behavior is considered a compiler bug.

The thing that makes it safe and correct to write here is that the RHS of the type alias uses exactly the same bounds as the LHS. Where that isn't the case, future compiler changes may break it.

@Centril
Copy link

Centril commented May 21, 2019

@eddyb
Copy link

eddyb commented May 22, 2019

Ugh, I think this wasn't correctly implemented yet, so the lint is still wrong.
Maybe someone else should take over the original PRs I made?

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 a pull request may close this issue.

3 participants