Skip to content

Commit ffb9867

Browse files
committed
---
yaml --- r: 30236 b: refs/heads/incoming c: 6d8d258 h: refs/heads/master v: v3
1 parent f4f1729 commit ffb9867

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 5236a304c46f6f08bf43f08187e071c77c6622f5
9+
refs/heads/incoming: 6d8d258f35321ed257d76d5e3c6458eed00ba574
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/rustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2567,7 +2567,7 @@ fn lookup_discriminant(ccx: @crate_ctxt, vid: ast::def_id) -> ValueRef {
25672567
}
25682568

25692569
// This shouldn't exist. We should cast self *once*, but right now this
2570-
// conflicts with default methods.
2570+
// conflicts with default methods. (FIXME: #2794)
25712571
fn cast_self(cx: block, slf: val_self_data) -> ValueRef {
25722572
PointerCast(cx, slf.v, T_ptr(type_of(cx.ccx(), slf.t)))
25732573
}

branches/incoming/src/rustc/middle/typeck/infer/combine.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// call the `super_X(foo, ...)` functions directly, but rather call
1515
// `foo.X(...)`. The implementation of `X()` can then choose to delegate
1616
// to the `super` routine or to do other things.
17+
// (FIXME (#2794): revise this paragraph once default methods in traits
18+
// are working.)
1719
//
1820
// In reality, the sub operation is rather different from lub/glb, but
1921
// they are combined into one trait to avoid duplication (they used to

branches/incoming/src/rustc/middle/typeck/infer/glb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl Glb: combine {
128128
lattice_tys(&self, a, b)
129129
}
130130

131-
// Traits please:
131+
// Traits please (FIXME: #2794):
132132

133133
fn flds(a: ty::field, b: ty::field) -> cres<ty::field> {
134134
super_flds(&self, a, b)

branches/incoming/src/rustc/middle/typeck/infer/lub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl Lub: combine {
103103
}
104104
}
105105

106-
// Traits please:
106+
// Traits please (FIXME: #2794):
107107

108108
fn tys(a: ty::t, b: ty::t) -> cres<ty::t> {
109109
lattice_tys(&self, a, b)

branches/incoming/src/rustc/middle/typeck/infer/sub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl Sub: combine {
165165
super_fns(&self, &a_fn_ty, &b_fn_ty)
166166
}
167167

168-
// Traits please:
168+
// Traits please (FIXME: #2794):
169169

170170
fn flds(a: ty::field, b: ty::field) -> cres<ty::field> {
171171
super_flds(&self, a, b)

branches/incoming/src/test/run-pass/traits-default-method-self.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//xfail-test
22

3-
// Currently failing with an ICE in trans.
3+
// Currently failing with an ICE in trans. (FIXME: #2794)
44

55
trait Cat {
66
fn meow() -> bool;

0 commit comments

Comments
 (0)