Skip to content

Commit 1bffb52

Browse files
committed
temp
1 parent f8ddc0b commit 1bffb52

File tree

3 files changed

+143
-103
lines changed

3 files changed

+143
-103
lines changed

src/librustc_typeck/check/autoderef.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ impl<'a, 'gcx, 'tcx> Iterator for Autoderef<'a, 'gcx, 'tcx> {
107107
}
108108

109109
impl<'a, 'gcx, 'tcx> Autoderef<'a, 'gcx, 'tcx> {
110-
pub fn new(&'a self,
111-
infcx: &'a InferCtxt<'a, 'gcx, 'tcx>,
110+
pub fn new(infcx: &'a InferCtxt<'a, 'gcx, 'tcx>,
112111
param_env: ty::ParamEnv<'tcx>,
113112
body_id: ast::NodeId,
114113
span: Span,
@@ -120,7 +119,7 @@ impl<'a, 'gcx, 'tcx> Autoderef<'a, 'gcx, 'tcx> {
120119
body_id,
121120
param_env,
122121
steps: vec![],
123-
cur_ty: self.resolve_type_vars_if_possible(&base_ty),
122+
cur_ty: infcx.resolve_type_vars_if_possible(&base_ty),
124123
obligations: vec![],
125124
at_start: true,
126125
include_raw_pointers: false,

0 commit comments

Comments
 (0)