diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-07-14 19:53:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-14 19:53:35 +0200 |
| commit | 4d141f5e4c5e09408345cb8fa74f4c2f30cddd5d (patch) | |
| tree | 94537c35e4ce79caba9da6a83bbd16acda7ec693 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | ee5ed4a88d6a869cdb152829ed697d6459650db3 (diff) | |
| parent | 6c9ea1e8a9c899979a8b4dd86b32c4c77f4b6b6a (diff) | |
| download | rust-4d141f5e4c5e09408345cb8fa74f4c2f30cddd5d.tar.gz rust-4d141f5e4c5e09408345cb8fa74f4c2f30cddd5d.zip | |
Rollup merge of #87027 - petrochenkov:builderhelp, r=oli-obk
expand: Support helper attributes for built-in derive macros This is needed for https://github.com/rust-lang/rust/pull/86735 (derive macro `Default` should have a helper attribute `default`). With this PR we can specify helper attributes for built-in derives using syntax `#[rustc_builtin_macro(MacroName, attributes(attr1, attr2, ...))]` which mirrors equivalent syntax for proc macros `#[proc_macro_derive(MacroName, attributes(attr1, attr2, ...))]`. Otherwise expansion infra was already ready for this. The attribute parsing code is shared between proc macro derives and built-in macros (`fn parse_macro_name_and_helper_attrs`).
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
