Skip to content
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_attribute] not displayed as #[name] #69

Closed
Enselic opened this issue Apr 9, 2022 · 1 comment
Closed

#[proc_macro_attribute] not displayed as #[name] #69

Enselic opened this issue Apr 9, 2022 · 1 comment
Labels
limitation A current limitation of the library, e.g. due to an upstream bug.

Comments

@Enselic
Copy link
Owner

Enselic commented Apr 9, 2022

Step-by-step

  1. cargo doc --manifest-path ./tests/crates/comprehensive_api_proc_macro/Cargo.toml && open ./target/doc/comprehensive_api_proc_macro/attr.simple_proc_macro_attribute.html
  2. Notice that the item is represented as #[simple_proc_macro_attribute]
  3. Look in ./tests/expected_output/comprehensive_api_proc_macro.txt

Expected

There is a line

pub proc macro comprehensive_api_proc_macro::#[simple_proc_macro_attribute]

Actual

There is a line

pub proc macro comprehensive_api_proc_macro::simple_proc_macro_attribute!

because that is how the library represents that item. We should represent it the same as cargo doc.

@Enselic Enselic added the limitation A current limitation of the library, e.g. due to an upstream bug. label Apr 9, 2022
@Enselic
Copy link
Owner Author

Enselic commented Apr 16, 2022

Closed by #53, see ./tests/expected-output/comprehensive_api_proc_macro.txt

pub mod comprehensive_api_proc_macro
pub proc macro comprehensive_api_proc_macro::#[derive(SimpleDeriveMacro)]
pub proc macro comprehensive_api_proc_macro::#[simple_proc_macro_attribute]
pub proc macro comprehensive_api_proc_macro::simple_proc_macro!()

Thanks again @douweschulte 🙏

@Enselic Enselic closed this as completed Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
limitation A current limitation of the library, e.g. due to an upstream bug.
Projects
None yet
Development

No branches or pull requests

1 participant