Rustc-dev-guide: Document Pattern and Exhaustiveness checking

Created on 1 Apr 2020  路  5Comments  路  Source: rust-lang/rustc-dev-guide

We added a skeleton chapter in #651.

cc @Centril

Hard help wanted

Most helpful comment

I'm finally getting around to doing this!

All 5 comments

cc @arielb1 @varkor @Nadrieril

How detailed does that guide aim to be ? Specifically, should we move there the in-depth explanation of the exhaustiveness algorithm that is currently at the top of _match.rs ? Or is that too detailed ?

I think starting with the broad strokes, mentioning that there is an in-depth explanation, as well as linking to the paper would be a good start.

Generally, it's a bit of judgement call. The goal is just for the guide to be a reasonable starting point for being able to contribute. Generally, that means discussion of important design decisions, data structures, routines, or algorithms, as you see fit.

Another goal is that it should avoid mentioning details that are likely to change, and link to the rustdocs for the compiler as much as possible so that we can detect changes.

I'm finally getting around to doing this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vext01 picture vext01  路  7Comments

nikomatsakis picture nikomatsakis  路  8Comments

kenta7777 picture kenta7777  路  5Comments

lzutao picture lzutao  路  3Comments

mark-i-m picture mark-i-m  路  7Comments