Commit ebdf2ab
committed
Auto merge of #146271 - niacdoial:improperctypes-refactor1, r=tgross35
lint ImproperCTypes: refactor linting architecture (part 1)
This is the first PR in an effort to split #134697 into individually-mergeable parts.
This one focuses on properly packaging the lint and its tests, as well as properly separate the "linting" and "type-checking" code.
There is exactly one user-visible change: the safety of `Option<Box<FFISafePointee>>` is now the same in `extern` blocks and function definitions: it is safe.
r? `@tgross35` because you are already looking at the originalFile tree
44 files changed
+1143
-1002
lines changed- compiler/rustc_lint
- src
- types
- tests/ui/lint/improper-ctypes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+1143
-1002
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4022 | 4022 | | |
4023 | 4023 | | |
4024 | 4024 | | |
| 4025 | + | |
4025 | 4026 | | |
4026 | 4027 | | |
4027 | 4028 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
218 | 216 | | |
219 | 217 | | |
220 | | - | |
| 218 | + | |
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
| |||
236 | 234 | | |
237 | 235 | | |
238 | 236 | | |
239 | | - | |
240 | 237 | | |
241 | 238 | | |
242 | 239 | | |
| |||
307 | 304 | | |
308 | 305 | | |
309 | 306 | | |
310 | | - | |
311 | 307 | | |
312 | 308 | | |
313 | 309 | | |
314 | 310 | | |
315 | 311 | | |
316 | 312 | | |
317 | 313 | | |
318 | | - | |
319 | | - | |
320 | | - | |
| 314 | + | |
321 | 315 | | |
322 | 316 | | |
323 | | - | |
| 317 | + | |
324 | 318 | | |
325 | 319 | | |
326 | 320 | | |
327 | | - | |
328 | | - | |
329 | | - | |
| 321 | + | |
330 | 322 | | |
331 | 323 | | |
332 | 324 | | |
333 | 325 | | |
334 | | - | |
335 | | - | |
336 | | - | |
| 326 | + | |
337 | 327 | | |
338 | 328 | | |
339 | 329 | | |
| |||
347 | 337 | | |
348 | 338 | | |
349 | 339 | | |
350 | | - | |
| 340 | + | |
351 | 341 | | |
352 | 342 | | |
353 | 343 | | |
354 | 344 | | |
355 | 345 | | |
356 | 346 | | |
357 | 347 | | |
358 | | - | |
359 | 348 | | |
360 | 349 | | |
361 | 350 | | |
| |||
383 | 372 | | |
384 | 373 | | |
385 | 374 | | |
386 | | - | |
| 375 | + | |
387 | 376 | | |
388 | 377 | | |
389 | 378 | | |
390 | 379 | | |
391 | 380 | | |
392 | 381 | | |
393 | | - | |
| 382 | + | |
394 | 383 | | |
395 | 384 | | |
396 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
| 197 | + | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| |||
0 commit comments