about summary refs log tree commit diff
path: root/src/test/incremental
AgeCommit message (Collapse)AuthorLines
2016-11-17ICH: Add regression tests for various kinds of loops.Michael Woerister-0/+1049
2016-11-17fix change_private_impl_method_cc testNiko Matsakis-3/+1
2016-11-17hash the contents of impl-item-ref by adding them to visitorNiko Matsakis-0/+128
Also simplify some of the `ty::AssociatedItem` representation, in particular by folding `has_value` into `hir::Defaultness`
2016-11-17when creating an AssociatedItem, read data from impl, not impl itemNiko Matsakis-20/+17
Before, when we created an AssociatedItem for impl item X, we would read the impl item itself. Now we instead load up the impl I that contains X and read the data from the `ImplItemRef` for X; actually, we do it for all impl items in I pre-emptively. This kills the last source of edges between a method X and a call to a method Y defined in the same impl. Fixes #37121
2016-11-16ICH: Add test case for type alias definitionsMichael Woerister-0/+249
2016-11-13Adapt accidentally fixed test case.Michael Woerister-4/+1
2016-11-12Rollup merge of #37694 - michaelwoerister:test-if-ich, r=brsonEduard-Mihai Burtescu-0/+232
ICH: Add test case for if- and if-let-expressions. r? @nikomatsakis
2016-11-10ICH: Add test case for if- and if-let-expressions.Michael Woerister-0/+232
2016-11-10ICH: Add test case for call expressions.Michael Woerister-0/+203
2016-11-09Rollup merge of #37654 - michaelwoerister:test-let-ich, r=nikomatsakisEduard-Mihai Burtescu-0/+570
ICH: Add tests for let- and match-expressions. r? @nikomatsakis
2016-11-08ICH: Add test case for match-expressionsMichael Woerister-0/+342
2016-11-08ICH: Add test case for let-expressions.Michael Woerister-0/+228
2016-11-07Fix typos and redundant codeoldmanmike-5/+3
2016-11-07Apply changes recommended in code reviewoldmanmike-21/+40
Said code review and recommendations can be found here: https://github.com/rust-lang/rust/pull/37610
2016-11-05Add unary and binary tests for incr-compoldmanmike-0/+497
2016-11-02Rollup merge of #37513 - michaelwoerister:hash-panic-spans, r=nikomatsakisJonathan Turner-0/+424
ICH: Hash expression spans if their source location is captured for panics. Since the location of some expressions is captured in error message constants, it has an influence on machine code and consequently we need to take them into account by the incr. comp. hash. This PR makes this happen for `+, -, *, /, %` and for array indexing -- let me know if I forgot anything. In the future we might want to change the codegen strategy for those error messages, so that they are stored in a separate object file with a stable symbol name, so that only this object file has to be regenerated when source locations change. This strategy would also eliminate unnecessary duplications due to monomorphization, as @arielb1 has pointed out on IRC. I opened https://github.com/rust-lang/rust/issues/37512, so we don't forget about this. r? @nikomatsakis
2016-11-02ICH: Add test case for when overflow checks are disabled.Michael Woerister-0/+251
2016-11-01Auto merge of #37332 - nikomatsakis:incr-comp-benchmark-2, r=michaelwoeristerbors-0/+356
add more incremental reuse test cases r? @michaelwoerister This is basically a port of the "private method in impl". It works better when it's a top-level fn. =)
2016-11-01ICH: Hash expression spans if their source location is captured for panicsMichael Woerister-0/+173
2016-10-26Prohibit patterns in trait methods without bodiesVadim Petrochenkov-4/+4
2016-10-21test case for changing a private fn in root of another crateNiko Matsakis-0/+121
2016-10-21add a test case for changing a private impl method across cratesNiko Matsakis-0/+124
Currently doesn't work that well at all in terms of getting reuse afterwards, see #37333. =)
2016-10-21add test case for changes to a private fnNiko Matsakis-0/+111
2016-10-19Rollup merge of #37124 - nikomatsakis:incr-comp-benchmark, r=michaelwoeristerEduard-Mihai Burtescu-0/+114
add test case for changing private methods The goal of this test case is to ensure we are getting the reuse we expect. This targets a particular change where we modify the body of a private inherent method defined on a struct, and looks at different ways we can use that struct. It checks for when type-checking would be needed as well as the actual reuse achieved. cc https://github.com/rust-lang/rust/issues/37121 r? @michaelwoerister
2016-10-17Fix typoMichael Woerister-1/+1
2016-10-12add test case for changing private methodsNiko Matsakis-0/+114
2016-10-12Rollup merge of #36831 - michaelwoerister:ich-updates, r=nikomatsakisAlex Crichton-0/+71
incr.comp.: Minor refactoring and update to struct ICH test case r? @nikomatsakis
2016-10-11Rollup merge of #37072 - michaelwoerister:enable-trait-ich-tests, r=nikomatsakisGuillaume Gomez-91/+85
ICH: Enable some cases in trait definition hashing. Enable some test cases originally written by @eulerdisk. The tests can be enabled now because @MathieuBordere has fixed the underlying problem in #36974. r? @nikomatsakis
2016-10-10ICH: Enable some cases in trait definition hashing.Michael Woerister-91/+85
2016-10-08Add ICH test case for constsFlorian Diebold-0/+132
Fixes #37000.
2016-10-08Add ICH test case for staticsFlorian Diebold-0/+185
Fixes #37001.
2016-10-07incr.comp.: Cover indirect changes in struct ICH test caseMichael Woerister-0/+71
2016-10-07Auto merge of #36940 - eulerdisk:incr_test_for_hash_trait, r=michaelwoeristerbors-0/+1121
Test Case for Incr. Comp. Hash for traits #36681. Fixes #36681 Part of #36350 Currently, the following tests fail: Unsafe modifier Extern modifier Extern c to rust-intrinsic Trait unsafety Change type of method parameter (&i32 => &mut i32) Mode of self parameter r? @michaelwoerister
2016-10-06Changed some namesAndrea Pretto-6/+6
2016-10-05ICH: update saw_ty for TyBareFn; Update tests for functioninterfacesMathieu Borderé-5/+23
2016-10-05Added the third parameter to the "add second lifetime bound to method type ↵Andrea Pretto-1/+1
parameter"
2016-10-05Fixes requested by @michaelwoeristerAndrea Pretto-31/+32
2016-10-05ICH - Add test cases for function interfacesMathieu Borderé-0/+382
2016-10-04Rollup merge of #36798 - gavinb:fix/36164, r=GuillaumeGomezManish Goregaokar-2/+2
Improve error message and snippet for "did you mean `x`" - Fixes #36164 - Part of #35233 Based on the standalone example https://is.gd/8STXMd posted by @nikomatsakis and using the third formatting option mentioned in #36164 and agreed by @jonathandturner. Note however this does not address the question of [how to handle an empty or unknown suggestion](https://github.com/rust-lang/rust/issues/36164#issuecomment-244460024). @nikomatsakis any suggestions on how best to address that part?
2016-10-03Fixed lines longer than 100.Andrea Pretto-3/+6
2016-10-03Test Case for Incr. Comp. Hash for traits #36681.Andrea Pretto-0/+1117
2016-10-02Improve error message and snippet for "did you mean `x`"Gavin Baker-2/+2
- Fixes #36164 - Part of #35233 - handles unknown fields - uses UI-style tests - update all related tests (cfail, ui, incremental)
2016-09-30Fix another comment in test/incremental/hashes/enum_defsMichael Woerister-1/+1
2016-09-30Fix comment in test/incremental/hashes/enum_defsMichael Woerister-1/+1
2016-09-30Fixes requested by @michaelwoerister.Andrea Pretto-2/+2
2016-09-29Test Case for Incr. Comp. Hash for enums #36674.Andrea Pretto-0/+715
2016-09-28Rollup merge of #36460 - mikhail-m1:35123-map3, r=nikomatsakisJonathan Turner-0/+62
map crate numbers between compilations ?r nikomatsakis issue #35123
2016-09-26incr.comp.: Add test case for cache artifact file headers.Michael Woerister-0/+29
2016-09-23ICH: Add ability to test the ICH of exported metadata items.Michael Woerister-0/+238
2016-09-23Merge branch 'master' into 35123-map3Mikhail Modin-1/+306