|
1 | 1 | error[E0004]: non-exhaustive patterns: `usize::MAX..` not covered
|
2 |
| - --> $DIR/pointer-sized-int.rs:14:11 |
| 2 | + --> $DIR/pointer-sized-int.rs:13:11 |
3 | 3 | |
|
4 | 4 | LL | match 0usize {
|
5 | 5 | | ^^^^^^ pattern `usize::MAX..` not covered
|
6 | 6 | |
|
7 | 7 | = note: the matched value is of type `usize`
|
8 | 8 | = note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
|
9 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching |
10 | 9 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
11 | 10 | |
|
12 | 11 | LL ~ 0..=usize::MAX => {},
|
13 | 12 | LL + usize::MAX.. => todo!()
|
14 | 13 | |
|
15 | 14 |
|
16 | 15 | error[E0004]: non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered
|
17 |
| - --> $DIR/pointer-sized-int.rs:19:11 |
| 16 | + --> $DIR/pointer-sized-int.rs:18:11 |
18 | 17 | |
|
19 | 18 | LL | match 0isize {
|
20 | 19 | | ^^^^^^ patterns `..isize::MIN` and `isize::MAX..` not covered
|
21 | 20 | |
|
22 | 21 | = note: the matched value is of type `isize`
|
23 | 22 | = note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
|
24 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching |
25 | 23 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
|
26 | 24 | |
|
27 | 25 | LL ~ isize::MIN..=isize::MAX => {},
|
28 | 26 | LL + ..isize::MIN | isize::MAX.. => todo!()
|
29 | 27 | |
|
30 | 28 |
|
31 | 29 | error[E0004]: non-exhaustive patterns: `usize::MAX..` not covered
|
32 |
| - --> $DIR/pointer-sized-int.rs:24:8 |
| 30 | + --> $DIR/pointer-sized-int.rs:23:8 |
33 | 31 | |
|
34 | 32 | LL | m!(0usize, 0..=usize::MAX);
|
35 | 33 | | ^^^^^^ pattern `usize::MAX..` not covered
|
36 | 34 | |
|
37 | 35 | = note: the matched value is of type `usize`
|
38 | 36 | = note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
|
39 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching |
40 | 37 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
41 | 38 | |
|
42 | 39 | LL | match $s { $($t)+ => {}, usize::MAX.. => todo!() }
|
43 | 40 | | +++++++++++++++++++++++++
|
44 | 41 |
|
45 | 42 | error[E0004]: non-exhaustive patterns: `usize::MAX..` not covered
|
46 |
| - --> $DIR/pointer-sized-int.rs:26:8 |
| 43 | + --> $DIR/pointer-sized-int.rs:25:8 |
47 | 44 | |
|
48 | 45 | LL | m!(0usize, 0..5 | 5..=usize::MAX);
|
49 | 46 | | ^^^^^^ pattern `usize::MAX..` not covered
|
50 | 47 | |
|
51 | 48 | = note: the matched value is of type `usize`
|
52 | 49 | = note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
|
53 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching |
54 | 50 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
55 | 51 | |
|
56 | 52 | LL | match $s { $($t)+ => {}, usize::MAX.. => todo!() }
|
57 | 53 | | +++++++++++++++++++++++++
|
58 | 54 |
|
59 | 55 | error[E0004]: non-exhaustive patterns: `usize::MAX..` not covered
|
60 |
| - --> $DIR/pointer-sized-int.rs:28:8 |
| 56 | + --> $DIR/pointer-sized-int.rs:27:8 |
61 | 57 | |
|
62 | 58 | LL | m!(0usize, 0..usize::MAX | usize::MAX);
|
63 | 59 | | ^^^^^^ pattern `usize::MAX..` not covered
|
64 | 60 | |
|
65 | 61 | = note: the matched value is of type `usize`
|
66 | 62 | = note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
|
67 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching |
68 | 63 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
69 | 64 | |
|
70 | 65 | LL | match $s { $($t)+ => {}, usize::MAX.. => todo!() }
|
71 | 66 | | +++++++++++++++++++++++++
|
72 | 67 |
|
73 | 68 | error[E0004]: non-exhaustive patterns: `(usize::MAX.., _)` not covered
|
74 |
| - --> $DIR/pointer-sized-int.rs:30:8 |
| 69 | + --> $DIR/pointer-sized-int.rs:29:8 |
75 | 70 | |
|
76 | 71 | LL | m!((0usize, true), (0..5, true) | (5..=usize::MAX, true) | (0..=usize::MAX, false));
|
77 | 72 | | ^^^^^^^^^^^^^^ pattern `(usize::MAX.., _)` not covered
|
78 | 73 | |
|
79 | 74 | = note: the matched value is of type `(usize, bool)`
|
80 | 75 | = note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
|
81 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching |
82 | 76 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
83 | 77 | |
|
84 | 78 | LL | match $s { $($t)+ => {}, (usize::MAX.., _) => todo!() }
|
85 | 79 | | ++++++++++++++++++++++++++++++
|
86 | 80 |
|
87 | 81 | error[E0004]: non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered
|
88 |
| - --> $DIR/pointer-sized-int.rs:39:8 |
| 82 | + --> $DIR/pointer-sized-int.rs:38:8 |
89 | 83 | |
|
90 | 84 | LL | m!(0isize, isize::MIN..=isize::MAX);
|
91 | 85 | | ^^^^^^ patterns `..isize::MIN` and `isize::MAX..` not covered
|
92 | 86 | |
|
93 | 87 | = note: the matched value is of type `isize`
|
94 | 88 | = note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
|
95 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching |
96 | 89 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
|
97 | 90 | |
|
98 | 91 | LL | match $s { $($t)+ => {}, ..isize::MIN | isize::MAX.. => todo!() }
|
99 | 92 | | ++++++++++++++++++++++++++++++++++++++++
|
100 | 93 |
|
101 | 94 | error[E0004]: non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered
|
102 |
| - --> $DIR/pointer-sized-int.rs:41:8 |
| 95 | + --> $DIR/pointer-sized-int.rs:40:8 |
103 | 96 | |
|
104 | 97 | LL | m!(0isize, isize::MIN..5 | 5..=isize::MAX);
|
105 | 98 | | ^^^^^^ patterns `..isize::MIN` and `isize::MAX..` not covered
|
106 | 99 | |
|
107 | 100 | = note: the matched value is of type `isize`
|
108 | 101 | = note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
|
109 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching |
110 | 102 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
|
111 | 103 | |
|
112 | 104 | LL | match $s { $($t)+ => {}, ..isize::MIN | isize::MAX.. => todo!() }
|
113 | 105 | | ++++++++++++++++++++++++++++++++++++++++
|
114 | 106 |
|
115 | 107 | error[E0004]: non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered
|
116 |
| - --> $DIR/pointer-sized-int.rs:43:8 |
| 108 | + --> $DIR/pointer-sized-int.rs:42:8 |
117 | 109 | |
|
118 | 110 | LL | m!(0isize, isize::MIN..=-1 | 0 | 1..=isize::MAX);
|
119 | 111 | | ^^^^^^ patterns `..isize::MIN` and `isize::MAX..` not covered
|
120 | 112 | |
|
121 | 113 | = note: the matched value is of type `isize`
|
122 | 114 | = note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
|
123 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching |
124 | 115 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
|
125 | 116 | |
|
126 | 117 | LL | match $s { $($t)+ => {}, ..isize::MIN | isize::MAX.. => todo!() }
|
127 | 118 | | ++++++++++++++++++++++++++++++++++++++++
|
128 | 119 |
|
129 | 120 | error[E0004]: non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered
|
130 |
| - --> $DIR/pointer-sized-int.rs:45:8 |
| 121 | + --> $DIR/pointer-sized-int.rs:44:8 |
131 | 122 | |
|
132 | 123 | LL | m!(0isize, isize::MIN..isize::MAX | isize::MAX);
|
133 | 124 | | ^^^^^^ patterns `..isize::MIN` and `isize::MAX..` not covered
|
134 | 125 | |
|
135 | 126 | = note: the matched value is of type `isize`
|
136 | 127 | = note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
|
137 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching |
138 | 128 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
|
139 | 129 | |
|
140 | 130 | LL | match $s { $($t)+ => {}, ..isize::MIN | isize::MAX.. => todo!() }
|
141 | 131 | | ++++++++++++++++++++++++++++++++++++++++
|
142 | 132 |
|
143 | 133 | error[E0004]: non-exhaustive patterns: `(..isize::MIN, _)` and `(isize::MAX.., _)` not covered
|
144 |
| - --> $DIR/pointer-sized-int.rs:48:9 |
| 134 | + --> $DIR/pointer-sized-int.rs:47:9 |
145 | 135 | |
|
146 | 136 | LL | (0isize, true),
|
147 | 137 | | ^^^^^^^^^^^^^^ patterns `(..isize::MIN, _)` and `(isize::MAX.., _)` not covered
|
148 | 138 | |
|
149 | 139 | = note: the matched value is of type `(isize, bool)`
|
150 | 140 | = note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
|
151 |
| - = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching |
152 | 141 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
|
153 | 142 | |
|
154 | 143 | LL | match $s { $($t)+ => {}, (..isize::MIN, _) | (isize::MAX.., _) => todo!() }
|
155 | 144 | | ++++++++++++++++++++++++++++++++++++++++++++++++++
|
156 | 145 |
|
157 | 146 | error[E0004]: non-exhaustive patterns: type `usize` is non-empty
|
158 |
| - --> $DIR/pointer-sized-int.rs:59:11 |
| 147 | + --> $DIR/pointer-sized-int.rs:58:11 |
159 | 148 | |
|
160 | 149 | LL | match 7usize {}
|
161 | 150 | | ^^^^^^
|
|
0 commit comments