diff options
| author | bors <bors@rust-lang.org> | 2024-05-23 04:03:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-23 04:03:14 +0000 |
| commit | 5293c6adb76a62dd2ca40e739312c2b2f3947eaa (patch) | |
| tree | dd509cb06cc3aeb309ec706f3f310ee4b5a14ae5 /tests/ui/consts | |
| parent | 9cdfe285ca724c801dc9f78d22b24ea69b787f26 (diff) | |
| parent | cb5319483e0691393bd3e09a808f734321a23d20 (diff) | |
| download | rust-5293c6adb76a62dd2ca40e739312c2b2f3947eaa.tar.gz rust-5293c6adb76a62dd2ca40e739312c2b2f3947eaa.zip | |
Auto merge of #125359 - RalfJung:interpret-overflowing-ops, r=oli-obk
interpret: make overflowing binops just normal binops Follow-up to https://github.com/rust-lang/rust/pull/125173 (Cc `@scottmcm)`
Diffstat (limited to 'tests/ui/consts')
| -rw-r--r-- | tests/ui/consts/const-int-unchecked.stderr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/consts/const-int-unchecked.stderr b/tests/ui/consts/const-int-unchecked.stderr index 84b222972a1..3130603231e 100644 --- a/tests/ui/consts/const-int-unchecked.stderr +++ b/tests/ui/consts/const-int-unchecked.stderr @@ -242,19 +242,19 @@ error[E0080]: evaluation of constant value failed --> $DIR/const-int-unchecked.rs:123:25 | LL | const _: u16 = unsafe { std::intrinsics::unchecked_add(40000u16, 30000) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow executing `unchecked_add` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ arithmetic overflow in `unchecked_add` error[E0080]: evaluation of constant value failed --> $DIR/const-int-unchecked.rs:126:25 | LL | const _: u32 = unsafe { std::intrinsics::unchecked_sub(14u32, 22) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow executing `unchecked_sub` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ arithmetic overflow in `unchecked_sub` error[E0080]: evaluation of constant value failed --> $DIR/const-int-unchecked.rs:129:25 | LL | const _: u16 = unsafe { std::intrinsics::unchecked_mul(300u16, 250u16) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow executing `unchecked_mul` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ arithmetic overflow in `unchecked_mul` error[E0080]: evaluation of constant value failed --> $DIR/const-int-unchecked.rs:132:25 |
