File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -389,10 +389,11 @@ impl<'a> InstalledCommonToolchain<'a> {
389
389
fn set_env ( & self , cmd : & mut Command ) {
390
390
self . set_ldpath ( cmd) ;
391
391
392
- // Because rustup and cargo use slightly different
393
- // definitions of cargo home (rustup doesn't read HOME on
394
- // windows), we must set it here to ensure cargo and
395
- // rustup agree.
392
+ // Older versions of Cargo used a slightly different definition of
393
+ // cargo home. Rustup does not read HOME on Windows whereas the older
394
+ // versions of Cargo did. Rustup and Cargo should be in sync now (both
395
+ // using the same `home` crate), but this is retained to ensure cargo
396
+ // and rustup agree in older versions.
396
397
if let Ok ( cargo_home) = utils:: cargo_home ( ) {
397
398
cmd. env ( "CARGO_HOME" , & cargo_home) ;
398
399
}
You can’t perform that action at this time.
0 commit comments