about summary refs log tree commit diff
path: root/src/test/incremental/hashes/let_expressions.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-219/+0
2022-12-25Remove references to removed option from tests.Camille GILLOT-3/+0
2022-05-27Switch incremental/hashes tests to all use optimizations.Jakob Degen-1/+1
2022-05-24Fix/bless tests broken by DSEJakob Degen-2/+2
2021-09-10Duplicate tests for incremental spans mode.Camille GILLOT-60/+77
2020-07-17Rename TypeckTables to TypeckResults.Valentin Lazureanu-9/+9
2020-07-15mir_built is a lieBastian Kauschke-12/+12
2020-05-24Clear MIR local type annotations after borrowckJonas Schievink-1/+1
2020-03-19hir: replace "items" terminology with "nodes" where appropriate.Eduard-Mihai Burtescu-12/+12
2020-03-14Replace `HirBody` with `hir_owner_items` in testsJohn Kåre Alsaker-12/+12
2019-11-27rustc: move debug info from LocalDecl and UpvarDecl into a dedicated ↵Eduard-Mihai Burtescu-4/+4
VarDebugInfo.
2019-10-20Improve SimplifyLocals pass so it can remove unused constsWesley Wiser-4/+4
The `ConstProp` can cause many locals to be initialized to a constant value and then never read from. `ConstProp` can also evaluate ZSTs into constant values. Previously, many of these would be removed by other parts of the MIR optimization pipeline. However, evaluating ZSTs (especially `()`) into constant values defeated those parts of the optimizer and so in a2e3ed5c054b544df6ceeb9e612d39af819f4aae, I added a hack to `ConstProp` that skips evaluating ZSTs to avoid that regression. This commit changes `SimplifyLocals` so that it doesn't consider writes of const values to a local to be a use of that local. In doing so, `SimplifyLocals` is able to remove otherwise unused locals left behind by other optimization passes (`ConstProp` in particular).
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-03-30Update testsJohn Kåre Alsaker-9/+9
2019-03-20Add no_hash to query macro and move some queries overJohn Kåre Alsaker-12/+12
2019-02-08Update testsJohn Kåre Alsaker-12/+12
2018-12-30Fix unresolved inference variable ICE.David Wood-1/+1
This commit moves well-formedness check for the `UserTypeAnnotation::Ty(..)` case from always running to only when the code is reachable. This solves the ICE that resulted from `src/test/ui/issue-54943-1.rs` (a minimal repro of `dropck-eyepatch` run-pass tests that failed). The main well-formedness check that was intended to be run despite unreachable code still is, that being the `UserTypeAnnotation::TypeOf(..)` case. Before this PR, the other case wasn't being checked at all. It is possible to fix this ICE while still always checking well-formedness for the `UserTypeAnnotation::Ty(..)` case but that solution will ICE in unreachable code for that case, the diff for that change [can be found here](0). [0]: https://gist.github.com/davidtwco/f9751ffd9c0508f7251c0f17adc3af53
2018-12-25Remove licensesMark Rousskov-11/+0
2018-09-10fix incremental testNiko Matsakis-1/+1
We are now carrying the user-given type through MIR, so it makes sense that this would change the hash.
2018-04-13Rename must-compile-successfully into compile-passGuillaume Gomez-1/+1
2018-03-23Fixed issues with incremental tests.David Wood-1/+1
2017-12-08incr.comp.: Hash spans unconditionally for full accuracy.Michael Woerister-1/+1
2017-11-29incr.comp.: Update test cases after metadata hashing removal.Michael Woerister-22/+0
2017-11-14update let-expressions to use exceptgaurikholkar-210/+36
2017-10-09Update let-expressions.rsgaurikholkar-0/+160
2016-11-29WIP: update tests to pass -- not completeNiko Matsakis-12/+12
2016-11-29Fix new testsFlorian Diebold-12/+36
2016-11-08ICH: Add test case for let-expressions.Michael Woerister-0/+228