Commit a353ff1
committed
Remove the
Because it never worked reliably anyway. See
https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html for more
info.
Alternatively, we could only remove `Eq` and leave `PartialEq`. We
would be able to guarantee equality or inequality in most cases, but
would be unable to prove that different handler functions are actually
different. I think users would find that confusing.
Reported by: Clippy (unpredictable_function_pointer_comparisons)PartialEq and Eq implementations from SigHandler
1 parent 31dff48 commit a353ff1
File tree
3 files changed
+20
-21
lines changed- changelog
- src/sys
- test/sys
3 files changed
+20
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
| 756 | + | |
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 115 | + | |
| 116 | + | |
119 | 117 | | |
120 | 118 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 119 | + | |
| 120 | + | |
125 | 121 | | |
126 | 122 | | |
127 | 123 | | |
| 124 | + | |
128 | 125 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 126 | + | |
133 | 127 | | |
134 | 128 | | |
135 | 129 | | |
136 | 130 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 131 | + | |
141 | 132 | | |
142 | 133 | | |
143 | 134 | | |
| |||
307 | 298 | | |
308 | 299 | | |
309 | 300 | | |
310 | | - | |
| 301 | + | |
311 | 302 | | |
312 | 303 | | |
313 | 304 | | |
314 | 305 | | |
315 | 306 | | |
316 | 307 | | |
317 | 308 | | |
318 | | - | |
| 309 | + | |
319 | 310 | | |
320 | 311 | | |
321 | | - | |
| 312 | + | |
322 | 313 | | |
323 | 314 | | |
324 | | - | |
| 315 | + | |
325 | 316 | | |
326 | 317 | | |
327 | 318 | | |
| |||
0 commit comments