From e3f913167c0f232478b945aa236aab8340be62a9 Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Tue, 12 Sep 2017 17:07:09 +0200 Subject: Fix issues uncovered by rebasing: - Don't hash traits in scope as part of HIR hashing any more. - Some queries returned DefIndexes from other crates. - Provide a generic way of stably hashing maps (not used everywhere yet). --- src/test/incremental/ich_method_call_trait_scope.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/test/incremental') diff --git a/src/test/incremental/ich_method_call_trait_scope.rs b/src/test/incremental/ich_method_call_trait_scope.rs index 0a36e3c693e..7f4e2b0f176 100644 --- a/src/test/incremental/ich_method_call_trait_scope.rs +++ b/src/test/incremental/ich_method_call_trait_scope.rs @@ -12,6 +12,7 @@ // scope. // revisions: rpass1 rpass2 +// compile-flags: -Z query-dep-graph #![feature(rustc_attrs)] @@ -47,13 +48,15 @@ mod mod3 { use Trait2; #[rustc_clean(label="Hir", cfg="rpass2")] - #[rustc_dirty(label="HirBody", cfg="rpass2")] + #[rustc_clean(label="HirBody", cfg="rpass2")] + #[rustc_dirty(label="TypeckTables", cfg="rpass2")] fn bar() { ().method(); } #[rustc_clean(label="Hir", cfg="rpass2")] #[rustc_clean(label="HirBody", cfg="rpass2")] + #[rustc_clean(label="TypeckTables", cfg="rpass2")] fn baz() { 22; // no method call, traits in scope don't matter } -- cgit 1.4.1-3-g733a5