Skip to content

Commit 977c016

Browse files
committed
---
yaml --- r: 13820 b: refs/heads/try c: 305b1c8 h: refs/heads/master v: v3
1 parent a5bb281 commit 977c016

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 888262b337d90a275074a2ad2ac119984b55205a
5+
refs/heads/try: 305b1c87019a1f2824193d1909efca6b13566240
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/comp/middle/typeck.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,9 @@ fn compare_impl_method(tcx: ty::ctxt, sp: span, impl_m: ty::method,
614614
} else {
615615
let auto_modes = vec::map2(impl_m.fty.inputs, if_m.fty.inputs, {|i, f|
616616
alt ty::struct(tcx, f.ty) {
617-
ty::ty_param(0u, _) { {mode: ast::by_ref with i} }
617+
ty::ty_param(0u, _) if i.mode == ast::mode_infer {
618+
{mode: ast::by_ref with i}
619+
}
618620
_ { i }
619621
}
620622
});

0 commit comments

Comments
 (0)