about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-20 06:29:06 +0000
committerbors <bors@rust-lang.org>2022-07-20 06:29:06 +0000
commit84544134f6e2e1f53a9ce3f821dbe7a70f924145 (patch)
tree7f1f4690b8fb568151f98997df144419b8daaa37 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentc001b9cb06fdc24a2e69347a7f732ee58b434cf3 (diff)
parent6df414faa25ffbf5379c18ff054c7cd1913df66b (diff)
downloadrust-84544134f6e2e1f53a9ce3f821dbe7a70f924145.tar.gz
rust-84544134f6e2e1f53a9ce3f821dbe7a70f924145.zip
Auto merge of #12811 - TopGunSnake:12790, r=Veykril
fix: Insert `pub(crate)` after doc comments and attribute macros

Fixes #12790

Original behavior was to insert `pub(crate)` at the `first_child_or_token`, which for an item with a comment or attribute macro, would put the visibility marker before the comment or macro, instead of after.

This merge request alters the call to find the node with appropriate `SyntaxKind` in the `children_or_tokens`. It also adds a test case to the module to verify the behavior. Test case verifies function, module, records, enum, impl, trait, and type cases.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions