From 1d468050574cc28a06ef684727e1106fa660a20c Mon Sep 17 00:00:00 2001 From: Alex Burka Date: Sun, 2 Apr 2017 20:04:27 +0000 Subject: [PATCH] document :vis in unstable book --- src/doc/unstable-book/src/SUMMARY.md | 1 + src/doc/unstable-book/src/macro-vis-matcher.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/doc/unstable-book/src/macro-vis-matcher.md diff --git a/src/doc/unstable-book/src/SUMMARY.md b/src/doc/unstable-book/src/SUMMARY.md index a9796fdf01e0..42af79b8bb07 100644 --- a/src/doc/unstable-book/src/SUMMARY.md +++ b/src/doc/unstable-book/src/SUMMARY.md @@ -114,6 +114,7 @@ - [lookup_host](lookup-host.md) - [loop_break_value](loop-break-value.md) - [macro_reexport](macro-reexport.md) +- [macro_vis_matcher](macro-vis-matcher.md) - [main](main.md) - [manually_drop](manually-drop.md) - [map_entry_recover_keys](map-entry-recover-keys.md) diff --git a/src/doc/unstable-book/src/macro-vis-matcher.md b/src/doc/unstable-book/src/macro-vis-matcher.md new file mode 100644 index 000000000000..7918a3568432 --- /dev/null +++ b/src/doc/unstable-book/src/macro-vis-matcher.md @@ -0,0 +1,14 @@ +# `macro_vis_matcher` + +The tracking issue for this feature is: [#41022] + +With this feature gate enabled, the [list of fragment specifiers][frags] gains one more entry: + +* `vis`: a visibility qualifier. Examples: nothing (default visibility); `pub`; `pub(crate)`. + +A `vis` variable may be followed by a comma, ident, type, or path. + +[#41022]: https://github.com/rust-lang/rust/issues/41022 +[frags]: ../book/first-edition/macros.html#syntactic-requirements + +------------------------