This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 4edac0a
authored
Unrolled build for rust-lang#117656
Rollup merge of rust-lang#117656 - ChrisDenton:invalid, r=thomcc
Update windows-bindgen and define `INVALID_HANDLE_VALUE` ourselves
We generate bindings to the Windows API via the `windows-bindgen` crate, which is ultimately what's also used to generate the `windows-sys` and `windows` crates. However, there currently is some custom sauce just for std which makes it a bit different from the vanilla bindings. I would love for us to reduce and eventually remove the differences entirely so that std is using the exact same bindings as everyone else. Maybe in the future we can even just have a normal dependency on `windows-sys`.
This PR removes one of those special things. Our definition of `INVALID_HANDLE_VALUE` relies on an experimental nightly feature for strict provenance, so lets bring that back in house. It also excludes it from the codegen step though that isn't strictly necessary as we override it in any case.
This PR also updates windows-bingen to 0.52.0.File tree
5 files changed
+13
-12
lines changed- library/std/src/sys/windows
- c
- src/tools/generate-windows-sys
5 files changed
+13
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6072 | 6072 | | |
6073 | 6073 | | |
6074 | 6074 | | |
6075 | | - | |
| 6075 | + | |
6076 | 6076 | | |
6077 | | - | |
| 6077 | + | |
6078 | 6078 | | |
6079 | 6079 | | |
6080 | 6080 | | |
| |||
6084 | 6084 | | |
6085 | 6085 | | |
6086 | 6086 | | |
6087 | | - | |
| 6087 | + | |
6088 | 6088 | | |
6089 | | - | |
| 6089 | + | |
6090 | 6090 | | |
6091 | 6091 | | |
6092 | 6092 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
1923 | 1924 | | |
1924 | 1925 | | |
1925 | 1926 | | |
1926 | | - | |
1927 | 1927 | | |
1928 | 1928 | | |
1929 | 1929 | | |
| |||
2483 | 2483 | | |
2484 | 2484 | | |
2485 | 2485 | | |
2486 | | - | |
2487 | 2486 | | |
2488 | 2487 | | |
2489 | 2488 | | |
| |||
2492 | 2491 | | |
2493 | 2492 | | |
2494 | 2493 | | |
| 2494 | + | |
2495 | 2495 | | |
2496 | 2496 | | |
2497 | 2497 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
| 622 | + | |
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
| 872 | + | |
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
| |||
3498 | 3498 | | |
3499 | 3499 | | |
3500 | 3500 | | |
3501 | | - | |
3502 | 3501 | | |
3503 | 3502 | | |
3504 | 3503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
0 commit comments