Tag things that have to do with default methods with issue #2794.
This commit is contained in:
parent
5236a304c4
commit
6d8d258f35
@ -2567,7 +2567,7 @@ fn lookup_discriminant(ccx: @crate_ctxt, vid: ast::def_id) -> ValueRef {
|
||||
}
|
||||
|
||||
// This shouldn't exist. We should cast self *once*, but right now this
|
||||
// conflicts with default methods.
|
||||
// conflicts with default methods. (FIXME: #2794)
|
||||
fn cast_self(cx: block, slf: val_self_data) -> ValueRef {
|
||||
PointerCast(cx, slf.v, T_ptr(type_of(cx.ccx(), slf.t)))
|
||||
}
|
||||
|
@ -14,6 +14,8 @@
|
||||
// call the `super_X(foo, ...)` functions directly, but rather call
|
||||
// `foo.X(...)`. The implementation of `X()` can then choose to delegate
|
||||
// to the `super` routine or to do other things.
|
||||
// (FIXME (#2794): revise this paragraph once default methods in traits
|
||||
// are working.)
|
||||
//
|
||||
// In reality, the sub operation is rather different from lub/glb, but
|
||||
// they are combined into one trait to avoid duplication (they used to
|
||||
|
@ -128,7 +128,7 @@ impl Glb: combine {
|
||||
lattice_tys(&self, a, b)
|
||||
}
|
||||
|
||||
// Traits please:
|
||||
// Traits please (FIXME: #2794):
|
||||
|
||||
fn flds(a: ty::field, b: ty::field) -> cres<ty::field> {
|
||||
super_flds(&self, a, b)
|
||||
|
@ -103,7 +103,7 @@ impl Lub: combine {
|
||||
}
|
||||
}
|
||||
|
||||
// Traits please:
|
||||
// Traits please (FIXME: #2794):
|
||||
|
||||
fn tys(a: ty::t, b: ty::t) -> cres<ty::t> {
|
||||
lattice_tys(&self, a, b)
|
||||
|
@ -165,7 +165,7 @@ impl Sub: combine {
|
||||
super_fns(&self, &a_fn_ty, &b_fn_ty)
|
||||
}
|
||||
|
||||
// Traits please:
|
||||
// Traits please (FIXME: #2794):
|
||||
|
||||
fn flds(a: ty::field, b: ty::field) -> cres<ty::field> {
|
||||
super_flds(&self, a, b)
|
||||
|
@ -1,6 +1,6 @@
|
||||
//xfail-test
|
||||
|
||||
// Currently failing with an ICE in trans.
|
||||
// Currently failing with an ICE in trans. (FIXME: #2794)
|
||||
|
||||
trait Cat {
|
||||
fn meow() -> bool;
|
||||
|
Loading…
Reference in New Issue
Block a user