Skip to content

Commit dd9f4e5

Browse files
committed
temp
1 parent 44f8ffe commit dd9f4e5

File tree

4 files changed

+144
-103
lines changed

4 files changed

+144
-103
lines changed

src/librustc_typeck/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ rustc_target = { path = "../librustc_target" }
2020
smallvec = { version = "0.6.5", features = ["union"] }
2121
syntax = { path = "../libsyntax" }
2222
syntax_pos = { path = "../libsyntax_pos" }
23+
smallvec = { version = "0.6.5", features = ["union"] }

src/librustc_typeck/check/autoderef.rs

+2-3
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)