Commit 4c48f5a
authored
Rollup merge of rust-lang#71886 - t-rapp:tr-saturating-funcs, r=dtolnay
Stabilize saturating_abs and saturating_neg
Stabilizes the following signed integer functions with saturation mechanics:
* saturating_abs()
* saturating_neg()
Closes rust-lang#59983File tree
3 files changed
+4
-8
lines changed- src
- libcore
- num
- tests
- test/ui/consts
3 files changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
1168 | | - | |
1169 | | - | |
| 1168 | + | |
1170 | 1169 | | |
1171 | 1170 | | |
1172 | 1171 | | |
| |||
1175 | 1174 | | |
1176 | 1175 | | |
1177 | 1176 | | |
1178 | | - | |
| 1177 | + | |
1179 | 1178 | | |
1180 | 1179 | | |
1181 | 1180 | | |
| |||
1192 | 1191 | | |
1193 | 1192 | | |
1194 | 1193 | | |
1195 | | - | |
1196 | | - | |
| 1194 | + | |
1197 | 1195 | | |
1198 | 1196 | | |
1199 | 1197 | | |
| |||
1202 | 1200 | | |
1203 | 1201 | | |
1204 | 1202 | | |
1205 | | - | |
| 1203 | + | |
1206 | 1204 | | |
1207 | 1205 | | |
1208 | 1206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
0 commit comments