From fd59d44f5880fea109fe68e31fab2486cd686fc6 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 21 Sep 2022 13:05:20 +0200 Subject: make const_err a hard error --- src/test/ui/consts/const-int-arithmetic-overflow.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/test/ui/consts/const-int-arithmetic-overflow.rs') diff --git a/src/test/ui/consts/const-int-arithmetic-overflow.rs b/src/test/ui/consts/const-int-arithmetic-overflow.rs index 99bbeaafda5..6446e94513c 100644 --- a/src/test/ui/consts/const-int-arithmetic-overflow.rs +++ b/src/test/ui/consts/const-int-arithmetic-overflow.rs @@ -1,6 +1,5 @@ // run-pass // compile-flags: -O -#![allow(const_err)] // Make sure arithmetic unary/binary ops actually return the right result, even when overflowing. // We have to put them in `const fn` and turn on optimizations to avoid overflow checks. -- cgit 1.4.1-3-g733a5