@@ -4,7 +4,6 @@ use std::path::{Path, PathBuf};
44use url:: Url ;
55
66use crate :: dist:: TargetTriple ;
7- use crate :: dist:: manifest:: { Component , Manifest } ;
87use crate :: settings:: MetadataVersion ;
98use crate :: utils:: units;
109use crate :: { dist:: ToolchainDesc , toolchain:: ToolchainName , utils:: notify:: NotificationLevel } ;
@@ -15,7 +14,6 @@ pub(crate) enum Notification<'a> {
1514 CachedFileChecksumFailed ,
1615 /// The URL of the download is passed as the last argument, to allow us to track concurrent downloads.
1716 DownloadingComponent ( & ' a str , & ' a TargetTriple , Option < & ' a TargetTriple > , & ' a str ) ,
18- SkippingNightlyMissingComponent ( & ' a ToolchainDesc , & ' a Manifest , & ' a [ Component ] ) ,
1917 ForcingUnavailableComponent ( & ' a str ) ,
2018 StrayHash ( & ' a Path ) ,
2119 RetryingDownload ( & ' a str ) ,
@@ -64,9 +62,7 @@ impl Notification<'_> {
6462 use self :: Notification :: * ;
6563 match self {
6664 FileAlreadyDownloaded => NotificationLevel :: Debug ,
67- DownloadingComponent ( _, _, _, _)
68- | SkippingNightlyMissingComponent ( _, _, _)
69- | RetryingDownload ( _) => NotificationLevel :: Info ,
65+ DownloadingComponent ( _, _, _, _) | RetryingDownload ( _) => NotificationLevel :: Info ,
7066 CachedFileChecksumFailed | ForcingUnavailableComponent ( _) | StrayHash ( _) => {
7167 NotificationLevel :: Warn
7268 }
@@ -117,22 +113,6 @@ impl Display for Notification<'_> {
117113 "removing stray hash found at '{}' in order to continue" ,
118114 path. display( )
119115 ) ,
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- ) ,
136116 ForcingUnavailableComponent ( component) => {
137117 write ! ( f, "Force-skipping unavailable component '{component}'" )
138118 }
0 commit comments