diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-15 22:35:44 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-15 22:35:44 +0000 |
commit | d9767727168c68b4ecf930c9dab5a950c0be8e7b (patch) | |
tree | 7b4efbd8218d5323bc869de7d8e665a94f6178ce /crates/ra_hir_ty/src | |
parent | ff7110f761d21f8323560ce177a5518591af79a0 (diff) | |
parent | 3484d727c3b26e9596ec3bd671e2a76a87cdb5fd (diff) |
Merge #3157
3157: Extend analysis-stats a bit r=matklad a=flodiebold
This adds some tools helpful when debugging nondeterminism in analysis-stats:
- a `--randomize` option that analyses everything in random order
- a `-vv` option that prints even more detail
Also add a debug log if Chalk fuel is exhausted (which would be a source of
nondeterminism, but didn't happen in my tests).
I found one source of nondeterminism (rust-lang/chalk#331), but there are still
other cases remaining.
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_hir_ty/src')
-rw-r--r-- | crates/ra_hir_ty/src/traits.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_hir_ty/src/traits.rs b/crates/ra_hir_ty/src/traits.rs index 88af61e87..ff8e75b48 100644 --- a/crates/ra_hir_ty/src/traits.rs +++ b/crates/ra_hir_ty/src/traits.rs | |||
@@ -60,6 +60,9 @@ impl TraitSolver { | |||
60 | context.0.db.check_canceled(); | 60 | context.0.db.check_canceled(); |
61 | let remaining = fuel.get(); | 61 | let remaining = fuel.get(); |
62 | fuel.set(remaining - 1); | 62 | fuel.set(remaining - 1); |
63 | if remaining == 0 { | ||
64 | log::debug!("fuel exhausted"); | ||
65 | } | ||
63 | remaining > 0 | 66 | remaining > 0 |
64 | }) | 67 | }) |
65 | } | 68 | } |