about summary refs log tree commit diff
path: root/src/test/ui/const-eval
AgeCommit message (Collapse)AuthorLines
2018-05-25Adjust test for 32 bit targetsOliver Schneider-2/+3
2018-05-24Add missing newlinesOliver Schneider-2/+2
2018-05-24Don't ICE on horrible transmutes in pattern constantsOliver Schneider-0/+39
2018-05-24Ensure llvm doesn't trigger an assert for crazy transmutesOliver Schneider-0/+28
2018-05-24Enforce stability of const fn in promotedsOliver Schneider-0/+87
2018-05-23Rollup merge of #50863 - oli-obk:const_len, r=SimonSapin,Gankrokennytm-0/+33
Make `[T]::len` and `str::len` const fn r? @Gankro
2018-05-22Report let bindings and statements as unstableOliver Schneider-0/+45
2018-05-21Add some runtime sanity checksOliver Schneider-3/+10
2018-05-21Make `[T]::len` and `str::len` const fnOliver Schneider-0/+26
2018-05-20Auto merge of #50841 - oli-obk:promote_errors_to_panics, r=eddybbors-22/+77
Don't lint numeric overflows in promoteds in release mode r? @eddyb mitigates #50814
2018-05-19Go through an allocation when accessing fields of constantsOliver Schneider-0/+47
2018-05-19Add a test showing the erroneous promoted bugOliver Schneider-0/+69
2018-05-19Release mode overflows should not cause const eval to errorOliver Schneider-22/+8
2018-05-18Auto merge of #50653 - oli-obk:bad_const, r=cramertjbors-33/+64
Make the `const_err` lint `deny`-by-default At best these things are runtime panics (debug mode) or overflows (release mode). More likely they are public constants that are unused in the crate declaring them. This is not a breaking change, as dependencies won't break and root crates can `#![warn(const_err)]`, though I don't know why anyone would do that.
2018-05-16Remove empty filesJane Lusby-0/+0
2018-05-12Make the `const_err` lint `deny`-by-defaultOliver Schneider-33/+64
2018-05-10const timeRoman Stoliar-0/+28
added rustc_const_unstable attribute extended tests added conversion test fixed tidy test added feature attribute
2018-05-08Fix thinning pointers to extern types in miriOliver Schneider-0/+23
2018-05-02Allow unaligned reads in constantsOliver Schneider-0/+28
2018-04-30Improve div by zero const eval errorsOliver Schneider-4/+4
2018-04-30Update ui test outputOliver Schneider-6/+6
2018-04-26Auto merge of #50072 - oli-obk:discriminants, r=eddybbors-0/+36
Allow variant discriminant initializers to refer to other initializer… …s of the same enum r? @eddyb fixes the 2.4 failure of https://github.com/rust-lang/rust/issues/49765 cc @durka @retep998
2018-04-26Allow variant discriminant initializers to refer to other initializers of ↵Oliver Schneider-0/+36
the same enum
2018-04-24Warn on all erroneous constantsOliver Schneider-15/+100
2018-04-23Auto merge of #49779 - oli-obk:const_err_regression, r=eddybbors-19/+147
Don't report compile-time errors for promoteds Fixes the regression part of #49760, the missing warnings still are missing r? @eddyb
2018-04-23always optimize testOliver Schneider-1/+1
The error messages differ between optimized and nonoptimized mode
2018-04-19Sign extend constants in range patternsOliver Schneider-0/+19
2018-04-15Only warn on erroneous promoted constantsOliver Schneider-19/+147
2018-04-13Rename must-compile-successfully into compile-passGuillaume Gomez-3/+3
2018-03-14update testsGuillaume Gomez-3/+3
2018-03-08Unify the const folding errorsOliver Schneider-25/+62
before they differed depending on whether optimizations were on or not
2018-03-08Regenerate testsOliver Schneider-33/+29
2018-03-08Add a test for transmuting via unions in constantsOliver Schneider-0/+62
2018-03-08Unregress error spans in constant errorsOliver Schneider-1/+0
2018-03-08Remove dead codeOliver Schneider-0/+21
2018-03-08Add regression test for const propOliver Schneider-0/+28
2018-03-08Report errors in statics during collecting instead of translatingOliver Schneider-1/+3
2018-03-08Add regression testsOliver Schneider-0/+13
2018-03-08Add test for attempting to use array indexing for conditional const evalOliver Schneider-0/+43
2018-03-08Fully use miri in transOliver Schneider-0/+2
2018-03-08Produce instead of pointersOliver Schneider-2/+0
2018-02-26Update UI testsVadim Petrochenkov-4/+4
2018-02-25Update ui testsGuillaume Gomez-0/+1
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-8/+10
2017-10-29Add several lints into `unused` lint groupVadim Petrochenkov-2/+2
Remove a couple of obsolete lints
2017-07-31trans::mir::constant - fix assignment error recoveryAriel Ben-Yehuda-0/+49
We used to not store anything when the RHS of an assignment returned an error, which caused ICEs downstream. Fixes #43197.