-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
an empty :vis doesn't work in trait declaration #65041
Copy link
Copy link
Closed
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTA-visibilityArea: Visibility / privacyArea: Visibility / privacyC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTA-visibilityArea: Visibility / privacyArea: Visibility / privacyC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
I want to create a macro that generate
fns that use in bothimpl Item...andtrait TraitName. Intrait,pubmust be omitted, but inimpl SomeStructI needpub, so the macro need a$vis:vislike this:Expected result:
create_method!(method_of_t1);intrait T1should works.(Edit: a better comment about the
:visinimpl Struct)