@@ -833,7 +833,7 @@ fn trans_def<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
833
833
834
834
let _icx = push_ctxt ( "trans_def_lvalue" ) ;
835
835
match def {
836
- def:: DefFn ( ..) | def:: DefStaticMethod ( ..) |
836
+ def:: DefFn ( ..) | def:: DefStaticMethod ( ..) | def :: DefMethod ( .. ) |
837
837
def:: DefStruct ( _) | def:: DefVariant ( ..) => {
838
838
trans_def_fn_unadjusted ( bcx, ref_expr, def)
839
839
}
@@ -1191,10 +1191,12 @@ fn trans_def_fn_unadjusted<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
1191
1191
let llfn = match def {
1192
1192
def:: DefFn ( did, _, _) |
1193
1193
def:: DefStruct ( did) | def:: DefVariant ( _, did, _) |
1194
- def:: DefStaticMethod ( did, def:: FromImpl ( _) , _) => {
1194
+ def:: DefStaticMethod ( did, def:: FromImpl ( _) , _) |
1195
+ def:: DefMethod ( did, _, def:: FromImpl ( _) ) => {
1195
1196
callee:: trans_fn_ref ( bcx, did, ExprId ( ref_expr. id ) )
1196
1197
}
1197
- def:: DefStaticMethod ( impl_did, def:: FromTrait ( trait_did) , _) => {
1198
+ def:: DefStaticMethod ( impl_did, def:: FromTrait ( trait_did) , _) |
1199
+ def:: DefMethod ( impl_did, _, def:: FromTrait ( trait_did) ) => {
1198
1200
meth:: trans_static_method_callee ( bcx, impl_did,
1199
1201
trait_did, ref_expr. id )
1200
1202
}
0 commit comments