@@ -7,6 +7,8 @@ use crate::utils::notify::NotificationLevel;
7
7
use std:: fmt:: { self , Display } ;
8
8
use std:: path:: Path ;
9
9
10
+ use super :: manifest:: Manifest ;
11
+
10
12
#[ derive( Debug ) ]
11
13
pub enum Notification < ' a > {
12
14
Utils ( crate :: utils:: Notification < ' a > ) ,
@@ -31,7 +33,7 @@ pub enum Notification<'a> {
31
33
DownloadingManifest ( & ' a str ) ,
32
34
DownloadedManifest ( & ' a str , Option < & ' a str > ) ,
33
35
DownloadingLegacyManifest ,
34
- SkippingNightlyMissingComponent ( & ' a ToolchainDesc , & ' a [ Component ] ) ,
36
+ SkippingNightlyMissingComponent ( & ' a ToolchainDesc , & ' a Manifest , & ' a [ Component ] ) ,
35
37
ForcingUnavailableComponent ( & ' a str ) ,
36
38
ManifestChecksumFailedHack ,
37
39
ComponentUnavailable ( & ' a str , Option < & ' a TargetTriple > ) ,
@@ -72,7 +74,7 @@ impl<'a> Notification<'a> {
72
74
| ManifestChecksumFailedHack
73
75
| RollingBack
74
76
| DownloadingManifest ( _)
75
- | SkippingNightlyMissingComponent ( _, _)
77
+ | SkippingNightlyMissingComponent ( _, _, _ )
76
78
| RetryingDownload ( _)
77
79
| DownloadedManifest ( _, _) => NotificationLevel :: Info ,
78
80
CantReadUpdateHash ( _)
@@ -174,17 +176,17 @@ impl<'a> Display for Notification<'a> {
174
176
"removing stray hash found at '{}' in order to continue" ,
175
177
path. display( )
176
178
) ,
177
- SkippingNightlyMissingComponent ( toolchain, components) => write ! (
179
+ SkippingNightlyMissingComponent ( toolchain, manifest , components) => write ! (
178
180
f,
179
181
"skipping nightly which is missing installed component{} '{}'" ,
180
182
if components. len( ) > 1 { "s" } else { "" } ,
181
183
components
182
184
. iter( )
183
185
. map( |component| {
184
186
if component. target. as_ref( ) != Some ( & toolchain. target) {
185
- component. name_in_manifest ( )
187
+ component. name ( manifest )
186
188
} else {
187
- component. short_name_in_manifest ( ) . to_owned( )
189
+ component. short_name ( manifest ) . to_owned( )
188
190
}
189
191
} )
190
192
. collect:: <Vec <_>>( )
0 commit comments