File tree 1 file changed +4
-4
lines changed
compiler/rustc_mir_build/src/thir/pattern
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 39
39
//! reachability for each subpattern and exhaustiveness for the whole match.
40
40
//!
41
41
//!
42
- //! # Illustrative Example
42
+ //! # Example
43
43
//!
44
44
//! A picture is worth a thousand words. Let's watch the algorithm run before we dig into concepts.
45
45
//!
46
- //! ```rust,ignore
46
+ //! ```rust,ignore(example)
47
47
//! match x {
48
48
//! Pair(Some(0), _) => 1,
49
49
//! Pair(_, false) => 2,
96
96
//! │ │ │ │
97
97
//! │ │ │ │ Dig into `true`:
98
98
//! │ │ │ ├─┐ Patterns:
99
- //! │ │ │ │ │ < no rows left>
99
+ //! │ │ │ │ │ // no rows left
100
100
//! │ │ │ │ │
101
101
//! │ │ │ │ │ We have found an unmatched value! This gives us a witness.
102
102
//! │ │ │ │ │ New witnesses:
130
130
//! │ │ │
131
131
//! │ │ │ Dig into `true`:
132
132
//! │ │ ├─┐ Patterns:
133
- //! │ │ │ │ < no rows left>
133
+ //! │ │ │ │ // no rows left
134
134
//! │ │ │ │
135
135
//! │ │ │ │ We have found an unmatched value! This gives us a witness.
136
136
//! │ │ │ │ New witnesses:
You can’t perform that action at this time.
0 commit comments