@@ -58,7 +58,7 @@ use anyhow::{anyhow, Context, Result};
5858use cfg_if:: cfg_if;
5959use same_file:: Handle ;
6060
61- use crate :: currentprocess :: terminalsource;
61+ use crate :: process :: terminalsource;
6262use crate :: {
6363 cli:: {
6464 common:: { self , ignorable_error, report_error, Confirm , PackageUpdate } ,
@@ -1306,18 +1306,18 @@ mod tests {
13061306 use crate :: cli:: common;
13071307 use crate :: dist:: dist:: PartialToolchainDesc ;
13081308 use crate :: test:: { test_dir, with_rustup_home, Env } ;
1309- use crate :: { currentprocess , for_host } ;
1309+ use crate :: { for_host , process } ;
13101310
13111311 #[ test]
13121312 fn default_toolchain_is_stable ( ) {
13131313 with_rustup_home ( |home| {
13141314 let mut vars = HashMap :: new ( ) ;
13151315 home. apply ( & mut vars) ;
1316- let tp = currentprocess :: TestProcess {
1316+ let tp = process :: TestProcess {
13171317 vars,
13181318 ..Default :: default ( )
13191319 } ;
1320- currentprocess :: with ( tp. clone ( ) . into ( ) , || -> Result < ( ) > {
1320+ process :: with ( tp. clone ( ) . into ( ) , || -> Result < ( ) > {
13211321 // TODO: we could pass in a custom cfg to get notification
13221322 // callbacks rather than output to the tp sink.
13231323 let mut cfg = common:: set_globals ( false , false ) . unwrap ( ) ;
@@ -1360,11 +1360,11 @@ info: default host triple is {0}
13601360 let cargo_home = root_dir. path ( ) . join ( "cargo" ) ;
13611361 let mut vars = HashMap :: new ( ) ;
13621362 vars. env ( "CARGO_HOME" , cargo_home. to_string_lossy ( ) . to_string ( ) ) ;
1363- let tp = currentprocess :: TestProcess {
1363+ let tp = process :: TestProcess {
13641364 vars,
13651365 ..Default :: default ( )
13661366 } ;
1367- currentprocess :: with ( tp. into ( ) , || -> Result < ( ) > {
1367+ process :: with ( tp. into ( ) , || -> Result < ( ) > {
13681368 super :: install_bins ( ) . unwrap ( ) ;
13691369 Ok ( ( ) )
13701370 } )
0 commit comments