-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proc macro tweaks #97004
Proc macro tweaks #97004
Commits on May 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2469ed0 - Browse repository at this point
Copy the full SHA 2469ed0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a61a85e - Browse repository at this point
Copy the full SHA a61a85eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e02789c - Browse repository at this point
Copy the full SHA e02789cView commit details -
`u8` is the only type that makes sense for `T`, as demonstrated by the fact that several impls and functions are hardwired to `Buffer<u8>`.
Configuration menu - View commit details
-
Copy full SHA for 2ece157 - Browse repository at this point
Copy the full SHA 2ece157View commit details -
Simplify types in
proc_macro_harness.rs
.This gives the more obvious derive/attr/bang distinction, and reduces code size slightly.
Configuration menu - View commit details
-
Copy full SHA for 1a9514d - Browse repository at this point
Copy the full SHA 1a9514dView commit details -
Rename
ProcMacro
trait asBangProcMacro
.Similar to the existing `AttrProcMacro` trait.
Configuration menu - View commit details
-
Copy full SHA for dbdc7dd - Browse repository at this point
Copy the full SHA dbdc7ddView commit details -
Rename
ProcMacroDerive
asDeriveProcMacro
.So it matches the existing `AttrProcMacro` and `BangProcMacro` types.
Configuration menu - View commit details
-
Copy full SHA for bc70d0d - Browse repository at this point
Copy the full SHA bc70d0dView commit details -
`reverse_encode` isn't necessary to please the borrow checker, it's to match the ordering done by `reverse_decode`.
Configuration menu - View commit details
-
Copy full SHA for 9a785e0 - Browse repository at this point
Copy the full SHA 9a785e0View commit details -
Add some comments about
_marker
fields.There is some non-obvious information required to understand them.
Configuration menu - View commit details
-
Copy full SHA for c2c5057 - Browse repository at this point
Copy the full SHA c2c5057View commit details -
Rename
b
asbuf
in several places.Because it's easy to confuse with `bridge`.
Configuration menu - View commit details
-
Copy full SHA for f5c9c12 - Browse repository at this point
Copy the full SHA f5c9c12View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6fa19a - Browse repository at this point
Copy the full SHA e6fa19aView commit details -
The part of it dealing with types obfuscates and makes the code less concise. This commit removes that part.
Configuration menu - View commit details
-
Copy full SHA for 41c10dd - Browse repository at this point
Copy the full SHA 41c10ddView commit details