Skip to content

Commit 89c4af0

Browse files
committed
Fix a default method polymorphism bug.
1 parent 172ea83 commit 89c4af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/trans/callee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ pub fn trans_fn_ref_with_vtables(
343343

344344
let vtables =
345345
resolve_default_method_vtables(bcx, impl_id,
346-
method, &new_substs, vtables);
346+
method, &substs, vtables);
347347

348348
debug!("trans_fn_with_vtables - default method: \
349349
substs = %s, trait_subst = %s, \

0 commit comments

Comments
 (0)