rustup self update に失敗するとき

rustup self-update
info: checking for self-updates
info: downloading self-update
info: rustup updated successfully to 1.22.1
error: could not remove 'rustup-bin' file: '...\rustup.exe'
: permission denied

VSCode がプロセスを掴んでいたので全て終了 + タスクマネージャから VSCodeのプロセスを終了する。

rustup self-update
info: checking for self-updates
info: downloading self-update
info: rustup updated successfully to 1.22.1

参考:

github.com