@@ -4,7 +4,6 @@ use std::path::{Path, PathBuf};
4
4
use url:: Url ;
5
5
6
6
use crate :: dist:: TargetTriple ;
7
- use crate :: dist:: manifest:: { Component , Manifest } ;
8
7
use crate :: settings:: MetadataVersion ;
9
8
use crate :: utils:: units;
10
9
use crate :: { dist:: ToolchainDesc , toolchain:: ToolchainName , utils:: notify:: NotificationLevel } ;
@@ -15,7 +14,6 @@ pub(crate) enum Notification<'a> {
15
14
CachedFileChecksumFailed ,
16
15
/// The URL of the download is passed as the last argument, to allow us to track concurrent downloads.
17
16
DownloadingComponent ( & ' a str , & ' a TargetTriple , Option < & ' a TargetTriple > , & ' a str ) ,
18
- SkippingNightlyMissingComponent ( & ' a ToolchainDesc , & ' a Manifest , & ' a [ Component ] ) ,
19
17
ForcingUnavailableComponent ( & ' a str ) ,
20
18
StrayHash ( & ' a Path ) ,
21
19
RetryingDownload ( & ' a str ) ,
@@ -64,9 +62,7 @@ impl Notification<'_> {
64
62
use self :: Notification :: * ;
65
63
match self {
66
64
FileAlreadyDownloaded => NotificationLevel :: Debug ,
67
- DownloadingComponent ( _, _, _, _)
68
- | SkippingNightlyMissingComponent ( _, _, _)
69
- | RetryingDownload ( _) => NotificationLevel :: Info ,
65
+ DownloadingComponent ( _, _, _, _) | RetryingDownload ( _) => NotificationLevel :: Info ,
70
66
CachedFileChecksumFailed | ForcingUnavailableComponent ( _) | StrayHash ( _) => {
71
67
NotificationLevel :: Warn
72
68
}
@@ -117,22 +113,6 @@ impl Display for Notification<'_> {
117
113
"removing stray hash found at '{}' in order to continue" ,
118
114
path. display( )
119
115
) ,
120
- SkippingNightlyMissingComponent ( toolchain, manifest, components) => write ! (
121
- f,
122
- "skipping nightly which is missing installed component{} '{}'" ,
123
- if components. len( ) > 1 { "s" } else { "" } ,
124
- components
125
- . iter( )
126
- . map( |component| {
127
- if component. target. as_ref( ) != Some ( & toolchain. target) {
128
- component. name( manifest)
129
- } else {
130
- component. short_name( manifest)
131
- }
132
- } )
133
- . collect:: <Vec <_>>( )
134
- . join( "', '" )
135
- ) ,
136
116
ForcingUnavailableComponent ( component) => {
137
117
write ! ( f, "Force-skipping unavailable component '{component}'" )
138
118
}
0 commit comments