rust-lang / rust-lang/rustc-dev-guide

explain generalization when talking about type inference

Open
#1,820 0 comments 1 reaction 1 assignee View on GitHub

@lcnr is already working on this.

Since Nov 3, 2023.

A-inference E-hard I-terse T-types
Dominant language
HTML
Stars
1.9k
Forks
613
Avg merge
17h 24m
Merged PRs (30d)
39

Description

generalization is a core - and subtle - part of type inference and currently not explained in the guide. We should change that. We should talk about equality in general, the current section only mentions how to use equality, but doesn't actually explain how it works https://rustc-dev-guide.rust-lang.org/type-inference.html?highlight=equate#enforcing-equality--subtyping

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.