File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/librustc_mir/hair/pattern Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 114
114
/// the formula above makes sense.
115
115
///
116
116
/// This algorithm however has a lot of practical issues. Most importantly, it may not terminate
117
- /// in the presence of recursive types, since we always unpack all constructors as much
118
- /// as possible. And it would be stupidly slow anyways for types with a lot of constructors,
119
- /// like `u64` of `&[bool]`. We therefore present a modified version after the example.
117
+ /// for some types with infinitely many inhabitants, because when it encounters a wildcard it will
118
+ /// try all the values of the type. And it would be stupidly slow anyways for types with a lot of
119
+ /// constructors, like `u64` of `&[bool]`. We therefore present a modified version after the
120
+ /// example.
120
121
///
121
122
///
122
123
/// # Example run of the algorithm
You can’t perform that action at this time.
0 commit comments