Commit f3d4eca
committed
Auto merge of rust-lang#120675 - oli-obk:intrinsics3.0, r=pnkfelix
Add a scheme for moving away from `extern "rust-intrinsic"` entirely
All `rust-intrinsic`s can become free functions now, either with a fallback body, or with a dummy body and an attribute, requiring backends to actually implement the intrinsic.
This PR demonstrates the dummy-body scheme with the `vtable_size` intrinsic.
cc rust-lang#63585
follow-up to rust-lang#120500
MCP at rust-lang/compiler-team#7201 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2499 | 2499 | | |
2500 | 2500 | | |
2501 | 2501 | | |
2502 | | - | |
2503 | | - | |
2504 | 2502 | | |
| 2503 | + | |
2505 | 2504 | | |
2506 | 2505 | | |
2507 | 2506 | | |
| |||
2681 | 2680 | | |
2682 | 2681 | | |
2683 | 2682 | | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
2684 | 2694 | | |
2685 | 2695 | | |
2686 | 2696 | | |
| |||
0 commit comments