Closed lilyball closed 1 year ago
Thanks for the report
The problem comes from the macro definition, which uses the expr
type for the fragment specifiers. expr
does not allow .
, and so rejects the call (while calling the underlying proc-macro works perfectly).
Since it cannot use only integers at this point, I will change it to literal
The
oid!
macro in der-parser v6 accepted any number of tokens, which allowed me to construct an invocation to it in my own macro where I fed it a series of literals and periods. Trying this in v8 fails with a macro error, which appears to be due to theasn1-rs
version of the macro expecting a single$items:expr
arg instead of something like$($item:tt)+
. This breaks my code as I construct a whole tree of oids using my own macro.A simple reproduction looks like
This works just fine with der-parser v6 but fails with der-parser v8