Remove an unnecessary resolve_vars_if_possible

This commit is contained in:
Oli Scherer 2022-11-09 14:43:51 +00:00
parent 83cc6204ec
commit 44c4a7b6c4

View File

@ -93,10 +93,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
call_expr_id: hir::HirId,
allow_private: bool,
) -> bool {
let mode = probe::Mode::MethodCall;
match self.probe_for_name(
method_name.span,
mode,
probe::Mode::MethodCall,
method_name,
IsSuggestion(false),
self_ty,
@ -253,11 +252,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
call_expr: &'tcx hir::Expr<'tcx>,
scope: ProbeScope,
) -> probe::PickResult<'tcx> {
let mode = probe::Mode::MethodCall;
let self_ty = self.resolve_vars_if_possible(self_ty);
self.probe_for_name(
span,
mode,
probe::Mode::MethodCall,
method_name,
IsSuggestion(false),
self_ty,