X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=src%2Flibrustdoc%2Fclean%2Futils.rs;h=706a56fbcbfe6c7f01961bca88ee2fdfe6126e1d;hb=c3028101a22b8f67457221267e7f35dfd8a15c0d;hp=f3bd4efc11a55d55a33ef6d1be01319d70c04235;hpb=3a8bb38164d9681bb20d60e9fb225efe10d3c6fa;p=rust.git diff --git a/src/librustdoc/clean/utils.rs b/src/librustdoc/clean/utils.rs index f3bd4efc11a..706a56fbcbf 100644 --- a/src/librustdoc/clean/utils.rs +++ b/src/librustdoc/clean/utils.rs @@ -556,3 +556,9 @@ fn print_const_with_custom_print_scalar(tcx: TyCtxt<'_>, ct: &'tcx ty::Const<'tc && attr.meta_item_list().map_or(false, |l| rustc_attr::list_contains_name(&l, flag)) }) } + +/// A link to `doc.rust-lang.org` that includes the channel name. Use this instead of manual links +/// so that the channel is consistent. +/// +/// Set by `bootstrap::Builder::doc_rust_lang_org_channel` in order to keep tests passing on beta/stable. +crate const DOC_RUST_LANG_ORG_CHANNEL: &'static str = env!("DOC_RUST_LANG_ORG_CHANNEL");