-
- Notifications
You must be signed in to change notification settings - Fork 14.2k
Open
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Location (URL)
rust/compiler/rustc_pattern_analysis/src/usefulness.rs
Lines 171 to 172 in 018d269
| //! Let `pt_1, .., pt_n` and `qt` be length-m tuples of patterns for the same type `(T_1, .., T_m)`. | |
| //! We compute `usefulness(tp_1, .., tp_n, tq)` as follows: |
Summary
Let `pt_1, .., pt_n` and `qt` be length-m tuples of patterns for the same type `(T_1, .., T_m)`. We compute `usefulness(tp_1, .., tp_n, tq)` as follows: I'm studying how the compiler implements pattern-matchings, and I'm confused with this sentence. It first introduces pt_1, .., pt_n, and uses names tp_1, .., tp_n.
Is this just a typo? or does the document introduce tp_1, .., tp_n but I'm unable to find one?
Thanks!
EDIT: rendered version
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.