@@ -44,6 +44,7 @@ use crate::utils::helpers::{self, exe, output, t};
44
44
/// final output/compiler, which can be significantly affected by changes made to the bootstrap sources.
45
45
#[ rustfmt:: skip] // We don't want rustfmt to oneline this list
46
46
pub ( crate ) const RUSTC_IF_UNCHANGED_ALLOWED_PATHS : & [ & str ] = & [
47
+ ":!library" ,
47
48
":!src/tools" ,
48
49
":!src/librustdoc" ,
49
50
":!src/rustdoc-json-types" ,
@@ -3063,24 +3064,14 @@ impl Config {
3063
3064
}
3064
3065
} ;
3065
3066
3066
- // RUSTC_IF_UNCHANGED_ALLOWED_PATHS
3067
- let mut allowed_paths = RUSTC_IF_UNCHANGED_ALLOWED_PATHS . to_vec ( ) ;
3068
-
3069
- // In CI, disable ci-rustc if there are changes in the library tree. But for non-CI, allow
3070
- // these changes to speed up the build process for library developers. This provides consistent
3071
- // functionality for library developers between `download-rustc=true` and `download-rustc="if-unchanged"`
3072
- // options.
3073
- //
3074
- // If you update "library" logic here, update `builder::tests::ci_rustc_if_unchanged_logic` test
3075
- // logic accordingly.
3076
- if !self . is_running_on_ci {
3077
- allowed_paths. push ( ":!library" ) ;
3078
- }
3079
-
3080
3067
let commit = if self . rust_info . is_managed_git_subrepository ( ) {
3081
3068
// Look for a version to compare to based on the current commit.
3082
3069
// Only commits merged by bors will have CI artifacts.
3083
- match self . last_modified_commit ( & allowed_paths, "download-rustc" , if_unchanged) {
3070
+ match self . last_modified_commit (
3071
+ RUSTC_IF_UNCHANGED_ALLOWED_PATHS ,
3072
+ "download-rustc" ,
3073
+ if_unchanged,
3074
+ ) {
3084
3075
Some ( commit) => commit,
3085
3076
None => {
3086
3077
if if_unchanged {
0 commit comments