Commit 5ae2446 1 parent 207c5bc commit 5ae2446 Copy full SHA for 5ae2446
File tree 1 file changed +6
-17
lines changed
1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -1036,23 +1036,12 @@ impl<'a> Builder<'a> {
1036
1036
}
1037
1037
1038
1038
pub fn doc_rust_lang_org_channel ( & self ) -> String {
1039
- // When using precompiled compiler from CI, we need to use CI rustc's channel and
1040
- // ignore `rust.channel` from the configuration. Otherwise most of the rustdoc tests
1041
- // will fail due to incompatible `DOC_RUST_LANG_ORG_CHANNEL`.
1042
- let channel = if let Some ( commit) = self . config . download_rustc_commit ( ) {
1043
- self . config
1044
- . read_file_by_commit ( & PathBuf :: from ( "src/ci/channel" ) , commit)
1045
- . trim ( )
1046
- . to_owned ( )
1047
- } else {
1048
- match & * self . config . channel {
1049
- "stable" => & self . version ,
1050
- "beta" => "beta" ,
1051
- "nightly" | "dev" => "nightly" ,
1052
- // custom build of rustdoc maybe? link to the latest stable docs just in case
1053
- _ => "stable" ,
1054
- }
1055
- . to_owned ( )
1039
+ let channel = match & * self . config . channel {
1040
+ "stable" => & self . version ,
1041
+ "beta" => "beta" ,
1042
+ "nightly" | "dev" => "nightly" ,
1043
+ // custom build of rustdoc maybe? link to the latest stable docs just in case
1044
+ _ => "stable" ,
1056
1045
} ;
1057
1046
1058
1047
format ! ( "https://doc.rust-lang.org/{channel}" )
You can’t perform that action at this time.
0 commit comments