about summary refs log tree commit diff
path: root/src/test/incremental
AgeCommit message (Collapse)AuthorLines
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
2016-09-14map create numbers between compilationsMikhail Modin-0/+62
2016-09-12Auto merge of #35960 - nikomatsakis:incr-comp-krate-edges, r=michaelwoeristerbors-0/+111
fix a few errant `Krate` edges Exploring the effect of small changes on `syntex` reuse, I discovered the following sources of unnecessary edges from `Krate` r? @michaelwoerister
2016-09-06Auto merge of #36025 - michaelwoerister:incr-comp-hash-spans, r=nikomatsakisbors-0/+194
incr. comp.: Take spans into account for ICH This PR makes the ICH (incr. comp. hash) take spans into account when debuginfo is enabled. A side-effect of this is that the SVH (which is based on the ICHs of all items in the crate) becomes sensitive to the tiniest change in a code base if debuginfo is enabled. Since we are not trying to model ABI compatibility via the SVH anymore (this is done via the crate disambiguator now), this should be not be a problem. Fixes #33888. Fixes #32753.
2016-09-06expanding a def-id is not a readNiko Matsakis-0/+46
Across crates only, converting a def-id into its def-key or def-path was considered a read. This caused spurious reads when computing the symbol name for some item.
2016-09-06allow testing DepNode::Krate edges directlyNiko Matsakis-5/+7
2016-09-06ignore dep-graph when loading inlined HIRNiko Matsakis-0/+29
We touch the krate to adjust the maps, but we don't expose that data widely.
2016-09-06write to inherent_impls during the visitorNiko Matsakis-0/+34
The goal here is to avoid writing to the `inherent_impls` map from within the general `Coherence` task, and instead write to it as we visit. Writing to it from the Coherence task is actually an information leak; it happened to be safe because Coherence read from `DepNode::Krate`, but that was very coarse. I removed the `Rc` here because, upon manual inspection, nobody clones the data in this table, and it meant that we can accumulate the data in place. That said, the pattern that is used for the inherent impls map is *generally* an anti-pattern (that is, holding the borrow lock for the duration of using the contents), so it'd probably be better to clone (and I doubt that would be expensive -- how many inherent impls does a typical type have?).
2016-09-03Fix rebase, fix some testsVadim Petrochenkov-1/+1
2016-09-01incr.comp. Add tests for stable span hashing.Michael Woerister-0/+194
2016-08-23fix stray commentNiko Matsakis-2/+1
2016-08-23consider DepNode::Krate to be an inputNiko Matsakis-0/+40
This seems not only more correct but allows us to write tests that check whether the krate hash as a whole is clean/dirty
2016-08-23add regression test for #35593Niko Matsakis-0/+21
Fixes #35593
2016-08-20compute and cache HIR hashes at beginningNiko Matsakis-8/+2
This avoids the compile-time overhead of computing them twice. It also fixes an issue where the hash computed after typeck is differen than the hash before, because typeck mutates the def-map in place. Fixes #35549. Fixes #35593.
2016-08-11Fix incremental/commandline-args test.Michael Woerister-1/+1
2016-08-11Save dep-tracking hash of commandline arguments in dep-graph file.Michael Woerister-0/+30
.. and use it to purge the incremental compilation cache if necessary.
2016-08-09incorporate resolve results into hashingNiko Matsakis-2/+138
We now incorporate the `def_map` and `trait_map` results into the SVH.
2016-08-09stop hashing nested items, and add a testNiko Matsakis-0/+36