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
A literal string ("hello"), byte string (b"hello"), character ('a'), byte character (b'a'), an integer or floating point number with or without a suffix (1, 1u8, 2.3, 2.3f32). Boolean literals like true and false do not belong here, they are Idents.
String has the same kind of problem. The derive macro passes a string literal, but it wants a heap-allocated String. It needs to call .to_string() on whatever is provided in the #[default(...)] attribute.
Boolean values
true
andfalse
are not literals. They are idents: https://dev-doc.rust-lang.org/beta/proc_macro/struct.Literal.html(emphasis added)
The bug is here:
onlyargs/onlyargs_derive/src/parser.rs
Line 119 in f331a2e
It needs a fallback to check for
true
andfalse
idents if the token is not a literal.The text was updated successfully, but these errors were encountered: