Skip to content

Commit 5b295b7

Browse files
authored
Remove unnecessary target-c-int-width from target specs (#15759)
### What does this PR try to resolve? This is not necessary, as 32 is the default, and actually of the wrong type now since it's a number now. When planning to make these type mismatches error in rust-lang/rust#144218, cargo would fail here, so I just removed it. This custom target test very much shows how Cargo should be a subtree, in this case it was fine because there's a compatible fix that I can push now, otherwise it would have been very annoying. ### How to test and review this PR? If the test suite passes, it works
2 parents f5b3a6b + a6e1f11 commit 5b295b7

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

tests/build-std/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ fn cross_custom() {
271271
"arch": "x86_64",
272272
"target-endian": "little",
273273
"target-pointer-width": "64",
274-
"target-c-int-width": "32",
275274
"os": "none",
276275
"linker-flavor": "ld.lld"
277276
}
@@ -312,7 +311,6 @@ fn custom_test_framework() {
312311
"arch": "x86_64",
313312
"target-endian": "little",
314313
"target-pointer-width": "64",
315-
"target-c-int-width": "32",
316314
"os": "none",
317315
"linker-flavor": "ld.lld",
318316
"linker": "rust-lld",

tests/testsuite/custom_target.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const SIMPLE_SPEC: &str = r#"
3838
"arch": "x86_64",
3939
"target-endian": "little",
4040
"target-pointer-width": "64",
41-
"target-c-int-width": "32",
4241
"os": "none",
4342
"linker-flavor": "ld.lld",
4443
"linker": "rust-lld",

0 commit comments

Comments
 (0)