about summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval
AgeCommit message (Collapse)AuthorLines
2019-04-22Update ui testsvarkor-2/+2
2019-04-22Remove double trailing newlinesvarkor-7/+0
2019-04-22update tests for migrate mode by defaultMatthew Jasper-260/+93
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-7/+7
2019-04-11Reword tracking issue noteEsteban Küber-6/+6
2019-04-10Tweak unstable diagnostic outputEsteban Küber-8/+15
2019-03-23Deduplicate const eval error spans for better outputEsteban Küber-6/+2
2019-03-23Swap const evaluation lint spans to point at problem in primary spanEsteban Küber-182/+210
2019-03-11Update NLL testsVadim Petrochenkov-14/+14
2019-03-11Update testsVadim Petrochenkov-71/+71
2019-02-23Rollup merge of #58658 - pmccarter:align_msg, r=matthewjasperMazdak Farrokhzad-6/+8
Add expected/provided byte alignments to validation error message Fixes #58617
2019-02-22#58658 bless after line split for tidyPatrick McCarter-5/+5
2019-02-22tidy line length override #58617Patrick McCarter-0/+1
2019-02-22Change byte align message wording #58617Patrick McCarter-2/+2
2019-02-22Invalid byte alignment expected/provided in message #58617Patrick McCarter-5/+6
2019-02-22Switch from error patterns to `//~ ERROR` markers.Felix S. Klock II-8/+11
AFAICT, we do not have the same const-eval issues that we used to when rust-lang/rust#23926 was filed. (Probably because of the switch to miri for const-evaluation.)
2019-01-22Rollup merge of #57813 - RalfJung:validation-range-printing, r=oli-obkMazdak Farrokhzad-3/+18
fix validation range printing when encountering undef
2019-01-21fix validation range printing when encountering undefRalf Jung-3/+18
2019-01-21Declare some unconst operations as unsafe in const fnOliver Scherer-12/+12
2019-01-09Stabilize `let` bindings and destructuring in constants and const fnOliver Scherer-22/+13
2018-12-25Remove licensesMark Rousskov-899/+179
2018-12-20Auto merge of #54125 - varkor:less-conservative-uninhabitedness-check, ↵bors-21/+15
r=nikomatsakis Less conservative uninhabitedness check Extends the uninhabitedness check to structs, non-empty enums, tuples and arrays. Pulled out of #47291 and #50262. Fixes https://github.com/rust-lang/rust/issues/54586. r? @nikomatsakis
2018-12-18Auto merge of #56160 - oli-obk:const_fn_let, r=nikomatsakisbors-11/+16
Fix various aspects around `let` bindings inside const functions * forbid `let` bindings in const contexts that use short circuiting operators * harden analysis code against derefs of mutable references Initially this PR was about stabilizing `let` bindings, but too many flaws were exposed that need some more testing on nightly
2018-12-11Fix some misbehaving testsvarkor-3/+3
2018-12-11Update ub-uninhabit testsvarkor-5/+5
2018-12-11Use unions for uninhabitedness checking rather than mem::transmutevarkor-25/+17
2018-12-11Update const eval uninhabited messagesvarkor-5/+7
2018-12-08Fixed nll stderr file.Alexander Regueiro-1/+1
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-4/+4
2018-12-04Update testsOliver Scherer-0/+1
2018-11-30Reenable `const_let` feature gateOliver Scherer-17/+37
2018-11-30Allow `let` bindings everywhereOliver Scherer-43/+28
2018-11-26Auto merge of #56070 - oli-obk:const_let, r=eddybbors-15/+77
Allow assignments in const contexts fixes https://github.com/rust-lang/rust/issues/54098 fixes https://github.com/rust-lang/rust/issues/51251 fixes https://github.com/rust-lang/rust/issues/52613
2018-11-20Explain missing error in testOliver Scherer-1/+4
2018-11-19we now do proper validation on scalarsRalf Jung-13/+13
2018-11-19Make const_eval_raw query return just an AllocIdRalf Jung-16/+22
2018-11-19Also catch static mutation at evaluation timeOliver Scherer-17/+45
2018-11-19Rollup merge of #56059 - alexcrichton:fix-tests, r=sfacklerkennytm-0/+27
Increase `Duration` approximate equal threshold to 1us Previously this threshold when testing was 100ns, but the Windows documentation states: > which is a high resolution (<1us) time stamp which presumably means that we could have up to 1us resolution, which means that 100ns doesn't capture "equivalent" time intervals due to various bits of rounding here and there. It's hoped that this.. Closes #56034
2018-11-19Allow assignments in const contextsOliver Scherer-16/+47
2018-11-18Auto merge of #55672 - RalfJung:miri-extern-types, r=eddybbors-0/+27
miri: accept extern types in structs if they are the only field Fixes https://github.com/rust-lang/rust/issues/55541 Cc @oli-obk @eddyb https://github.com/rust-lang/rust/issues/43467
2018-11-15do not accept out-of-bounds pointers in enum discriminants, they might be NULLRalf Jung-6/+19
2018-11-15validation: better error when the enum discriminant is UndefRalf Jung-13/+13
2018-11-13Auto merge of #55589 - oli-obk:min_length_💣, r=pnkfelixbors-1/+1
Add `VariantIdx` type and use instead of `usize`
2018-11-12miri-engine value visitor update to VariantIdxOliver Scherer-1/+1
2018-11-10adjust ui/../mod-static-with-const-fn.rsMazdak Farrokhzad-3/+15
2018-11-10fix mod-static-with-const-fn.rs.Mazdak Farrokhzad-3/+1
2018-11-10--bless mod-static-with-const-fn.stderrMazdak Farrokhzad-9/+2
2018-11-10constify parts of libcore.Mazdak Farrokhzad-2/+0
2018-11-07test diagnostics for more rangesRalf Jung-2/+32
2018-11-07pretty-print scalar range that only has an upper boundRalf Jung-7/+7