Tag things that have to do with default methods with issue #2794.

This commit is contained in:
Lindsey Kuper 2012-08-31 19:01:24 -04:00
parent 5236a304c4
commit 6d8d258f35
6 changed files with 7 additions and 5 deletions

View File

@ -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)))
}

View File

@ -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

View File

@ -128,7 +128,7 @@ fn tys(a: ty::t, b: ty::t) -> cres<ty::t> {
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)

View File

@ -103,7 +103,7 @@ fn regions(a: ty::region, b: ty::region) -> cres<ty::region> {
}
}
// Traits please:
// Traits please (FIXME: #2794):
fn tys(a: ty::t, b: ty::t) -> cres<ty::t> {
lattice_tys(&self, a, b)

View File

@ -165,7 +165,7 @@ fn fns(a: &ty::fn_ty, b: &ty::fn_ty) -> cres<ty::fn_ty> {
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)

View File

@ -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;