@@ -260,7 +260,13 @@ fn rustup_xz() {
260260 set_current_dist_date ( config, "2015-01-01" ) ;
261261 expect_stderr_ok (
262262 config,
263- & [ "rustup" , "--verbose" , "update" , "nightly" , "--no-self-update" ] ,
263+ & [
264+ "rustup" ,
265+ "--verbose" ,
266+ "update" ,
267+ "nightly" ,
268+ "--no-self-update" ,
269+ ] ,
264270 for_host ! ( r"dist/2015-01-01/rust-std-nightly-{0}.tar.xz" ) ,
265271 ) ;
266272 } ) ;
@@ -904,7 +910,10 @@ fn set_default_host_invalid_triple() {
904910fn update_doesnt_update_non_tracking_channels ( ) {
905911 setup ( & |config| {
906912 expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
907- expect_ok ( config, & [ "rustup" , "update" , "nightly-2015-01-01" , "--no-self-update" ] ) ;
913+ expect_ok (
914+ config,
915+ & [ "rustup" , "update" , "nightly-2015-01-01" , "--no-self-update" ] ,
916+ ) ;
908917 let mut cmd = clitools:: cmd ( config, "rustup" , & [ "update" ] ) ;
909918 clitools:: env ( config, & mut cmd) ;
910919 let out = cmd. output ( ) . unwrap ( ) ;
@@ -918,7 +927,16 @@ fn update_doesnt_update_non_tracking_channels() {
918927#[ test]
919928fn toolchain_install_is_like_update ( ) {
920929 setup ( & |config| {
921- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
930+ expect_ok (
931+ config,
932+ & [
933+ "rustup" ,
934+ "toolchain" ,
935+ "install" ,
936+ "nightly" ,
937+ "--no-self-update" ,
938+ ] ,
939+ ) ;
922940 expect_stdout_ok (
923941 config,
924942 & [ "rustup" , "run" , "nightly" , "rustc" , "--version" ] ,
@@ -941,7 +959,16 @@ fn toolchain_install_is_like_update_except_that_bare_install_is_an_error() {
941959#[ test]
942960fn toolchain_update_is_like_update ( ) {
943961 setup ( & |config| {
944- expect_ok ( config, & [ "rustup" , "toolchain" , "update" , "nightly" , "--no-self-update" ] ) ;
962+ expect_ok (
963+ config,
964+ & [
965+ "rustup" ,
966+ "toolchain" ,
967+ "update" ,
968+ "nightly" ,
969+ "--no-self-update" ,
970+ ] ,
971+ ) ;
945972 expect_stdout_ok (
946973 config,
947974 & [ "rustup" , "run" , "nightly" , "rustc" , "--version" ] ,
@@ -978,7 +1005,16 @@ fn toolchain_update_is_like_update_except_that_bare_install_is_an_error() {
9781005fn proxy_toolchain_shorthand ( ) {
9791006 setup ( & |config| {
9801007 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
981- expect_ok ( config, & [ "rustup" , "toolchain" , "update" , "nightly" , "--no-self-update" ] ) ;
1008+ expect_ok (
1009+ config,
1010+ & [
1011+ "rustup" ,
1012+ "toolchain" ,
1013+ "update" ,
1014+ "nightly" ,
1015+ "--no-self-update" ,
1016+ ] ,
1017+ ) ;
9821018 expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-s-2" ) ;
9831019 expect_stdout_ok ( config, & [ "rustc" , "+stable" , "--version" ] , "hash-s-2" ) ;
9841020 expect_stdout_ok ( config, & [ "rustc" , "+nightly" , "--version" ] , "hash-n-2" ) ;
@@ -1237,7 +1273,16 @@ fn multirust_upgrade_works_with_proxy() {
12371273fn file_override ( ) {
12381274 setup ( & |config| {
12391275 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1240- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1276+ expect_ok (
1277+ config,
1278+ & [
1279+ "rustup" ,
1280+ "toolchain" ,
1281+ "install" ,
1282+ "nightly" ,
1283+ "--no-self-update" ,
1284+ ] ,
1285+ ) ;
12411286
12421287 expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-s-2" ) ;
12431288
@@ -1253,7 +1298,16 @@ fn file_override() {
12531298fn file_override_subdir ( ) {
12541299 setup ( & |config| {
12551300 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1256- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1301+ expect_ok (
1302+ config,
1303+ & [
1304+ "rustup" ,
1305+ "toolchain" ,
1306+ "install" ,
1307+ "nightly" ,
1308+ "--no-self-update" ,
1309+ ] ,
1310+ ) ;
12571311
12581312 expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-s-2" ) ;
12591313
@@ -1275,7 +1329,13 @@ fn file_override_with_archive() {
12751329 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
12761330 expect_ok (
12771331 config,
1278- & [ "rustup" , "toolchain" , "install" , "nightly-2015-01-01" , "--no-self-update" ] ,
1332+ & [
1333+ "rustup" ,
1334+ "toolchain" ,
1335+ "install" ,
1336+ "nightly-2015-01-01" ,
1337+ "--no-self-update" ,
1338+ ] ,
12791339 ) ;
12801340
12811341 expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-s-2" ) ;
@@ -1292,8 +1352,20 @@ fn file_override_with_archive() {
12921352fn directory_override_beats_file_override ( ) {
12931353 setup ( & |config| {
12941354 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1295- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ) ;
1296- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1355+ expect_ok (
1356+ config,
1357+ & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ,
1358+ ) ;
1359+ expect_ok (
1360+ config,
1361+ & [
1362+ "rustup" ,
1363+ "toolchain" ,
1364+ "install" ,
1365+ "nightly" ,
1366+ "--no-self-update" ,
1367+ ] ,
1368+ ) ;
12971369
12981370 expect_ok ( config, & [ "rustup" , "override" , "set" , "beta" ] ) ;
12991371 expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-b-2" ) ;
@@ -1310,8 +1382,20 @@ fn directory_override_beats_file_override() {
13101382fn close_file_override_beats_far_directory_override ( ) {
13111383 setup ( & |config| {
13121384 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1313- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ) ;
1314- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1385+ expect_ok (
1386+ config,
1387+ & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ,
1388+ ) ;
1389+ expect_ok (
1390+ config,
1391+ & [
1392+ "rustup" ,
1393+ "toolchain" ,
1394+ "install" ,
1395+ "nightly" ,
1396+ "--no-self-update" ,
1397+ ] ,
1398+ ) ;
13151399
13161400 expect_ok ( config, & [ "rustup" , "override" , "set" , "beta" ] ) ;
13171401 expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-b-2" ) ;
@@ -1334,7 +1418,10 @@ fn close_file_override_beats_far_directory_override() {
13341418fn directory_override_doesnt_need_to_exist_unless_it_is_selected ( ) {
13351419 setup ( & |config| {
13361420 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1337- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ) ;
1421+ expect_ok (
1422+ config,
1423+ & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ,
1424+ ) ;
13381425 // not installing nightly
13391426
13401427 expect_ok ( config, & [ "rustup" , "override" , "set" , "beta" ] ) ;
@@ -1352,8 +1439,20 @@ fn directory_override_doesnt_need_to_exist_unless_it_is_selected() {
13521439fn env_override_beats_file_override ( ) {
13531440 setup ( & |config| {
13541441 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1355- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ) ;
1356- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1442+ expect_ok (
1443+ config,
1444+ & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ,
1445+ ) ;
1446+ expect_ok (
1447+ config,
1448+ & [
1449+ "rustup" ,
1450+ "toolchain" ,
1451+ "install" ,
1452+ "nightly" ,
1453+ "--no-self-update" ,
1454+ ] ,
1455+ ) ;
13571456
13581457 let cwd = config. current_dir ( ) ;
13591458 let toolchain_file = cwd. join ( "rust-toolchain" ) ;
@@ -1372,8 +1471,20 @@ fn env_override_beats_file_override() {
13721471fn plus_override_beats_file_override ( ) {
13731472 setup ( & |config| {
13741473 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1375- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ) ;
1376- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1474+ expect_ok (
1475+ config,
1476+ & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ,
1477+ ) ;
1478+ expect_ok (
1479+ config,
1480+ & [
1481+ "rustup" ,
1482+ "toolchain" ,
1483+ "install" ,
1484+ "nightly" ,
1485+ "--no-self-update" ,
1486+ ] ,
1487+ ) ;
13771488
13781489 let cwd = config. current_dir ( ) ;
13791490 let toolchain_file = cwd. join ( "rust-toolchain" ) ;
@@ -1417,7 +1528,16 @@ fn file_override_with_target_info() {
14171528fn docs_with_path ( ) {
14181529 setup ( & |config| {
14191530 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1420- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1531+ expect_ok (
1532+ config,
1533+ & [
1534+ "rustup" ,
1535+ "toolchain" ,
1536+ "install" ,
1537+ "nightly" ,
1538+ "--no-self-update" ,
1539+ ] ,
1540+ ) ;
14211541
14221542 let mut cmd = clitools:: cmd ( config, "rustup" , & [ "doc" , "--path" ] ) ;
14231543 clitools:: env ( config, & mut cmd) ;
0 commit comments