]> git.lizzy.rs Git - rust.git/commitdiff
document :vis in unstable book
authorAlex Burka <alex@alexburka.com>
Sun, 2 Apr 2017 20:04:27 +0000 (20:04 +0000)
committerAlex Burka <alex@alexburka.com>
Sat, 15 Apr 2017 19:06:19 +0000 (19:06 +0000)
src/doc/unstable-book/src/SUMMARY.md
src/doc/unstable-book/src/macro-vis-matcher.md [new file with mode: 0644]

index a9796fdf01e0d38f9aa79528dedc9fffd731ade7..42af79b8bb07fe112e1b8ad385c276eedd4e918e 100644 (file)
 - [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 (file)
index 0000000..7918a35
--- /dev/null
@@ -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
+
+------------------------