diff options
| author | Gurinder Singh <frederick.the.fool@gmail.com> | 2024-02-17 10:44:46 +0530 |
|---|---|---|
| committer | Gurinder Singh <frederick.the.fool@gmail.com> | 2024-02-17 10:44:46 +0530 |
| commit | 5010ca001cb7cad425b906136fe251e8d8192b2e (patch) | |
| tree | 08851c04b747f9144044e26f2960381c2c2febf3 /tests/ui/numbers-arithmetic | |
| parent | 405b22f1a3a39eef5f4698b3662097c8a4f6f5d0 (diff) | |
| download | rust-5010ca001cb7cad425b906136fe251e8d8192b2e.tar.gz rust-5010ca001cb7cad425b906136fe251e8d8192b2e.zip | |
Enable `ConstPropLint` for promoteds
This fixes the issue wherein the lint didn't fire for promoteds in the case of SHL/SHR operators in non-optimized builds and all arithmetic operators in optimized builds
Diffstat (limited to 'tests/ui/numbers-arithmetic')
| -rw-r--r-- | tests/ui/numbers-arithmetic/promoted_overflow_opt.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/ui/numbers-arithmetic/promoted_overflow_opt.rs b/tests/ui/numbers-arithmetic/promoted_overflow_opt.rs deleted file mode 100644 index 7004c9a3665..00000000000 --- a/tests/ui/numbers-arithmetic/promoted_overflow_opt.rs +++ /dev/null @@ -1,8 +0,0 @@ -//@ run-pass - -//@ compile-flags: -O - -fn main() { - let x = &(0u32 - 1); - assert_eq!(*x, u32::MAX) -} |
