| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-08-20 | Moved issue-53157.rs into src/test/ui/consts/const-eval/ | thedarkula | -23/+0 | |
| 2018-08-14 | Merged migrated compile-fail tests and ui tests. Fixes #46841. | David Wood | -2187/+0 | |
| 2018-08-08 | Auto merge of #53163 - oli-obk:const_prop_ice, r=nikomatsakis | bors | -0/+23 | |
| Remove an overly pedantic and wrong assertion fixes #53157 fixes #53087 | ||||
| 2018-08-07 | Fix tidy | Oliver Schneider | -1/+1 | |
| 2018-08-07 | Remove an overly pedantic and wrong assertion | Oliver Schneider | -0/+23 | |
| 2018-08-07 | Fix tidy | Oliver Schneider | -2/+2 | |
| 2018-08-07 | Make sure the feature gate actually works and never allows promoting these ↵ | Oliver Schneider | -0/+116 | |
| operations | ||||
| 2018-08-07 | Rebase fallout: new tests need updated ui output | Oliver Schneider | -6/+8 | |
| 2018-08-07 | Don't accidentally promote union access in MIR | Oliver Schneider | -11/+0 | |
| 2018-08-07 | Add feature gate checks | Oliver Schneider | -0/+33 | |
| 2018-08-07 | Place unions, pointer casts and pointer derefs behind extra feature gates | Oliver Schneider | -2/+19 | |
| 2018-08-02 | Reading values should not be looking at the variant | Oliver Schneider | -4/+5 | |
| 2018-08-01 | Fallout from fixing `try_read_value` to work with enums | Oliver Schneider | -22/+18 | |
| 2018-08-01 | Fix `try_read_value` not working for enums | Oliver Schneider | -0/+16 | |
| 2018-07-29 | Move a test that depends on the arch bitwidth to compile-fail | Oliver Schneider | -132/+0 | |
| 2018-07-29 | Sanity-check all constants | Oliver Schneider | -13/+549 | |
| 2018-07-26 | Auto merge of #52673 - oli-obk:mutable_promoted, r=nagisa,cramertj,estebank | bors | -0/+17 | |
| Try to fix an ICE might fix #52671 | ||||
| 2018-07-25 | 0-length arrays can even be mutably promoted | Oliver Schneider | -0/+17 | |
| 2018-07-25 | Hide some lints which are not quite right the way they are reported to the user | Oliver Schneider | -0/+24 | |
| 2018-07-23 | Promoteds are statics and statics have a place, not just a value | Oliver Schneider | -142/+12 | |
| 2018-07-23 | Auto merge of #52568 - oli-obk:span_bug_error, r=varkor | bors | -0/+91 | |
| Fix loop label resolution around constants And make `delay_span_bug` a little more helpful r? @varkor fixes #52442 fixes #52443 | ||||
| 2018-07-22 | Auto merge of #52394 - estebank:println, r=oli-obk | bors | -30/+12 | |
| Improve suggestion for missing fmt str in println Avoid using `concat!(fmt, "\n")` to improve the diagnostics being emitted when the first `println!()` argument isn't a formatting string literal. Fix #52347. | ||||
| 2018-07-20 | Properly scope label resolution | Oliver Schneider | -0/+91 | |
| 2018-07-19 | Improve suggestion for missing fmt str in println | Esteban Küber | -30/+12 | |
| Avoid using `concat!(fmt, "\n")` to improve the diagnostics being emitted when the first `println!()` argument isn't a formatting string literal. | ||||
| 2018-07-18 | Const-propagate casts | Oliver Schneider | -0/+21 | |
| 2018-07-15 | fix line numbers | Ralf Jung | -3/+3 | |
| 2018-07-15 | add license text | Ralf Jung | -0/+10 | |
| 2018-07-15 | add test case | Ralf Jung | -0/+42 | |
| 2018-07-11 | Auto merge of #51702 - ecstatic-morse:infinite-loop-detection, r=oli-obk | bors | -0/+66 | |
| Infinite loop detection for const evaluation Resolves #50637. An `EvalContext` stores the transient state (stack, heap, etc.) of the MIRI virtual machine while it executing code. As long as MIRI only executes pure functions, we can detect if a program is in a state where it will never terminate by periodically taking a "snapshot" of this transient state and comparing it to previous ones. If any two states are exactly equal, the machine must be in an infinite loop. Instead of fully cloning a snapshot every time the detector is run, we store a snapshot's hash. Only when a hash collision occurs do we fully clone the interpreter state. Future snapshots which cause a collision will be compared against this clone, causing the interpreter to abort if they are equal. At the moment, snapshots are not taken until MIRI has progressed a certain amount. After this threshold, snapshots are taken every `DETECTOR_SNAPSHOT_PERIOD` steps. This means that an infinite loop with period `P` will be detected after a maximum of `2 * P * DETECTOR_SNAPSHOT_PERIOD` interpreter steps. The factor of 2 arises because we only clone a snapshot after it causes a hash collision. | ||||
| 2018-07-04 | Shorten error message and add link to test | Dylan MacKenzie | -4/+4 | |
| Implements @bjorn3's suggestions. | ||||
| 2018-07-04 | Explain reason behind error span | Dylan MacKenzie | -1/+1 | |
| We can't expand the span of the error reliably according to @oli-obk, so just mention why it points to this particular expression. | ||||
| 2018-07-04 | Add a UI test for #50637 | Dylan MacKenzie | -0/+66 | |
| This test relies on the fact that restrictions on expressions in `const fn` do not apply when computing array lengths. It is more difficult to statically analyze than the simple `loop{}` mentioned in #50637. This test should be updated to ignore the warning after #49980 is resolved. | ||||
| 2018-07-03 | Deduplicate error reports for statics | Oliver Schneider | -11/+2 | |
| 2018-06-28 | Rollup merge of #51839 - oli-obk:const_shift_overflow, r=nikomatsakis | Mark Rousskov | -0/+28 | |
| Detect overflows of non u32 shifts | ||||
| 2018-06-28 | Turn the use of erroneous constants into errors again | Oliver Schneider | -19/+19 | |
| 2018-06-28 | Don't const propagate the body of constants | Oliver Schneider | -126/+73 | |
| 2018-06-27 | Don't use `ParamEnv::reveal_all()` if there is a real one available | Oliver Schneider | -0/+28 | |
| 2018-06-27 | Detect overflows of non u32 shifts | Oliver Schneider | -0/+28 | |
| 2018-06-26 | migrate codebase to `..=` inclusive range patterns | Zack M. Davis | -4/+4 | |
| These were stabilized in March 2018's #47813, and are the Preferred Way to Do It going forward (q.v. #51043). | ||||
| 2018-06-05 | Rebase fallout | Oliver Schneider | -3/+12 | |
| 2018-06-05 | Satisfy the untiring tidy | Oliver Schneider | -2/+2 | |
| 2018-06-05 | Properly report transitive errors | Oliver Schneider | -8/+194 | |
| 2018-06-05 | Referring to erroneous constants in promoteds must abort the build | Oliver Schneider | -31/+277 | |
| 2018-06-05 | Refactor the const eval diagnostic API | Oliver Schneider | -32/+31 | |
| 2018-06-05 | Fix tidy | Fabian Zaiser | -1/+1 | |
| 2018-06-05 | Propagate uses of constants correctly so that array index checks work | Fabian Zaiser | -10/+21 | |
| 2018-06-04 | Auto merge of #51307 - oli-obk:miri_fixes, r=eddyb | bors | -0/+41 | |
| ScalarPairs are offset==0 field + other non-zst field r? @eddyb fixes #51300 | ||||
| 2018-06-03 | Do not promote union field accesses | Oliver Schneider | -0/+38 | |
| 2018-06-02 | Correctly access ScalarPair fields during const eval | Oliver Schneider | -0/+41 | |
| 2018-05-25 | Auto merge of #50967 - oli-obk:miri_api_refactor, r=eddyb | bors | -0/+68 | |
| Miri api refactor r? @eddyb cc @Zoxc based on https://github.com/rust-lang/rust/pull/50916 | ||||
