diff options
| author | lcnr <rust@lcnr.de> | 2025-06-13 16:00:04 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-06-13 16:36:48 +0200 |
| commit | 9c07e8ec80da545680ff9659859f45fc4a38fbda (patch) | |
| tree | 482f1acba0ad425267b313234a44ba2726577d63 | |
| parent | 64f9c47211ac7b8e1e7f2717c9b9a6a0e5777942 (diff) | |
| download | rust-9c07e8ec80da545680ff9659859f45fc4a38fbda.tar.gz rust-9c07e8ec80da545680ff9659859f45fc4a38fbda.zip | |
remove unnecessary function arg
| -rw-r--r-- | compiler/rustc_type_ir/src/search_graph/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_type_ir/src/search_graph/mod.rs b/compiler/rustc_type_ir/src/search_graph/mod.rs index 5b4bd838c3a..f0eb96b47b1 100644 --- a/compiler/rustc_type_ir/src/search_graph/mod.rs +++ b/compiler/rustc_type_ir/src/search_graph/mod.rs @@ -653,7 +653,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> { // the global cache. assert_eq!(result, expected, "input={input:?}"); } else if D::inspect_is_noop(inspect) { - self.insert_global_cache(cx, input, final_entry, result, dep_node) + self.insert_global_cache(cx, final_entry, result, dep_node) } } else if D::ENABLE_PROVISIONAL_CACHE { debug_assert!(validate_cache.is_none(), "unexpected non-root: {input:?}"); @@ -1120,7 +1120,6 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> { fn insert_global_cache( &mut self, cx: X, - input: X::Input, final_entry: StackEntry<X>, result: X::Result, dep_node: X::DepNodeIndex, @@ -1129,7 +1128,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> { cx.with_global_cache(|cache| { cache.insert( cx, - input, + final_entry.input, result, dep_node, final_entry.required_depth, |
