diff options
| author | bstrie <bstrie@thinwsl> | 2020-10-24 19:21:40 -0400 |
|---|---|---|
| committer | bstrie <bstrie@thinwsl> | 2020-11-29 00:55:55 -0500 |
| commit | 90a2e5e3fe59a254d4d707aa291517b3791ea5a6 (patch) | |
| tree | d69ece1bc91aeb70d7bbf1d1180107eb90d5225f /src/test/codegen | |
| parent | 914d07ae5f90f01f138e66807873295fceaa9a26 (diff) | |
| download | rust-90a2e5e3fe59a254d4d707aa291517b3791ea5a6.tar.gz rust-90a2e5e3fe59a254d4d707aa291517b3791ea5a6.zip | |
Update tests to remove old numeric constants
Part of #68490. Care has been taken to leave the old consts where appropriate, for testing backcompat regressions, module shadowing, etc. The intrinsics docs were accidentally referring to some methods on f64 as std::f64, which I changed due to being contrary with how we normally disambiguate the shadow module from the primitive. In one other place I changed std::u8 to std::ops since it was just testing path handling in macros. For places which have legitimate uses of the old consts, deprecated attributes have been optimistically inserted. Although currently unnecessary, they exist to emphasize to any future deprecation effort the necessity of these specific symbols and prevent them from being accidentally removed.
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/enum-discriminant-value.rs | 8 | ||||
| -rw-r--r-- | src/test/codegen/issue-56927.rs | 1 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/test/codegen/enum-discriminant-value.rs b/src/test/codegen/enum-discriminant-value.rs index f9da987765f..cc14c212002 100644 --- a/src/test/codegen/enum-discriminant-value.rs +++ b/src/test/codegen/enum-discriminant-value.rs @@ -4,14 +4,14 @@ #[repr(i64)] pub enum I64 { - I64Min = std::i64::MIN, - I64Max = std::i64::MAX, + I64Min = i64::MIN, + I64Max = i64::MAX, } #[repr(u64)] pub enum U64 { - U64Min = std::u64::MIN, - U64Max = std::u64::MAX, + U64Min = u64::MIN, + U64Max = u64::MAX, } fn main() { diff --git a/src/test/codegen/issue-56927.rs b/src/test/codegen/issue-56927.rs index d502673e2f8..2c84015d5e2 100644 --- a/src/test/codegen/issue-56927.rs +++ b/src/test/codegen/issue-56927.rs @@ -1,7 +1,6 @@ // compile-flags: -C no-prepopulate-passes #![crate_type="rlib"] -use std::usize; #[repr(align(16))] pub struct S { |
