Commit 7775dff
committed
alloc:
They are infallible, and could not be actually used because
they will trigger an error when monomorphized, but it is better
to just remove them.
Link: Rust-for-Linux/linux#402
Suggested-by: Gary Guo <[email protected]>
Signed-off-by: Miguel Ojeda <[email protected]>no_global_oom_handling: disable new()s, pin()s, etc.1 parent f9fa13f commit 7775dff
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| |||
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
| 350 | + | |
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| |||
381 | 383 | | |
382 | 384 | | |
383 | 385 | | |
| 386 | + | |
384 | 387 | | |
385 | 388 | | |
386 | 389 | | |
| |||
577 | 580 | | |
578 | 581 | | |
579 | 582 | | |
| 583 | + | |
580 | 584 | | |
581 | 585 | | |
582 | 586 | | |
| |||
1473 | 1477 | | |
1474 | 1478 | | |
1475 | 1479 | | |
| 1480 | + | |
1476 | 1481 | | |
1477 | 1482 | | |
1478 | 1483 | | |
| |||
1731 | 1736 | | |
1732 | 1737 | | |
1733 | 1738 | | |
| 1739 | + | |
1734 | 1740 | | |
1735 | 1741 | | |
1736 | 1742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| 336 | + | |
335 | 337 | | |
336 | 338 | | |
337 | 339 | | |
| |||
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
| 370 | + | |
368 | 371 | | |
369 | 372 | | |
370 | 373 | | |
| |||
485 | 488 | | |
486 | 489 | | |
487 | 490 | | |
| 491 | + | |
488 | 492 | | |
489 | 493 | | |
490 | 494 | | |
| |||
2274 | 2278 | | |
2275 | 2279 | | |
2276 | 2280 | | |
| 2281 | + | |
2277 | 2282 | | |
2278 | 2283 | | |
2279 | 2284 | | |
| |||
2298 | 2303 | | |
2299 | 2304 | | |
2300 | 2305 | | |
| 2306 | + | |
2301 | 2307 | | |
2302 | 2308 | | |
2303 | 2309 | | |
| |||
0 commit comments