You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, a fn implementing an iface method must match the purity of the iface method exactly. This is too strict. We should allow a pure fn to implement an impure fn, and both pure/impure to implement an unsafe fn.
UPDATE: Updated title to reflect the real problem here. There is a FIXME in the code in the relevant area. If one declares a trait like:
trait Foo {
fn m<T:Eq>(...);
}
then in the impl, the m method should take one type parameter with an Eq bound. We don't really check this correctly though. As far as I can tell, we just check that m has one type parameter with one bound, but not precisely what kind of bound it is.