@@ -129,13 +129,7 @@ pub fn do_remove_from_programs() -> Result<()> {
129129}
130130
131131/// 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.
139133pub fn run_update ( setup_path : & Path ) -> Result < utils:: ExitCode > {
140134 let status = Command :: new ( setup_path)
141135 . arg ( "--self-replace" )
@@ -151,8 +145,7 @@ pub fn run_update(setup_path: &Path) -> Result<utils::ExitCode> {
151145
152146/// This function is as the final step of a self-upgrade. It replaces
153147/// `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.
156149pub fn self_replace ( ) -> Result < utils:: ExitCode > {
157150 install_bins ( ) ?;
158151
@@ -181,7 +174,7 @@ fn remove_legacy_source_command(source_cmd: String) -> Result<()> {
181174
182175fn remove_legacy_paths ( ) -> Result < ( ) > {
183176 // 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
185178 // now considered legacy
186179 remove_legacy_source_command ( format ! (
187180 "export PATH=\" {}/bin:$PATH\" \n " ,
0 commit comments