-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
rust/src/tools/compiletest/src/util.rs
Lines 103 to 109 in 4bb5d35
pub fn get_pointer_width(triple: &str) -> &'static str { | |
if (triple.contains("64") && !triple.ends_with("gnux32")) || triple.starts_with("s390x") { | |
"64bit" | |
} else { | |
"32bit" | |
} | |
} |
We should also support
"16bit"
here.
Once that's supported, the precise_pointer_matching
test can be updated:
rust/src/test/ui/precise_pointer_size_matching.rs
Lines 1 to 6 in 4bb5d35
// normalize-stderr-32bit: "-2147483648isize" -> "$$ISIZE_MIN" | |
// normalize-stderr-64bit: "-9223372036854775808isize" -> "$$ISIZE_MIN" | |
// normalize-stderr-32bit: "2147483647isize" -> "$$ISIZE_MAX" | |
// normalize-stderr-64bit: "9223372036854775807isize" -> "$$ISIZE_MAX" | |
// normalize-stderr-32bit: "4294967295usize" -> "$$USIZE_MAX" | |
// normalize-stderr-64bit: "18446744073709551615usize" -> "$$USIZE_MAX" |
Metadata
Metadata
Assignees
Labels
A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.