-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit ea5bb99
authored
Rollup merge of #129659 - RalfJung:const-fn-lang-feat, r=fee1-dead
const fn stability checking: also check declared language features
Fixes #129656
`@oli-obk` I assume it is just an oversight that this didn't use `features().declared()`? Or is there a deep reason that this must only check `declared_lib_features`?File tree
3 files changed
+22
-7
lines changed- compiler
- rustc_const_eval/src/check_consts
- rustc_middle/src/ty
- tests/ui/consts/min_const_fn
3 files changed
+22
-7
lines changedLines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
868 | 868 |
| |
869 | 869 |
| |
870 | 870 |
| |
871 | - | ||
872 | - | ||
873 | - | ||
871 | + | ||
874 | 872 |
| |
875 | 873 |
| |
876 | 874 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3093 | 3093 |
| |
3094 | 3094 |
| |
3095 | 3095 |
| |
3096 | - | ||
3097 | - | ||
3098 | - | ||
3099 | - | ||
3096 | + | ||
3100 | 3097 |
| |
3101 | 3098 |
| |
3102 | 3099 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + |
0 commit comments