These are chat archives for rust-lang/rust

19th
Jul 2015
Thomas Koehler
@Bastacyclop
Jul 19 2015 10:21
I guess the problem was that my library had its tesbed as dev dependency while the testbed itself had the library as dependency. I broke the "cycle" and it seems to work.
Thomas Koehler
@Bastacyclop
Jul 19 2015 15:01
Does someone understand why the first rule of field_to_raw isn't triggered ?
Erik Hedvall
@Ogeon
Jul 19 2015 15:12
Macros can sometimes be wonky, but shouldn't that cause a syntax conflict?
Thomas Koehler
@Bastacyclop
Jul 19 2015 15:23
Aren't rules checked in a top to bottom way ?
If not, isn't there some way to get the result I seek ?
Erik Hedvall
@Ogeon
Jul 19 2015 15:28
You can't have rules that conflict, so it's possible that the first rule is parsed in an unexpected way. *mut T is a type and fits in both rules.
Thomas Koehler
@Bastacyclop
Jul 19 2015 15:28
I guess I could make a ToRaw trait and use a macro to derive it for types considered by the second rule