@@ -2949,15 +2949,17 @@ fn rebuild_tracks_target_src_outside_package_root() {
2949
2949
p. cargo ( "doc --verbose -Zrustdoc-depinfo" )
2950
2950
. masquerade_as_nightly_cargo ( & [ "rustdoc-depinfo" ] )
2951
2951
. with_stderr_data ( str![ [ r#"
2952
- [FRESH] foo v0.0.0 ([ROOT]/parent/foo)
2952
+ [DIRTY] foo v0.0.0 ([ROOT]/parent/foo): the file `../lib.rs` has changed ([TIME_DIFF_AFTER_LAST_BUILD])
2953
+ [DOCUMENTING] foo v0.0.0 ([ROOT]/parent/foo)
2954
+ [RUNNING] `rustdoc [..]`
2953
2955
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
2954
2956
[GENERATED] [ROOT]/parent/foo/target/doc/foo/index.html
2955
2957
2956
2958
"# ] ] )
2957
2959
. run ( ) ;
2958
2960
2959
2961
let doc_html = p. read_file ( "target/doc/foo/index.html" ) ;
2960
- assert ! ( ! doc_html. contains( "depinfo-after" ) ) ;
2962
+ assert ! ( doc_html. contains( "depinfo-after" ) ) ;
2961
2963
}
2962
2964
2963
2965
#[ cargo_test( nightly, reason = "`rustdoc --emit` is unstable" ) ]
@@ -2986,15 +2988,17 @@ fn rebuild_tracks_include_str() {
2986
2988
p. cargo ( "doc --verbose -Zrustdoc-depinfo" )
2987
2989
. masquerade_as_nightly_cargo ( & [ "rustdoc-depinfo" ] )
2988
2990
. with_stderr_data ( str![ [ r#"
2989
- [FRESH] foo v0.5.0 ([ROOT]/parent/foo)
2991
+ [DIRTY] foo v0.5.0 ([ROOT]/parent/foo): the file `src/../../README` has changed ([TIME_DIFF_AFTER_LAST_BUILD])
2992
+ [DOCUMENTING] foo v0.5.0 ([ROOT]/parent/foo)
2993
+ [RUNNING] `rustdoc [..]`
2990
2994
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
2991
2995
[GENERATED] [ROOT]/parent/foo/target/doc/foo/index.html
2992
2996
2993
2997
"# ] ] )
2994
2998
. run ( ) ;
2995
2999
2996
3000
let doc_html = p. read_file ( "target/doc/foo/index.html" ) ;
2997
- assert ! ( ! doc_html. contains( "depinfo-after" ) ) ;
3001
+ assert ! ( doc_html. contains( "depinfo-after" ) ) ;
2998
3002
}
2999
3003
3000
3004
#[ cargo_test( nightly, reason = "`rustdoc --emit` is unstable" ) ]
@@ -3023,15 +3027,17 @@ fn rebuild_tracks_path_attr() {
3023
3027
p. cargo ( "doc --verbose -Zrustdoc-depinfo" )
3024
3028
. masquerade_as_nightly_cargo ( & [ "rustdoc-depinfo" ] )
3025
3029
. with_stderr_data ( str![ [ r#"
3026
- [FRESH] foo v0.5.0 ([ROOT]/parent/foo)
3030
+ [DIRTY] foo v0.5.0 ([ROOT]/parent/foo): the file `src/../../bar.rs` has changed ([TIME_DIFF_AFTER_LAST_BUILD])
3031
+ [DOCUMENTING] foo v0.5.0 ([ROOT]/parent/foo)
3032
+ [RUNNING] `rustdoc [..]`
3027
3033
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
3028
3034
[GENERATED] [ROOT]/parent/foo/target/doc/foo/index.html
3029
3035
3030
3036
"# ] ] )
3031
3037
. run ( ) ;
3032
3038
3033
3039
let doc_html = p. read_file ( "target/doc/foo/index.html" ) ;
3034
- assert ! ( ! doc_html. contains( "depinfo-after" ) ) ;
3040
+ assert ! ( doc_html. contains( "depinfo-after" ) ) ;
3035
3041
}
3036
3042
3037
3043
#[ cargo_test( nightly, reason = "`rustdoc --emit` is unstable" ) ]
@@ -3060,15 +3066,17 @@ fn rebuild_tracks_env() {
3060
3066
. env ( env, "# depinfo-after" )
3061
3067
. masquerade_as_nightly_cargo ( & [ "rustdoc-depinfo" ] )
3062
3068
. with_stderr_data ( str![ [ r#"
3063
- [FRESH] foo v0.5.0 ([ROOT]/foo)
3069
+ [DIRTY] foo v0.5.0 ([ROOT]/foo): the environment variable __RUSTDOC_INJECTED changed
3070
+ [DOCUMENTING] foo v0.5.0 ([ROOT]/foo)
3071
+ [RUNNING] `rustdoc [..]`
3064
3072
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
3065
3073
[GENERATED] [ROOT]/foo/target/doc/foo/index.html
3066
3074
3067
3075
"# ] ] )
3068
3076
. run ( ) ;
3069
3077
3070
3078
let doc_html = p. read_file ( "target/doc/foo/index.html" ) ;
3071
- assert ! ( ! doc_html. contains( "depinfo-after" ) ) ;
3079
+ assert ! ( doc_html. contains( "depinfo-after" ) ) ;
3072
3080
}
3073
3081
3074
3082
#[ cargo_test( nightly, reason = "`rustdoc --emit` is unstable" ) ]
@@ -3119,21 +3127,27 @@ fn rebuild_tracks_env_in_dep() {
3119
3127
p. cargo ( "doc --verbose -Zrustdoc-depinfo" )
3120
3128
. env ( env, "# depinfo-after" )
3121
3129
. masquerade_as_nightly_cargo ( & [ "rustdoc-depinfo" ] )
3122
- . with_stderr_data ( str![ [ r#"
3130
+ . with_stderr_data (
3131
+ str![ [ r#"
3132
+ [DIRTY] bar v0.1.0: the environment variable __RUSTDOC_INJECTED changed
3133
+ [DOCUMENTING] bar v0.1.0
3123
3134
[DIRTY] bar v0.1.0: the environment variable __RUSTDOC_INJECTED changed
3124
3135
[CHECKING] bar v0.1.0
3125
3136
[RUNNING] `rustc --crate-name bar [..]`
3137
+ [RUNNING] `rustdoc [..]--crate-name bar [..]`
3126
3138
[DIRTY] foo v0.0.0 ([ROOT]/foo): the dependency bar was rebuilt
3127
3139
[DOCUMENTING] foo v0.0.0 ([ROOT]/foo)
3128
3140
[RUNNING] `rustdoc [..]--crate-name foo [..]`
3129
3141
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
3130
3142
[GENERATED] [ROOT]/foo/target/doc/foo/index.html
3131
3143
3132
- "# ] ] )
3144
+ "# ] ]
3145
+ . unordered ( ) ,
3146
+ )
3133
3147
. run ( ) ;
3134
3148
3135
3149
let doc_html = p. read_file ( "target/doc/bar/index.html" ) ;
3136
- assert ! ( ! doc_html. contains( "depinfo-after" ) ) ;
3150
+ assert ! ( doc_html. contains( "depinfo-after" ) ) ;
3137
3151
}
3138
3152
3139
3153
#[ cargo_test(
@@ -3167,7 +3181,7 @@ fn rebuild_tracks_checksum() {
3167
3181
p. cargo ( "doc --verbose -Zrustdoc-depinfo -Zchecksum-freshness" )
3168
3182
. masquerade_as_nightly_cargo ( & [ "rustdoc-depinfo" ] )
3169
3183
. with_stderr_data ( str![ [ r#"
3170
- [DIRTY] foo v0.5.0 ([ROOT]/parent/foo): the precalculated components changed
3184
+ [DIRTY] foo v0.5.0 ([ROOT]/parent/foo): file size changed (16 != 15) for `src/../../README`
3171
3185
[DOCUMENTING] foo v0.5.0 ([ROOT]/parent/foo)
3172
3186
[RUNNING] `rustdoc [..]`
3173
3187
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
0 commit comments