@@ -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" ,
@@ -3057,24 +3058,14 @@ impl Config {
3057
3058
}
3058
3059
} ;
3059
3060
3060
- // RUSTC_IF_UNCHANGED_ALLOWED_PATHS
3061
- let mut allowed_paths = RUSTC_IF_UNCHANGED_ALLOWED_PATHS . to_vec ( ) ;
3062
-
3063
- // In CI, disable ci-rustc if there are changes in the library tree. But for non-CI, allow
3064
- // these changes to speed up the build process for library developers. This provides consistent
3065
- // functionality for library developers between `download-rustc=true` and `download-rustc="if-unchanged"`
3066
- // options.
3067
- //
3068
- // If you update "library" logic here, update `builder::tests::ci_rustc_if_unchanged_logic` test
3069
- // logic accordingly.
3070
- if !self . is_running_on_ci {
3071
- allowed_paths. push ( ":!library" ) ;
3072
- }
3073
-
3074
3061
let commit = if self . rust_info . is_managed_git_subrepository ( ) {
3075
3062
// Look for a version to compare to based on the current commit.
3076
3063
// Only commits merged by bors will have CI artifacts.
3077
- match self . last_modified_commit ( & allowed_paths, "download-rustc" , if_unchanged) {
3064
+ match self . last_modified_commit (
3065
+ RUSTC_IF_UNCHANGED_ALLOWED_PATHS ,
3066
+ "download-rustc" ,
3067
+ if_unchanged,
3068
+ ) {
3078
3069
Some ( commit) => commit,
3079
3070
None => {
3080
3071
if if_unchanged {
0 commit comments