Skip to content

Commit ee2b8ee

Browse files
committed
Revert "fix missing rustfmt and clippy for msi"
This reverts commit f5577a8.
1 parent e98a41e commit ee2b8ee

File tree

2 files changed

+2
-70
lines changed

2 files changed

+2
-70
lines changed

Diff for: src/bootstrap/src/core/build_steps/dist.rs

+1-30
Original file line numberDiff line numberDiff line change
@@ -1634,8 +1634,6 @@ impl Step for Extended {
16341634
"rust-analyzer-preview".to_string()
16351635
} else if name == "clippy" {
16361636
"clippy-preview".to_string()
1637-
} else if name == "rustfmt" {
1638-
"rustfmt-preview".to_string()
16391637
} else if name == "miri" {
16401638
"miri-preview".to_string()
16411639
} else if name == "rustc-codegen-cranelift" {
@@ -1655,7 +1653,7 @@ impl Step for Extended {
16551653
prepare("cargo");
16561654
prepare("rust-analysis");
16571655
prepare("rust-std");
1658-
for tool in &["clippy", "rustfmt", "rust-analyzer", "rust-docs", "miri"] {
1656+
for tool in &["clippy", "rust-analyzer", "rust-docs", "miri"] {
16591657
if built_tools.contains(tool) {
16601658
prepare(tool);
16611659
}
@@ -1773,24 +1771,6 @@ impl Step for Extended {
17731771
.arg(etc.join("msi/remove-duplicates.xsl"))
17741772
.run(builder);
17751773
}
1776-
if built_tools.contains("rustfmt") {
1777-
command(&heat)
1778-
.current_dir(&exe)
1779-
.arg("dir")
1780-
.arg("rustfmt")
1781-
.args(heat_flags)
1782-
.arg("-cg")
1783-
.arg("RustFmtGroup")
1784-
.arg("-dr")
1785-
.arg("RustFmt")
1786-
.arg("-var")
1787-
.arg("var.RustFmtDir")
1788-
.arg("-out")
1789-
.arg(exe.join("RustFmtGroup.wxs"))
1790-
.arg("-t")
1791-
.arg(etc.join("msi/remove-duplicates.xsl"))
1792-
.run(builder);
1793-
}
17941774
if built_tools.contains("miri") {
17951775
command(&heat)
17961776
.current_dir(&exe)
@@ -1862,9 +1842,6 @@ impl Step for Extended {
18621842
if built_tools.contains("clippy") {
18631843
cmd.arg("-dClippyDir=clippy");
18641844
}
1865-
if built_tools.contains("rustfmt") {
1866-
cmd.arg("-dRustFmtDir=rustfmt");
1867-
}
18681845
if built_tools.contains("rust-docs") {
18691846
cmd.arg("-dDocsDir=rust-docs");
18701847
}
@@ -1891,9 +1868,6 @@ impl Step for Extended {
18911868
if built_tools.contains("clippy") {
18921869
candle("ClippyGroup.wxs".as_ref());
18931870
}
1894-
if built_tools.contains("rustfmt") {
1895-
candle("RustFmtGroup.wxs".as_ref());
1896-
}
18971871
if built_tools.contains("miri") {
18981872
candle("MiriGroup.wxs".as_ref());
18991873
}
@@ -1932,9 +1906,6 @@ impl Step for Extended {
19321906
if built_tools.contains("clippy") {
19331907
cmd.arg("ClippyGroup.wixobj");
19341908
}
1935-
if built_tools.contains("rustfmt") {
1936-
cmd.arg("RustFmtGroup.wixobj");
1937-
}
19381909
if built_tools.contains("miri") {
19391910
cmd.arg("MiriGroup.wixobj");
19401911
}

Diff for: src/etc/installer/msi/rust.wxs

+1-40
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,6 @@
172172
<!-- tool-rust-docs-end -->
173173
<Directory Id="Cargo" Name="." />
174174
<Directory Id="Std" Name="." />
175-
<Directory Id="RustFmt" Name="." />
176-
<Directory Id="RustAnalyzer" Name="." />
177-
<Directory Id="Miri" Name="." />
178-
<Directory Id="Analysis" Name="." />
179-
<Directory Id="Clippy" Name="." />
180175
</Directory>
181176
</Directory>
182177

@@ -284,41 +279,7 @@
284279
<ComponentRef Id="PathEnvPerMachine" />
285280
<ComponentRef Id="PathEnvPerUser" />
286281
</Feature>
287-
<Feature Id="RustFmt"
288-
Title="Formatter for rust"
289-
Display="7"
290-
Level="1"
291-
AllowAdvertise="no">
292-
<ComponentGroupRef Id="RustFmtGroup" />
293-
</Feature>
294-
<Feature Id="Clippy"
295-
Title="Formatter and checker for rust"
296-
Display="8"
297-
Level="1"
298-
AllowAdvertise="no">
299-
<ComponentGroupRef Id="ClippyGroup" />
300-
</Feature>
301-
<Feature Id="Miri"
302-
Title="Soundness checker for rust"
303-
Display="9"
304-
Level="1"
305-
AllowAdvertise="no">
306-
<ComponentGroupRef Id="MiriGroup" />
307-
</Feature>
308-
<Feature Id="RustAnalyzer"
309-
Title="Analyzer for rust"
310-
Display="10"
311-
Level="1"
312-
AllowAdvertise="no">
313-
<ComponentGroupRef Id="RustAnalyzerGroup" />
314-
</Feature>
315-
<Feature Id="Analysis"
316-
Title="Analysis for rust"
317-
Display="11"
318-
Level="1"
319-
AllowAdvertise="no">
320-
<ComponentGroupRef Id="AnalysisGroup" />
321-
</Feature>
282+
322283
<UIRef Id="RustUI" />
323284
</Product>
324285
</Wix>

0 commit comments

Comments
 (0)