Skip to content

Commit 0095e6d

Browse files
committed
rustc: Have the typechecker pick up the resolved self region
1 parent 76d07f4 commit 0095e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rustc/middle/typeck.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,14 +349,14 @@ fn ast_ty_to_ty(tcx: ty::ctxt, mode: mode, &&ast_ty: @ast::ty) -> ty::t {
349349
}
350350
ast::ty_rptr(region, mt) {
351351
let region = alt region.node {
352-
ast::re_inferred | ast::re_self {
352+
ast::re_inferred {
353353
let attir = tcx.region_map.ast_type_to_inferred_region;
354354
alt attir.find(ast_ty.id) {
355355
some(resolved_region) { resolved_region }
356356
none { ty::re_inferred }
357357
}
358358
}
359-
ast::re_named(_) {
359+
ast::re_named(_) | ast::re_self {
360360
tcx.region_map.ast_type_to_region.get(region.id)
361361
}
362362
};

0 commit comments

Comments
 (0)