-
Notifications
You must be signed in to change notification settings - Fork 60
Doesn't build with 1.8.0 #3
Comments
@steveklabnik, I had the same issue in Ruru when implementing method definitions. This problem was solved with rust-lang/rfcs#1494 and rust-lang/rust#32945, but it's not included into 1.8.0. Thus I decided to use |
@steveklabnik @d-unseductable made those changes in { $cls:ident; ($($mimpl:tt)*) ; ($($mdef:tt)*) ; def $name:ident( $self_arg:tt , $($arg:ident : $argty:ident),* ) -> $ret:ident $body:block $($rest:tt)* } => {
class_definition! { $cls; ($($mimpl)*) ; ($($mdef)*) ; defn $name ; $self_arg ; ($($arg : $argty),*) ; $body ; $ret ; $($rest)* }
};
{ $cls:ident; ($($mimpl:tt)*) ; ($($mdef:tt)*) ; def $name:ident( $self_arg:tt , $($arg:ident : $argty:ident),* ) $body:block $($rest:tt)* } => {
class_definition! { $cls; ($($mimpl)*) ; ($($mdef)*) ; defn $name ; $self_arg ; ($($arg : $argty),*) ; $body ; () ; $($rest)* }
}; also the examples and specs are running just fine |
👍 thank you for investigating! Mind opening a PR with those changes to the macros (or just update the README to require nightly for now)? |
I had to revert the fix because it doesn't seem to work with types like |
Yeah, beta will be 1.10. |
errors:
Any ideas?
The text was updated successfully, but these errors were encountered: