@@ -50,7 +50,7 @@ use syntax::ast::{named_field, ne, neg, node_id, pat, pat_enum, pat_ident};
50
50
use syntax:: ast:: { path, pat_box, pat_lit, pat_range, pat_struct} ;
51
51
use syntax:: ast:: { pat_tup, pat_uniq, pat_wild, prim_ty, private, provided} ;
52
52
use syntax:: ast:: { public, required, rem, self_ty_, shl, shr, stmt_decl} ;
53
- use syntax:: ast:: { struct_dtor, struct_field, struct_variant_kind, sty_by_ref } ;
53
+ use syntax:: ast:: { struct_dtor, struct_field, struct_variant_kind} ;
54
54
use syntax:: ast:: { sty_static, subtract, trait_ref, tuple_variant_kind, Ty } ;
55
55
use syntax:: ast:: { ty_bool, ty_char, ty_f, ty_f32, ty_f64, ty_float, ty_i} ;
56
56
use syntax:: ast:: { ty_i16, ty_i32, ty_i64, ty_i8, ty_int, TyParam , ty_path} ;
@@ -3792,7 +3792,6 @@ pub impl Resolver {
3792
3792
// we only have self ty if it is a non static method
3793
3793
let self_binding = match method. self_ty. node {
3794
3794
sty_static => { NoSelfBinding }
3795
- sty_by_ref => { HasSelfBinding ( method. self_id, true) }
3796
3795
_ => { HasSelfBinding ( method. self_id, false) }
3797
3796
} ;
3798
3797
0 commit comments