11error: unreachable pattern
2- --> $DIR/exhaustiveness-unreachable-pattern.rs:7 :9
2+ --> $DIR/exhaustiveness-unreachable-pattern.rs:8 :9
33 |
44LL | (1,) => {}
55 | ^^^^
@@ -11,128 +11,140 @@ LL | #![deny(unreachable_patterns)]
1111 | ^^^^^^^^^^^^^^^^^^^^
1212
1313error: unreachable pattern
14- --> $DIR/exhaustiveness-unreachable-pattern.rs:12 :9
14+ --> $DIR/exhaustiveness-unreachable-pattern.rs:13 :9
1515 |
1616LL | (2,) => {}
1717 | ^^^^
1818
1919error: unreachable pattern
20- --> $DIR/exhaustiveness-unreachable-pattern.rs:18 :9
20+ --> $DIR/exhaustiveness-unreachable-pattern.rs:19 :9
2121 |
2222LL | (1 | 2,) => {}
2323 | ^^^^^^^^
2424
2525error: unreachable pattern
26- --> $DIR/exhaustiveness-unreachable-pattern.rs:23 :9
26+ --> $DIR/exhaustiveness-unreachable-pattern.rs:24 :9
2727 |
2828LL | (1, 3) => {}
2929 | ^^^^^^
3030
3131error: unreachable pattern
32- --> $DIR/exhaustiveness-unreachable-pattern.rs:24 :9
32+ --> $DIR/exhaustiveness-unreachable-pattern.rs:25 :9
3333 |
3434LL | (1, 4) => {}
3535 | ^^^^^^
3636
3737error: unreachable pattern
38- --> $DIR/exhaustiveness-unreachable-pattern.rs:25 :9
38+ --> $DIR/exhaustiveness-unreachable-pattern.rs:26 :9
3939 |
4040LL | (2, 4) => {}
4141 | ^^^^^^
4242
4343error: unreachable pattern
44- --> $DIR/exhaustiveness-unreachable-pattern.rs:26 :9
44+ --> $DIR/exhaustiveness-unreachable-pattern.rs:27 :9
4545 |
4646LL | (2 | 1, 4) => {}
4747 | ^^^^^^^^^^
4848
4949error: unreachable pattern
50- --> $DIR/exhaustiveness-unreachable-pattern.rs:28 :9
50+ --> $DIR/exhaustiveness-unreachable-pattern.rs:29 :9
5151 |
5252LL | (1, 4 | 5) => {}
5353 | ^^^^^^^^^^
5454
5555error: unreachable pattern
56- --> $DIR/exhaustiveness-unreachable-pattern.rs:36 :9
56+ --> $DIR/exhaustiveness-unreachable-pattern.rs:37 :9
5757 |
5858LL | (Some(1),) => {}
5959 | ^^^^^^^^^^
6060
6161error: unreachable pattern
62- --> $DIR/exhaustiveness-unreachable-pattern.rs:37 :9
62+ --> $DIR/exhaustiveness-unreachable-pattern.rs:38 :9
6363 |
6464LL | (None,) => {}
6565 | ^^^^^^^
6666
6767error: unreachable pattern
68- --> $DIR/exhaustiveness-unreachable-pattern.rs:42 :9
68+ --> $DIR/exhaustiveness-unreachable-pattern.rs:43 :9
6969 |
7070LL | ((1..=4,),) => {}
7171 | ^^^^^^^^^^^
7272
7373error: unreachable pattern
74- --> $DIR/exhaustiveness-unreachable-pattern.rs:47 :14
74+ --> $DIR/exhaustiveness-unreachable-pattern.rs:48 :14
7575 |
7676LL | (1 | 1,) => {}
7777 | ^
7878
7979error: unreachable pattern
80- --> $DIR/exhaustiveness-unreachable-pattern.rs:51 :19
80+ --> $DIR/exhaustiveness-unreachable-pattern.rs:52 :19
8181 |
8282LL | (0 | 1) | 1 => {}
8383 | ^
8484
8585error: unreachable pattern
86- --> $DIR/exhaustiveness-unreachable-pattern.rs:57 :14
86+ --> $DIR/exhaustiveness-unreachable-pattern.rs:58 :14
8787 |
8888LL | 0 | (0 | 0) => {}
8989 | ^
9090
9191error: unreachable pattern
92- --> $DIR/exhaustiveness-unreachable-pattern.rs:57 :18
92+ --> $DIR/exhaustiveness-unreachable-pattern.rs:58 :18
9393 |
9494LL | 0 | (0 | 0) => {}
9595 | ^
9696
9797error: unreachable pattern
98- --> $DIR/exhaustiveness-unreachable-pattern.rs:65 :13
98+ --> $DIR/exhaustiveness-unreachable-pattern.rs:66 :13
9999 |
100100LL | / Some(
101101LL | | 0 | 0) => {}
102102 | |______________________^
103103
104104error: unreachable pattern
105- --> $DIR/exhaustiveness-unreachable-pattern.rs:71 :15
105+ --> $DIR/exhaustiveness-unreachable-pattern.rs:72 :15
106106 |
107107LL | | 0
108108 | ^
109109
110110error: unreachable pattern
111- --> $DIR/exhaustiveness-unreachable-pattern.rs:73 :15
111+ --> $DIR/exhaustiveness-unreachable-pattern.rs:74 :15
112112 |
113113LL | | 0] => {}
114114 | ^
115115
116116error: unreachable pattern
117- --> $DIR/exhaustiveness-unreachable-pattern.rs:81:10
117+ --> $DIR/exhaustiveness-unreachable-pattern.rs:78:20
118+ |
119+ LL | (true, 0 | 0) => {}
120+ | ^
121+
122+ error: unreachable pattern
123+ --> $DIR/exhaustiveness-unreachable-pattern.rs:79:17
124+ |
125+ LL | (_, 0 | 0) => {}
126+ | ^
127+
128+ error: unreachable pattern
129+ --> $DIR/exhaustiveness-unreachable-pattern.rs:87:10
118130 |
119131LL | [1
120132 | ^
121133
122134error: unreachable pattern
123- --> $DIR/exhaustiveness-unreachable-pattern.rs:93 :10
135+ --> $DIR/exhaustiveness-unreachable-pattern.rs:99 :10
124136 |
125137LL | [true
126138 | ^^^^
127139
128140error: unreachable pattern
129- --> $DIR/exhaustiveness-unreachable-pattern.rs:100 :36
141+ --> $DIR/exhaustiveness-unreachable-pattern.rs:106 :36
130142 |
131143LL | (true | false, None | Some(true
132144 | ^^^^
133145
134146error: unreachable pattern
135- --> $DIR/exhaustiveness-unreachable-pattern.rs:105 :14
147+ --> $DIR/exhaustiveness-unreachable-pattern.rs:111 :14
136148 |
137149LL | (true
138150 | ^^^^
@@ -143,28 +155,34 @@ LL | (true | false, None | Some(t_or_f!())) => {}
143155 = note: this error originates in the macro `t_or_f` (in Nightly builds, run with -Z macro-backtrace for more info)
144156
145157error: unreachable pattern
146- --> $DIR/exhaustiveness-unreachable-pattern.rs:116 :14
158+ --> $DIR/exhaustiveness-unreachable-pattern.rs:122 :14
147159 |
148160LL | Some(0
149161 | ^
150162
151163error: unreachable pattern
152- --> $DIR/exhaustiveness-unreachable-pattern.rs:135 :19
164+ --> $DIR/exhaustiveness-unreachable-pattern.rs:141 :19
153165 |
154166LL | | false) => {}
155167 | ^^^^^
156168
157169error: unreachable pattern
158- --> $DIR/exhaustiveness-unreachable-pattern.rs:143 :15
170+ --> $DIR/exhaustiveness-unreachable-pattern.rs:149 :15
159171 |
160172LL | | true) => {}
161173 | ^^^^
162174
163175error: unreachable pattern
164- --> $DIR/exhaustiveness-unreachable-pattern.rs:149 :15
176+ --> $DIR/exhaustiveness-unreachable-pattern.rs:155 :15
165177 |
166178LL | | true,
167179 | ^^^^
168180
169- error: aborting due to 26 previous errors
181+ error: unreachable pattern
182+ --> $DIR/exhaustiveness-unreachable-pattern.rs:160:15
183+ |
184+ LL | | (y, x) => {}
185+ | ^^^^^^
186+
187+ error: aborting due to 29 previous errors
170188
0 commit comments