rust/crates
bors 84544134f6 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.
2022-07-20 06:29:06 +00:00
..
base-db Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
cfg Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
flycheck Bump cargo_metadata 2022-07-03 10:09:35 +03:00
hir Auto merge of #12549 - bitgaoshu:goto_where_trait_m_impl, r=Veykril 2022-07-18 16:29:23 +00:00
hir-def Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
hir-expand Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
hir-ty Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
ide Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
ide-assists Auto merge of #12811 - TopGunSnake:12790, r=Veykril 2022-07-20 06:29:06 +00:00
ide-completion Auto merge of #12800 - hi-rustin:rustin-patch-issue-12717, r=hi-rustin 2022-07-20 00:17:09 +00:00
ide-db Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
ide-diagnostics Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
ide-ssr Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
limit Use compare_exchange_weak in limit::Limit::check 2022-01-28 18:19:35 +03:00
mbe Improve syntax fixup a bit, handle incomplete if 2022-07-16 13:03:32 +02:00
parser Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
paths Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
proc-macro-api Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
proc-macro-srv Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
proc-macro-test Bump cargo_metadata 2022-07-03 10:09:35 +03:00
profile Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
project-model Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
rust-analyzer Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
sourcegen Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
stdx Polish 2022-06-15 18:35:48 +02:00
syntax Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00
test-utils Fix generated PartialEq::ne 2022-07-20 00:26:50 -04:00
text-edit style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
toolchain Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
tt internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
vfs Bump indexmap 2022-07-03 10:09:35 +03:00
vfs-notify Bump crossbeam-channel 2022-07-03 09:56:58 +03:00