|
1 | 1 | error: `(-6_i32)` is never greater than `9` and has therefore no effect
|
2 |
| - --> tests/ui/unnecessary_min_max.rs:5:13 |
| 2 | + --> tests/ui/unnecessary_min_or_max.rs:5:13 |
3 | 3 | |
|
4 | 4 | LL | let _ = (-6_i32).min(9);
|
5 | 5 | | ^^^^^^^^^^^^^^^ help: try: `(-6_i32)`
|
6 | 6 | |
|
7 |
| - = note: `-D clippy::unnecessary-min-max` implied by `-D warnings` |
8 |
| - = help: to override `-D warnings` add `#[allow(clippy::unnecessary_min_max)]` |
| 7 | + = note: `-D clippy::unnecessary-min-or-max` implied by `-D warnings` |
| 8 | + = help: to override `-D warnings` add `#[allow(clippy::unnecessary_min_or_max)]` |
9 | 9 |
|
10 | 10 | error: `(-6_i32)` is never greater than `9` and has therefore no effect
|
11 |
| - --> tests/ui/unnecessary_min_max.rs:6:13 |
| 11 | + --> tests/ui/unnecessary_min_or_max.rs:6:13 |
12 | 12 | |
|
13 | 13 | LL | let _ = (-6_i32).max(9);
|
14 | 14 | | ^^^^^^^^^^^^^^^ help: try: `9`
|
15 | 15 |
|
16 | 16 | error: `9_u32` is never smaller than `6` and has therefore no effect
|
17 |
| - --> tests/ui/unnecessary_min_max.rs:7:13 |
| 17 | + --> tests/ui/unnecessary_min_or_max.rs:7:13 |
18 | 18 | |
|
19 | 19 | LL | let _ = 9_u32.min(6);
|
20 | 20 | | ^^^^^^^^^^^^ help: try: `6`
|
21 | 21 |
|
22 | 22 | error: `9_u32` is never smaller than `6` and has therefore no effect
|
23 |
| - --> tests/ui/unnecessary_min_max.rs:8:13 |
| 23 | + --> tests/ui/unnecessary_min_or_max.rs:8:13 |
24 | 24 | |
|
25 | 25 | LL | let _ = 9_u32.max(6);
|
26 | 26 | | ^^^^^^^^^^^^ help: try: `9_u32`
|
27 | 27 |
|
28 | 28 | error: `6` is never greater than `7_u8` and has therefore no effect
|
29 |
| - --> tests/ui/unnecessary_min_max.rs:9:13 |
| 29 | + --> tests/ui/unnecessary_min_or_max.rs:9:13 |
30 | 30 | |
|
31 | 31 | LL | let _ = 6.min(7_u8);
|
32 | 32 | | ^^^^^^^^^^^ help: try: `6`
|
33 | 33 |
|
34 | 34 | error: `6` is never greater than `7_u8` and has therefore no effect
|
35 |
| - --> tests/ui/unnecessary_min_max.rs:10:13 |
| 35 | + --> tests/ui/unnecessary_min_or_max.rs:10:13 |
36 | 36 | |
|
37 | 37 | LL | let _ = 6.max(7_u8);
|
38 | 38 | | ^^^^^^^^^^^ help: try: `7_u8`
|
39 | 39 |
|
40 | 40 | error: `i32::MIN` is never greater than `x` and has therefore no effect
|
41 |
| - --> tests/ui/unnecessary_min_max.rs:14:13 |
| 41 | + --> tests/ui/unnecessary_min_or_max.rs:14:13 |
42 | 42 | |
|
43 | 43 | LL | let _ = i32::MIN.min(x);
|
44 | 44 | | ^^^^^^^^^^^^^^^ help: try: `i32::MIN`
|
45 | 45 |
|
46 | 46 | error: `i32::MIN` is never greater than `x` and has therefore no effect
|
47 |
| - --> tests/ui/unnecessary_min_max.rs:15:13 |
| 47 | + --> tests/ui/unnecessary_min_or_max.rs:15:13 |
48 | 48 | |
|
49 | 49 | LL | let _ = i32::MIN.max(x);
|
50 | 50 | | ^^^^^^^^^^^^^^^ help: try: `x`
|
51 | 51 |
|
52 | 52 | error: `x` is never smaller than `i32::MIN` and has therefore no effect
|
53 |
| - --> tests/ui/unnecessary_min_max.rs:16:13 |
| 53 | + --> tests/ui/unnecessary_min_or_max.rs:16:13 |
54 | 54 | |
|
55 | 55 | LL | let _ = x.min(i32::MIN);
|
56 | 56 | | ^^^^^^^^^^^^^^^ help: try: `i32::MIN`
|
57 | 57 |
|
58 | 58 | error: `x` is never smaller than `i32::MIN` and has therefore no effect
|
59 |
| - --> tests/ui/unnecessary_min_max.rs:17:13 |
| 59 | + --> tests/ui/unnecessary_min_or_max.rs:17:13 |
60 | 60 | |
|
61 | 61 | LL | let _ = x.max(i32::MIN);
|
62 | 62 | | ^^^^^^^^^^^^^^^ help: try: `x`
|
63 | 63 |
|
64 | 64 | error: `i32::MAX` is never smaller than `x` and has therefore no effect
|
65 |
| - --> tests/ui/unnecessary_min_max.rs:20:13 |
| 65 | + --> tests/ui/unnecessary_min_or_max.rs:20:13 |
66 | 66 | |
|
67 | 67 | LL | let _ = i32::MAX.min(x);
|
68 | 68 | | ^^^^^^^^^^^^^^^ help: try: `x`
|
69 | 69 |
|
70 | 70 | error: `i32::MAX` is never smaller than `x` and has therefore no effect
|
71 |
| - --> tests/ui/unnecessary_min_max.rs:21:13 |
| 71 | + --> tests/ui/unnecessary_min_or_max.rs:21:13 |
72 | 72 | |
|
73 | 73 | LL | let _ = i32::MAX.max(x);
|
74 | 74 | | ^^^^^^^^^^^^^^^ help: try: `i32::MAX`
|
75 | 75 |
|
76 | 76 | error: `x` is never greater than `i32::MAX` and has therefore no effect
|
77 |
| - --> tests/ui/unnecessary_min_max.rs:22:13 |
| 77 | + --> tests/ui/unnecessary_min_or_max.rs:22:13 |
78 | 78 | |
|
79 | 79 | LL | let _ = x.min(i32::MAX);
|
80 | 80 | | ^^^^^^^^^^^^^^^ help: try: `x`
|
81 | 81 |
|
82 | 82 | error: `x` is never greater than `i32::MAX` and has therefore no effect
|
83 |
| - --> tests/ui/unnecessary_min_max.rs:23:13 |
| 83 | + --> tests/ui/unnecessary_min_or_max.rs:23:13 |
84 | 84 | |
|
85 | 85 | LL | let _ = x.max(i32::MAX);
|
86 | 86 | | ^^^^^^^^^^^^^^^ help: try: `i32::MAX`
|
87 | 87 |
|
88 | 88 | error: `u32::MAX` is never smaller than `x` and has therefore no effect
|
89 |
| - --> tests/ui/unnecessary_min_max.rs:27:13 |
| 89 | + --> tests/ui/unnecessary_min_or_max.rs:27:13 |
90 | 90 | |
|
91 | 91 | LL | let _ = u32::MAX.min(x);
|
92 | 92 | | ^^^^^^^^^^^^^^^ help: try: `x`
|
93 | 93 |
|
94 | 94 | error: `u32::MAX` is never smaller than `x` and has therefore no effect
|
95 |
| - --> tests/ui/unnecessary_min_max.rs:28:13 |
| 95 | + --> tests/ui/unnecessary_min_or_max.rs:28:13 |
96 | 96 | |
|
97 | 97 | LL | let _ = u32::MAX.max(x);
|
98 | 98 | | ^^^^^^^^^^^^^^^ help: try: `u32::MAX`
|
99 | 99 |
|
100 | 100 | error: `x` is never greater than `u32::MAX` and has therefore no effect
|
101 |
| - --> tests/ui/unnecessary_min_max.rs:29:13 |
| 101 | + --> tests/ui/unnecessary_min_or_max.rs:29:13 |
102 | 102 | |
|
103 | 103 | LL | let _ = x.min(u32::MAX);
|
104 | 104 | | ^^^^^^^^^^^^^^^ help: try: `x`
|
105 | 105 |
|
106 | 106 | error: `x` is never greater than `u32::MAX` and has therefore no effect
|
107 |
| - --> tests/ui/unnecessary_min_max.rs:30:13 |
| 107 | + --> tests/ui/unnecessary_min_or_max.rs:30:13 |
108 | 108 | |
|
109 | 109 | LL | let _ = x.max(u32::MAX);
|
110 | 110 | | ^^^^^^^^^^^^^^^ help: try: `u32::MAX`
|
111 | 111 |
|
112 | 112 | error: `u32::MIN` is never greater than `x` and has therefore no effect
|
113 |
| - --> tests/ui/unnecessary_min_max.rs:33:13 |
| 113 | + --> tests/ui/unnecessary_min_or_max.rs:33:13 |
114 | 114 | |
|
115 | 115 | LL | let _ = u32::MIN.min(x);
|
116 | 116 | | ^^^^^^^^^^^^^^^ help: try: `u32::MIN`
|
117 | 117 |
|
118 | 118 | error: `u32::MIN` is never greater than `x` and has therefore no effect
|
119 |
| - --> tests/ui/unnecessary_min_max.rs:34:13 |
| 119 | + --> tests/ui/unnecessary_min_or_max.rs:34:13 |
120 | 120 | |
|
121 | 121 | LL | let _ = u32::MIN.max(x);
|
122 | 122 | | ^^^^^^^^^^^^^^^ help: try: `x`
|
123 | 123 |
|
124 | 124 | error: `x` is never smaller than `u32::MIN` and has therefore no effect
|
125 |
| - --> tests/ui/unnecessary_min_max.rs:35:13 |
| 125 | + --> tests/ui/unnecessary_min_or_max.rs:35:13 |
126 | 126 | |
|
127 | 127 | LL | let _ = x.min(u32::MIN);
|
128 | 128 | | ^^^^^^^^^^^^^^^ help: try: `u32::MIN`
|
129 | 129 |
|
130 | 130 | error: `x` is never smaller than `u32::MIN` and has therefore no effect
|
131 |
| - --> tests/ui/unnecessary_min_max.rs:36:13 |
| 131 | + --> tests/ui/unnecessary_min_or_max.rs:36:13 |
132 | 132 | |
|
133 | 133 | LL | let _ = x.max(u32::MIN);
|
134 | 134 | | ^^^^^^^^^^^^^^^ help: try: `x`
|
135 | 135 |
|
136 | 136 | error: `0` is never greater than `x` and has therefore no effect
|
137 |
| - --> tests/ui/unnecessary_min_max.rs:39:13 |
| 137 | + --> tests/ui/unnecessary_min_or_max.rs:39:13 |
138 | 138 | |
|
139 | 139 | LL | let _ = 0.min(x);
|
140 | 140 | | ^^^^^^^^ help: try: `0`
|
141 | 141 |
|
142 | 142 | error: `0` is never greater than `x` and has therefore no effect
|
143 |
| - --> tests/ui/unnecessary_min_max.rs:40:13 |
| 143 | + --> tests/ui/unnecessary_min_or_max.rs:40:13 |
144 | 144 | |
|
145 | 145 | LL | let _ = 0.max(x);
|
146 | 146 | | ^^^^^^^^ help: try: `x`
|
147 | 147 |
|
148 | 148 | error: `x` is never smaller than `0_u32` and has therefore no effect
|
149 |
| - --> tests/ui/unnecessary_min_max.rs:41:13 |
| 149 | + --> tests/ui/unnecessary_min_or_max.rs:41:13 |
150 | 150 | |
|
151 | 151 | LL | let _ = x.min(0_u32);
|
152 | 152 | | ^^^^^^^^^^^^ help: try: `0_u32`
|
153 | 153 |
|
154 | 154 | error: `x` is never smaller than `0_u32` and has therefore no effect
|
155 |
| - --> tests/ui/unnecessary_min_max.rs:42:13 |
| 155 | + --> tests/ui/unnecessary_min_or_max.rs:42:13 |
156 | 156 | |
|
157 | 157 | LL | let _ = x.max(0_u32);
|
158 | 158 | | ^^^^^^^^^^^^ help: try: `x`
|
|
0 commit comments