]> git.lizzy.rs Git - rust.git/blobdiff - src/config/config_type.rs
Re-use nightly channel macro
[rust.git] / src / config / config_type.rs
index d14969418ad170a8019655cf34a2887827467f9f..26cd672f83ab64b2c18af9b4b924c842469586ca 100644 (file)
@@ -60,6 +60,7 @@ fn doc_hint() -> String {
 /// If we're being built by cargo (e.g., `cargo +nightly install rustfmt-nightly`),
 /// `CFG_RELEASE_CHANNEL` is not set. As we only support being built against the
 /// nightly compiler when installed from crates.io, default to nightly mode.
+#[macro_export]
 macro_rules! is_nightly_channel {
     () => {
         option_env!("CFG_RELEASE_CHANNEL").map_or(true, |c| c == "nightly" || c == "dev")