Skip to content

Commit 44c4a7b

Browse files
committed
Remove an unnecessary resolve_vars_if_possible
1 parent 83cc620 commit 44c4a7b

File tree

1 file changed

+2
-5
lines changed
  • compiler/rustc_hir_typeck/src/method

1 file changed

+2
-5
lines changed

compiler/rustc_hir_typeck/src/method/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
9393
call_expr_id: hir::HirId,
9494
allow_private: bool,
9595
) -> bool {
96-
let mode = probe::Mode::MethodCall;
9796
match self.probe_for_name(
9897
method_name.span,
99-
mode,
98+
probe::Mode::MethodCall,
10099
method_name,
101100
IsSuggestion(false),
102101
self_ty,
@@ -253,11 +252,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
253252
call_expr: &'tcx hir::Expr<'tcx>,
254253
scope: ProbeScope,
255254
) -> probe::PickResult<'tcx> {
256-
let mode = probe::Mode::MethodCall;
257-
let self_ty = self.resolve_vars_if_possible(self_ty);
258255
self.probe_for_name(
259256
span,
260-
mode,
257+
probe::Mode::MethodCall,
261258
method_name,
262259
IsSuggestion(false),
263260
self_ty,

0 commit comments

Comments
 (0)