about summary refs log tree commit diff
path: root/src/test/compile-fail/consts
AgeCommit message (Collapse)AuthorLines
2020-12-29Remove `compile-fail` test suiteVadim Petrochenkov-28/+0
2020-11-29Update tests to remove old numeric constantsbstrie-1/+1
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.
2020-11-18change error for `LayoutErr::SizeOverflow`Bastian Kauschke-1/+1
2020-09-29Update `compile-fail` testDylan MacKenzie-0/+2
2020-09-22Bless compile-failDylan MacKenzie-3/+1
2020-04-29Bless testsDylan MacKenzie-1/+0
2020-02-15remove no-longer-needed testRalf Jung-20/+0
2020-02-15fix compile-failRalf Jung-4/+4
2020-01-09Update testsVadim Petrochenkov-0/+1
2019-12-07Auto merge of #66927 - RalfJung:engines-dont-panic, r=oli-obkbors-1/+0
Miri core engine: use throw_ub instead of throw_panic See https://github.com/rust-lang/rust/issues/66902 for context: panicking is not really an "interpreter error", but just part of a normal Rust execution. This is a first step towards removing the `InterpError::Panic` variant: the core Miri engine does not use it any more. ConstProp and ConstEval still use it, though. This will be addressed in future PRs. From what I can tell, all the error messages this removes are actually duplicates. r? @oli-obk @wesleywiser
2019-12-02Correct other tests related to const_mut_refsChristian Poveda-1/+1
2019-12-01fix compile-fail testsRalf Jung-1/+0
2019-11-15A `Downcast` is now reached when const-checking a `for` loopDylan MacKenzie-0/+1
I believe this occurs because the old checker stopped processing basic blocks after a `SwitchInt`.
2019-11-13Bless less verbose error messagesDylan MacKenzie-2/+0
The MIR const-checker errors for if/match/loop are now delay span bugs, so nothing will be emitted unless the HIR checker misses something.
2019-11-13Bless const tests with improved diagnosticsDylan MacKenzie-0/+1
2019-10-18[const-prop] Handle MIR Rvalue::AggregatesWesley Wiser-0/+1
2019-08-06move error with diverging output to compile-failEsteban Küber-0/+48