Skip to content

Commit 9c07e8e

Browse files
committed
remove unnecessary function arg
1 parent 64f9c47 commit 9c07e8e

File tree

1 file changed

+2
-3
lines changed
  • compiler/rustc_type_ir/src/search_graph

1 file changed

+2
-3
lines changed

compiler/rustc_type_ir/src/search_graph/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
653653
// the global cache.
654654
assert_eq!(result, expected, "input={input:?}");
655655
} else if D::inspect_is_noop(inspect) {
656-
self.insert_global_cache(cx, input, final_entry, result, dep_node)
656+
self.insert_global_cache(cx, final_entry, result, dep_node)
657657
}
658658
} else if D::ENABLE_PROVISIONAL_CACHE {
659659
debug_assert!(validate_cache.is_none(), "unexpected non-root: {input:?}");
@@ -1120,7 +1120,6 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
11201120
fn insert_global_cache(
11211121
&mut self,
11221122
cx: X,
1123-
input: X::Input,
11241123
final_entry: StackEntry<X>,
11251124
result: X::Result,
11261125
dep_node: X::DepNodeIndex,
@@ -1129,7 +1128,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
11291128
cx.with_global_cache(|cache| {
11301129
cache.insert(
11311130
cx,
1132-
input,
1131+
final_entry.input,
11331132
result,
11341133
dep_node,
11351134
final_entry.required_depth,

0 commit comments

Comments
 (0)