@@ -129,13 +129,7 @@ pub fn do_remove_from_programs() -> Result<()> {
129
129
}
130
130
131
131
/// Tell the upgrader to replace the rustup bins, then delete
132
- /// itself. Like with uninstallation, on Windows we're going to
133
- /// have to jump through hoops to make everything work right.
134
- ///
135
- /// On windows we're not going to wait for it to finish before exiting
136
- /// successfully, so it should not do much, and it should try
137
- /// really hard to succeed, because at this point the upgrade is
138
- /// considered successful.
132
+ /// itself.
139
133
pub fn run_update ( setup_path : & Path ) -> Result < utils:: ExitCode > {
140
134
let status = Command :: new ( setup_path)
141
135
. arg ( "--self-replace" )
@@ -151,8 +145,7 @@ pub fn run_update(setup_path: &Path) -> Result<utils::ExitCode> {
151
145
152
146
/// This function is as the final step of a self-upgrade. It replaces
153
147
/// `CARGO_HOME`/bin/rustup with the running exe, and updates the the
154
- /// links to it. On windows this will run *after* the original
155
- /// rustup process exits.
148
+ /// links to it.
156
149
pub fn self_replace ( ) -> Result < utils:: ExitCode > {
157
150
install_bins ( ) ?;
158
151
@@ -181,7 +174,7 @@ fn remove_legacy_source_command(source_cmd: String) -> Result<()> {
181
174
182
175
fn remove_legacy_paths ( ) -> Result < ( ) > {
183
176
// Before the work to support more kinds of shells, which was released in
184
- // version 1.23.0 of rustup , we always inserted this line instead, which is
177
+ // version 1.23.0 of Rustup , we always inserted this line instead, which is
185
178
// now considered legacy
186
179
remove_legacy_source_command ( format ! (
187
180
"export PATH=\" {}/bin:$PATH\" \n " ,
0 commit comments