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
If a library method is declared to take self by reference or mut reference and the user's macro invokes the method with a receiver that is not a reference, it would be good to mirror rustc's rules around automatically taking a reference to the receiver.
library!{
extern crate krate {typeStruct;
implStruct{fn method(&self);
}}}let receiver = /* ... by value */;RUNTIME::krate::Struct::method.INVOKE(receiver.reference());// should not require reference()
The text was updated successfully, but these errors were encountered:
If a library method is declared to take self by reference or mut reference and the user's macro invokes the method with a receiver that is not a reference, it would be good to mirror rustc's rules around automatically taking a reference to the receiver.
The text was updated successfully, but these errors were encountered: