@@ -25,7 +25,6 @@ pub(crate) enum Notification<'a> {
2525 /// member, but the notification callback is already narrowed to
2626 /// utils::notifications by the time tar unpacking is called.
2727 SetDefaultBufferSize ( usize ) ,
28- UpgradeRemovesToolchains ,
2928 /// Both `rust-toolchain` and `rust-toolchain.toml` exist within a directory
3029 DuplicateToolchainFile {
3130 rust_toolchain : & ' a Path ,
@@ -45,7 +44,7 @@ impl Notification<'_> {
4544 | DownloadDataReceived ( _, _)
4645 | DownloadFinished ( _)
4746 | DownloadFailed ( _) => NotificationLevel :: Debug ,
48- UpgradeRemovesToolchains | DuplicateToolchainFile { .. } => NotificationLevel :: Warn ,
47+ DuplicateToolchainFile { .. } => NotificationLevel :: Warn ,
4948 }
5049 }
5150}
@@ -73,10 +72,6 @@ impl Display for Notification<'_> {
7372 DownloadDataReceived ( data, _) => write ! ( f, "received some data of size {}" , data. len( ) ) ,
7473 DownloadFinished ( _) => write ! ( f, "download finished" ) ,
7574 DownloadFailed ( _) => write ! ( f, "download failed" ) ,
76- UpgradeRemovesToolchains => write ! (
77- f,
78- "this upgrade will remove all existing toolchains. you will need to reinstall them"
79- ) ,
8075 DuplicateToolchainFile {
8176 rust_toolchain,
8277 rust_toolchain_toml,
0 commit comments