This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit fb5bd7f
authored
Rollup merge of rust-lang#132449 - RalfJung:is_val_statically_known, r=compiler-errors
mark is_val_statically_known intrinsic as stably const-callable
The intrinsic doesn't actually "do" anything in terms of language semantics, and we are already using it in stable const fn. So let's just properly mark it as stably const-callable to avoid needing `rustc_allow_const_fn_unstable` (and thus reducing noise and keeping the remaining `rustc_allow_const_fn_unstable` as a more clear signal).
Cc `@rust-lang/lang` usually you have to approve exposing intrinsics in const, but this intrinsic is basically just a compiler implementation detail. So FCP doesn't seem necessary.
Cc `@rust-lang/wg-const-eval`File tree
5 files changed
+6
-10
lines changed- library/core/src
- intrinsics
- num
- tests/ui/consts
5 files changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3535 | 3535 | | |
3536 | 3536 | | |
3537 | 3537 | | |
3538 | | - | |
3539 | 3538 | | |
3540 | 3539 | | |
3541 | 3540 | | |
| |||
3548 | 3547 | | |
3549 | 3548 | | |
3550 | 3549 | | |
3551 | | - | |
3552 | 3550 | | |
3553 | 3551 | | |
3554 | 3552 | | |
| |||
3581 | 3579 | | |
3582 | 3580 | | |
3583 | 3581 | | |
3584 | | - | |
3585 | 3582 | | |
3586 | 3583 | | |
3587 | 3584 | | |
| |||
3598 | 3595 | | |
3599 | 3596 | | |
3600 | 3597 | | |
3601 | | - | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
| 3602 | + | |
3602 | 3603 | | |
3603 | 3604 | | |
3604 | 3605 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2242 | 2242 | | |
2243 | 2243 | | |
2244 | 2244 | | |
2245 | | - | |
2246 | 2245 | | |
2247 | 2246 | | |
2248 | 2247 | | |
| |||
2808 | 2807 | | |
2809 | 2808 | | |
2810 | 2809 | | |
2811 | | - | |
2812 | 2810 | | |
2813 | 2811 | | |
2814 | 2812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2251 | 2251 | | |
2252 | 2252 | | |
2253 | 2253 | | |
2254 | | - | |
2255 | 2254 | | |
2256 | 2255 | | |
2257 | 2256 | | |
| |||
2791 | 2790 | | |
2792 | 2791 | | |
2793 | 2792 | | |
2794 | | - | |
2795 | 2793 | | |
2796 | 2794 | | |
2797 | 2795 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments