summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval
AgeCommit message (Collapse)AuthorLines
2018-10-04do not normalize non-scalar constants to a ConstValue::ScalarPairRalf Jung-4/+6
2018-09-14Auto merge of #54032 - oli-obk:layout_scalar_ranges, r=eddybbors-0/+5
Add forever unstable attribute to allow specifying arbitrary scalar ranges r? @eddyb for the first commit and @nikomatsakis for the second one
2018-09-14Rollup merge of #54147 - agnxy:const-eval-test, r=oli-obkkennytm-0/+55
Add a test that tries to modify static memory at compile-time Attempt to fix #53818 cc @oli-obk
2018-09-12Add a test that tries to modify static memory at compile-timeAndrew Xu-0/+55
2018-09-11Use assertion-like static assertionsOliver Schneider-1/+1
2018-09-11Fix const eval of ZST index operations to make the static assertion workOliver Schneider-0/+5
2018-09-10WIP remove incorrect nll.stderr reference filesNiko Matsakis-56/+0
2018-09-10insert `AscribeUserType` for ascriptionsNiko Matsakis-1/+22
2018-09-07stabilize `#[panic_handler]`Jorge Aparicio-7/+6
2018-09-03Add regression test for #52475Bruno Dutra-0/+67
2018-09-03Auto merge of #53831 - TheDarkula:pointer-check, r=oli-obkbors-52/+343
Added pointer checking to sanity checks r? @oli-obk
2018-09-01Auto merge of #53604 - oli-obk:min_const_fn, r=Centril,varkorbors-2/+2
Implement the `min_const_fn` feature gate cc @RalfJung @eddyb r? @Centril implements the feature gate for #53555 I added a hack so the `const_fn` feature gate also enables the `min_const_fn` feature gate. This ensures that nightly users of `const_fn` don't have to touch their code at all. The `min_const_fn` checks are run first, and if they succeeded, the `const_fn` checks are run additionally to ensure we didn't miss anything.
2018-08-31Added pointer checking to sanity checksthedarkula-52/+343
2018-08-31Auto merge of #53699 - oli-obk:promotion_stability_hole, r=nikomatsakisbors-1/+92
Fix promotion stability hole in old borrowck r? @nikomatsakis I screwed up the promotion stability checks. Big time. They were basically nonexistant. We had tests for it. I also screwed up said tests. This is in stable already :( Basically stability checks of promotion only worked if you tried to use a const fn defined in the same crate. cc @eddyb
2018-08-31Restrict most uses of `const_fn` to `min_const_fn`Oliver Schneider-2/+2
2018-08-30Auto merge of #53535 - TheDarkula:master, r=oli-obkbors-0/+62
Made std::intrinsics::transmute() const fn. r? @oli-obk tracking issue: #53605
2018-08-30Made std::intrinsics::transmute() const fn.thedarkula-0/+62
2018-08-30Auto merge of #53757 - oli-obk:validation, r=RalfJungbors-0/+21
Use partial but correct vtable layout r? @RalfJung who suggested to also do this change for nightly, not just beta
2018-08-28address nitsRalf Jung-3/+3
2018-08-28Use partial but correct vtable layoutOliver Schneider-0/+21
2018-08-27validate enum discriminant whenever it is readRalf Jung-3/+3
2018-08-25Satisfy tidyOliver Schneider-1/+1
2018-08-25Check cross crate stability of const fnOliver Schneider-1/+92
2018-08-23fix new ui testJorge Aparicio-2/+2
2018-08-22Reexpose stability hole in the presence of feature gatesOliver Schneider-0/+230
2018-08-22optimize sanity check path printingRalf Jung-39/+77
During the sanity check, we keep track of the path we are below in a `Vec`. We avoid cloning that `Vec` unless we hit a pointer indirection. The `String` representation is only computed when validation actually fails.
2018-08-22fix UI testsRalf Jung-1/+1
2018-08-20Moved issue-53157.rs into src/test/ui/consts/const-eval/thedarkula-0/+23
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+3033