Implemented #[doc(cfg(...))].

This attribute has two effects:

1. Items with this attribute and their children will have the "This is
   supported on **** only" message attached in the documentation.

2. The items' doc tests will be skipped if the configuration does not
   match.
This commit is contained in:
kennytm
2017-08-05 14:38:52 +08:00
parent 8f935fbb5b
commit a2b888675a
12 changed files with 1129 additions and 16 deletions

View File

@@ -26,6 +26,7 @@
#![feature(test)]
#![feature(unicode)]
#![feature(vec_remove_item)]
#![feature(ascii_ctype)]
extern crate arena;
extern crate getopts;