@@ -1644,7 +1644,7 @@ impl Step for Extended {
1644
1644
. arg ( pkg. join ( component) )
1645
1645
. arg ( "--nopayload" )
1646
1646
. arg ( pkg. join ( component) . with_extension ( "pkg" ) ) ;
1647
- builder. run ( & mut cmd) ;
1647
+ builder. run ( cmd) ;
1648
1648
} ;
1649
1649
1650
1650
let prepare = |name : & str | {
@@ -1687,7 +1687,7 @@ impl Step for Extended {
1687
1687
. arg ( "--package-path" )
1688
1688
. arg ( & pkg) ;
1689
1689
let _time = timeit ( builder) ;
1690
- builder. run ( & mut cmd) ;
1690
+ builder. run ( cmd) ;
1691
1691
}
1692
1692
1693
1693
if target. is_windows ( ) {
@@ -1743,9 +1743,9 @@ impl Step for Extended {
1743
1743
let light = wix. join ( "bin/light.exe" ) ;
1744
1744
1745
1745
let heat_flags = [ "-nologo" , "-gg" , "-sfrag" , "-srd" , "-sreg" ] ;
1746
- builder. run (
1747
- Command :: new ( & heat)
1748
- . current_dir ( & exe)
1746
+ builder. run ( {
1747
+ let mut cmd = Command :: new ( & heat) ;
1748
+ cmd . current_dir ( & exe)
1749
1749
. arg ( "dir" )
1750
1750
. arg ( "rustc" )
1751
1751
. args ( heat_flags)
@@ -1756,12 +1756,13 @@ impl Step for Extended {
1756
1756
. arg ( "-var" )
1757
1757
. arg ( "var.RustcDir" )
1758
1758
. arg ( "-out" )
1759
- . arg ( exe. join ( "RustcGroup.wxs" ) ) ,
1760
- ) ;
1759
+ . arg ( exe. join ( "RustcGroup.wxs" ) ) ;
1760
+ cmd
1761
+ } ) ;
1761
1762
if built_tools. contains ( "rust-docs" ) {
1762
- builder. run (
1763
- Command :: new ( & heat)
1764
- . current_dir ( & exe)
1763
+ builder. run ( {
1764
+ let mut cmd = Command :: new ( & heat) ;
1765
+ cmd . current_dir ( & exe)
1765
1766
. arg ( "dir" )
1766
1767
. arg ( "rust-docs" )
1767
1768
. args ( heat_flags)
@@ -1774,12 +1775,13 @@ impl Step for Extended {
1774
1775
. arg ( "-out" )
1775
1776
. arg ( exe. join ( "DocsGroup.wxs" ) )
1776
1777
. arg ( "-t" )
1777
- . arg ( etc. join ( "msi/squash-components.xsl" ) ) ,
1778
- ) ;
1778
+ . arg ( etc. join ( "msi/squash-components.xsl" ) ) ;
1779
+ cmd
1780
+ } ) ;
1779
1781
}
1780
- builder. run (
1781
- Command :: new ( & heat)
1782
- . current_dir ( & exe)
1782
+ builder. run ( {
1783
+ let mut cmd = Command :: new ( & heat) ;
1784
+ cmd . current_dir ( & exe)
1783
1785
. arg ( "dir" )
1784
1786
. arg ( "cargo" )
1785
1787
. args ( heat_flags)
@@ -1792,11 +1794,12 @@ impl Step for Extended {
1792
1794
. arg ( "-out" )
1793
1795
. arg ( exe. join ( "CargoGroup.wxs" ) )
1794
1796
. arg ( "-t" )
1795
- . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1796
- ) ;
1797
- builder. run (
1798
- Command :: new ( & heat)
1799
- . current_dir ( & exe)
1797
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ;
1798
+ cmd
1799
+ } ) ;
1800
+ builder. run ( {
1801
+ let mut cmd = Command :: new ( & heat) ;
1802
+ cmd. current_dir ( & exe)
1800
1803
. arg ( "dir" )
1801
1804
. arg ( "rust-std" )
1802
1805
. args ( heat_flags)
@@ -1807,12 +1810,13 @@ impl Step for Extended {
1807
1810
. arg ( "-var" )
1808
1811
. arg ( "var.StdDir" )
1809
1812
. arg ( "-out" )
1810
- . arg ( exe. join ( "StdGroup.wxs" ) ) ,
1811
- ) ;
1813
+ . arg ( exe. join ( "StdGroup.wxs" ) ) ;
1814
+ cmd
1815
+ } ) ;
1812
1816
if built_tools. contains ( "rust-analyzer" ) {
1813
- builder. run (
1814
- Command :: new ( & heat)
1815
- . current_dir ( & exe)
1817
+ builder. run ( {
1818
+ let mut cmd = Command :: new ( & heat) ;
1819
+ cmd . current_dir ( & exe)
1816
1820
. arg ( "dir" )
1817
1821
. arg ( "rust-analyzer" )
1818
1822
. args ( heat_flags)
@@ -1825,13 +1829,14 @@ impl Step for Extended {
1825
1829
. arg ( "-out" )
1826
1830
. arg ( exe. join ( "RustAnalyzerGroup.wxs" ) )
1827
1831
. arg ( "-t" )
1828
- . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1829
- ) ;
1832
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ;
1833
+ cmd
1834
+ } ) ;
1830
1835
}
1831
1836
if built_tools. contains ( "clippy" ) {
1832
- builder. run (
1833
- Command :: new ( & heat)
1834
- . current_dir ( & exe)
1837
+ builder. run ( {
1838
+ let mut cmd = Command :: new ( & heat) ;
1839
+ cmd . current_dir ( & exe)
1835
1840
. arg ( "dir" )
1836
1841
. arg ( "clippy" )
1837
1842
. args ( heat_flags)
@@ -1844,13 +1849,14 @@ impl Step for Extended {
1844
1849
. arg ( "-out" )
1845
1850
. arg ( exe. join ( "ClippyGroup.wxs" ) )
1846
1851
. arg ( "-t" )
1847
- . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1848
- ) ;
1852
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ;
1853
+ cmd
1854
+ } ) ;
1849
1855
}
1850
1856
if built_tools. contains ( "rust-demangler" ) {
1851
- builder. run (
1852
- Command :: new ( & heat)
1853
- . current_dir ( & exe)
1857
+ builder. run ( {
1858
+ let mut cmd = Command :: new ( & heat) ;
1859
+ cmd . current_dir ( & exe)
1854
1860
. arg ( "dir" )
1855
1861
. arg ( "rust-demangler" )
1856
1862
. args ( heat_flags)
@@ -1863,13 +1869,14 @@ impl Step for Extended {
1863
1869
. arg ( "-out" )
1864
1870
. arg ( exe. join ( "RustDemanglerGroup.wxs" ) )
1865
1871
. arg ( "-t" )
1866
- . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1867
- ) ;
1872
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ;
1873
+ cmd
1874
+ } ) ;
1868
1875
}
1869
1876
if built_tools. contains ( "miri" ) {
1870
- builder. run (
1871
- Command :: new ( & heat)
1872
- . current_dir ( & exe)
1877
+ builder. run ( {
1878
+ let mut cmd = Command :: new ( & heat) ;
1879
+ cmd . current_dir ( & exe)
1873
1880
. arg ( "dir" )
1874
1881
. arg ( "miri" )
1875
1882
. args ( heat_flags)
@@ -1882,12 +1889,13 @@ impl Step for Extended {
1882
1889
. arg ( "-out" )
1883
1890
. arg ( exe. join ( "MiriGroup.wxs" ) )
1884
1891
. arg ( "-t" )
1885
- . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1886
- ) ;
1892
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ;
1893
+ cmd
1894
+ } ) ;
1887
1895
}
1888
- builder. run (
1889
- Command :: new ( & heat)
1890
- . current_dir ( & exe)
1896
+ builder. run ( {
1897
+ let mut cmd = Command :: new ( & heat) ;
1898
+ cmd . current_dir ( & exe)
1891
1899
. arg ( "dir" )
1892
1900
. arg ( "rust-analysis" )
1893
1901
. args ( heat_flags)
@@ -1900,24 +1908,25 @@ impl Step for Extended {
1900
1908
. arg ( "-out" )
1901
1909
. arg ( exe. join ( "AnalysisGroup.wxs" ) )
1902
1910
. arg ( "-t" )
1903
- . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1904
- ) ;
1911
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ;
1912
+ cmd
1913
+ } ) ;
1905
1914
if target. ends_with ( "windows-gnu" ) {
1906
- builder . run (
1907
- Command :: new ( & heat )
1908
- . current_dir ( & exe )
1909
- . arg ( "dir " )
1910
- . arg ( "rust-mingw" )
1911
- . args ( heat_flags )
1912
- . arg ( "-cg " )
1913
- . arg ( "GccGroup " )
1914
- . arg ( "-dr " )
1915
- . arg ( "Gcc " )
1916
- . arg ( "- var" )
1917
- . arg ( "var.GccDir " )
1918
- . arg ( "-out" )
1919
- . arg ( exe . join ( "GccGroup.wxs" ) ) ,
1920
- ) ;
1915
+ let mut cmd = Command :: new ( & heat ) ;
1916
+ cmd . current_dir ( & exe )
1917
+ . arg ( "dir" )
1918
+ . arg ( "rust-mingw " )
1919
+ . args ( heat_flags )
1920
+ . arg ( "-cg" )
1921
+ . arg ( "GccGroup " )
1922
+ . arg ( "-dr " )
1923
+ . arg ( "Gcc " )
1924
+ . arg ( "-var " )
1925
+ . arg ( "var.GccDir " )
1926
+ . arg ( "-out " )
1927
+ . arg ( exe . join ( "GccGroup.wxs" ) ) ;
1928
+
1929
+ builder . run ( cmd ) ;
1921
1930
}
1922
1931
1923
1932
let candle = |input : & Path | {
@@ -1955,7 +1964,7 @@ impl Step for Extended {
1955
1964
if target. ends_with ( "windows-gnu" ) {
1956
1965
cmd. arg ( "-dGccDir=rust-mingw" ) ;
1957
1966
}
1958
- builder. run ( & mut cmd) ;
1967
+ builder. run ( cmd) ;
1959
1968
} ;
1960
1969
candle ( & xform ( & etc. join ( "msi/rust.wxs" ) ) ) ;
1961
1970
candle ( & etc. join ( "msi/ui.wxs" ) ) ;
@@ -2030,7 +2039,7 @@ impl Step for Extended {
2030
2039
cmd. arg ( "-sice:ICE57" ) ;
2031
2040
2032
2041
let _time = timeit ( builder) ;
2033
- builder. run ( & mut cmd) ;
2042
+ builder. run ( cmd) ;
2034
2043
2035
2044
if !builder. config . dry_run ( ) {
2036
2045
t ! ( move_file( exe. join( & filename) , distdir( builder) . join( & filename) ) ) ;
0 commit comments