#![feature(box_syntax)]
#![feature(in_band_lifetimes)]
#![feature(nll)]
-#![feature(or_patterns)]
+#![cfg_attr(bootstrap, feature(or_patterns))]
#![feature(test)]
#![feature(crate_visibility_modifier)]
#![feature(never_type)]
use rustc_session::getopts;
use rustc_session::{early_error, early_warn};
+/// A macro to create a FxHashMap.
+///
+/// Example:
+///
+/// ```
+/// let letters = map!{"a" => "b", "c" => "d"};
+/// ```
+///
+/// Trailing commas are allowed.
+/// Commas between elements are required (even if the expression is a block).
+macro_rules! map {
+ ($( $key: expr => $val: expr ),* $(,)*) => {{
+ let mut map = ::rustc_data_structures::fx::FxHashMap::default();
+ $( map.insert($key, $val); )*
+ map
+ }}
+}
+
#[macro_use]
mod externalfiles;
"Generate JSON file at the top level instead of generating HTML redirection files",
)
}),
+ unstable("print", |o| {
+ o.optmulti("", "print", "Rustdoc information to print on stdout", "[unversioned-files]")
+ }),
]
}