about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-16 01:40:51 +0000
committerbors <bors@rust-lang.org>2018-07-16 01:40:51 +0000
commit99140df0bd5a4dd77db28d78e73df4b5f6ba79a6 (patch)
treed478e4cf9cb252d1159333fc86142d6a62344dbb /src
parent100fb12a823cb77caf6f731c3dc2099e6fc8de50 (diff)
parentd61540ed0b32a87e379acc33deb608dc26e55311 (diff)
downloadrust-99140df0bd5a4dd77db28d78e73df4b5f6ba79a6.tar.gz
rust-99140df0bd5a4dd77db28d78e73df4b5f6ba79a6.zip
Auto merge of #52373 - eonil:master, r=kennytm
Update lint plugin sample code.

The sample code is out of sync with latest test code and broken.
I just copied missing feature gates.
Diffstat (limited to 'src')
-rw-r--r--src/doc/unstable-book/src/language-features/plugin.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/language-features/plugin.md b/src/doc/unstable-book/src/language-features/plugin.md
index 2f645cf0470..19ece095090 100644
--- a/src/doc/unstable-book/src/language-features/plugin.md
+++ b/src/doc/unstable-book/src/language-features/plugin.md
@@ -183,6 +183,8 @@ that warns about any item named `lintme`.
 ```rust,ignore
 #![feature(plugin_registrar)]
 #![feature(box_syntax, rustc_private)]
+#![feature(macro_vis_matcher)]
+#![feature(macro_at_most_once_rep)]
 
 extern crate syntax;