@@ -1444,62 +1444,6 @@ impl Step for Rustfmt {
14441444    } 
14451445} 
14461446
1447- #[ derive( Debug ,  PartialOrd ,  Ord ,  Clone ,  Hash ,  PartialEq ,  Eq ) ]  
1448- pub  struct  RustDemangler  { 
1449-     pub  compiler :  Compiler , 
1450-     pub  target :  TargetSelection , 
1451- } 
1452- 
1453- impl  Step  for  RustDemangler  { 
1454-     type  Output  = Option < GeneratedTarball > ; 
1455-     const  DEFAULT :  bool  = true ; 
1456-     const  ONLY_HOSTS :  bool  = true ; 
1457- 
1458-     fn  should_run ( run :  ShouldRun < ' _ > )  -> ShouldRun < ' _ >  { 
1459-         // While other tools use `should_build_extended_tool` to decide whether to be run by 
1460-         // default or not, `rust-demangler` must be build when *either* it's enabled as a tool like 
1461-         // the other ones or if `profiler = true`. Because we don't know the target at this stage 
1462-         // we run the step by default when only `extended = true`, and decide whether to actually 
1463-         // run it or not later. 
1464-         let  default = run. builder . config . extended ; 
1465-         run. alias ( "rust-demangler" ) . default_condition ( default) 
1466-     } 
1467- 
1468-     fn  make_run ( run :  RunConfig < ' _ > )  { 
1469-         run. builder . ensure ( RustDemangler  { 
1470-             compiler :  run. builder . compiler_for ( 
1471-                 run. builder . top_stage , 
1472-                 run. builder . config . build , 
1473-                 run. target , 
1474-             ) , 
1475-             target :  run. target , 
1476-         } ) ; 
1477-     } 
1478- 
1479-     fn  run ( self ,  builder :  & Builder < ' _ > )  -> Option < GeneratedTarball >  { 
1480-         let  compiler = self . compiler ; 
1481-         let  target = self . target ; 
1482- 
1483-         // Only build this extended tool if explicitly included in `tools`, or if `profiler = true` 
1484-         let  condition = should_build_extended_tool ( builder,  "rust-demangler" ) 
1485-             || builder. config . profiler_enabled ( target) ; 
1486-         if  builder. config . extended  && !condition { 
1487-             return  None ; 
1488-         } 
1489- 
1490-         let  rust_demangler =
1491-             builder. ensure ( tool:: RustDemangler  {  compiler,  target,  extra_features :  Vec :: new ( )  } ) ; 
1492- 
1493-         // Prepare the image directory 
1494-         let  mut  tarball = Tarball :: new ( builder,  "rust-demangler" ,  & target. triple ) ; 
1495-         tarball. set_overlay ( OverlayKind :: RustDemangler ) ; 
1496-         tarball. is_preview ( true ) ; 
1497-         tarball. add_file ( rust_demangler,  "bin" ,  0o755 ) ; 
1498-         tarball. add_legal_and_readme_to ( "share/doc/rust-demangler" ) ; 
1499-         Some ( tarball. generate ( ) ) 
1500-     } 
1501- } 
1502- 
15031447#[ derive( Debug ,  PartialOrd ,  Ord ,  Clone ,  Hash ,  PartialEq ,  Eq ) ]  
15041448pub  struct  Extended  { 
15051449    stage :  u32 , 
@@ -1557,7 +1501,6 @@ impl Step for Extended {
15571501
15581502        add_component ! ( "rust-docs"  => Docs  {  host:  target } ) ; 
15591503        add_component ! ( "rust-json-docs"  => JsonDocs  {  host:  target } ) ; 
1560-         add_component ! ( "rust-demangler" => RustDemangler  {  compiler,  target } ) ; 
15611504        add_component ! ( "cargo"  => Cargo  {  compiler,  target } ) ; 
15621505        add_component ! ( "rustfmt"  => Rustfmt  {  compiler,  target } ) ; 
15631506        add_component ! ( "rls"  => Rls  {  compiler,  target } ) ; 
@@ -1621,7 +1564,7 @@ impl Step for Extended {
16211564
16221565        let  xform = |p :  & Path | { 
16231566            let  mut  contents = t ! ( fs:: read_to_string( p) ) ; 
1624-             for  tool in  & [ "rust-demangler"  ,   " miri",  "rust-docs" ]  { 
1567+             for  tool in  & [ "miri" ,  "rust-docs" ]  { 
16251568                if  !built_tools. contains ( tool)  { 
16261569                    contents = filter ( & contents,  tool) ; 
16271570                } 
@@ -1662,7 +1605,7 @@ impl Step for Extended {
16621605            prepare ( "rust-analysis" ) ; 
16631606            prepare ( "clippy" ) ; 
16641607            prepare ( "rust-analyzer" ) ; 
1665-             for  tool in  & [ "rust-docs" ,  "rust-demangler"  ,   " miri",  "rustc-codegen-cranelift" ]  { 
1608+             for  tool in  & [ "rust-docs" ,  "miri" ,  "rustc-codegen-cranelift" ]  { 
16661609                if  built_tools. contains ( tool)  { 
16671610                    prepare ( tool) ; 
16681611                } 
@@ -1702,8 +1645,6 @@ impl Step for Extended {
17021645                    "rust-analyzer-preview" . to_string ( ) 
17031646                }  else  if  name == "clippy"  { 
17041647                    "clippy-preview" . to_string ( ) 
1705-                 }  else  if  name == "rust-demangler"  { 
1706-                     "rust-demangler-preview" . to_string ( ) 
17071648                }  else  if  name == "miri"  { 
17081649                    "miri-preview" . to_string ( ) 
17091650                }  else  if  name == "rustc-codegen-cranelift"  { 
@@ -1723,7 +1664,7 @@ impl Step for Extended {
17231664            prepare ( "cargo" ) ; 
17241665            prepare ( "rust-analysis" ) ; 
17251666            prepare ( "rust-std" ) ; 
1726-             for  tool in  & [ "clippy" ,  "rust-analyzer" ,  "rust-docs" ,  "rust-demangler"  ,   " miri"]  { 
1667+             for  tool in  & [ "clippy" ,  "rust-analyzer" ,  "rust-docs" ,  "miri" ]  { 
17271668                if  built_tools. contains ( tool)  { 
17281669                    prepare ( tool) ; 
17291670                } 
@@ -1847,25 +1788,6 @@ impl Step for Extended {
18471788                        . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) , 
18481789                ) ; 
18491790            } 
1850-             if  built_tools. contains ( "rust-demangler" )  { 
1851-                 builder. run ( 
1852-                     Command :: new ( & heat) 
1853-                         . current_dir ( & exe) 
1854-                         . arg ( "dir" ) 
1855-                         . arg ( "rust-demangler" ) 
1856-                         . args ( heat_flags) 
1857-                         . arg ( "-cg" ) 
1858-                         . arg ( "RustDemanglerGroup" ) 
1859-                         . arg ( "-dr" ) 
1860-                         . arg ( "RustDemangler" ) 
1861-                         . arg ( "-var" ) 
1862-                         . arg ( "var.RustDemanglerDir" ) 
1863-                         . arg ( "-out" ) 
1864-                         . arg ( exe. join ( "RustDemanglerGroup.wxs" ) ) 
1865-                         . arg ( "-t" ) 
1866-                         . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) , 
1867-                 ) ; 
1868-             } 
18691791            if  built_tools. contains ( "miri" )  { 
18701792                builder. run ( 
18711793                    Command :: new ( & heat) 
@@ -1943,9 +1865,6 @@ impl Step for Extended {
19431865                if  built_tools. contains ( "rust-docs" )  { 
19441866                    cmd. arg ( "-dDocsDir=rust-docs" ) ; 
19451867                } 
1946-                 if  built_tools. contains ( "rust-demangler" )  { 
1947-                     cmd. arg ( "-dRustDemanglerDir=rust-demangler" ) ; 
1948-                 } 
19491868                if  built_tools. contains ( "rust-analyzer" )  { 
19501869                    cmd. arg ( "-dRustAnalyzerDir=rust-analyzer" ) ; 
19511870                } 
@@ -1972,9 +1891,6 @@ impl Step for Extended {
19721891            if  built_tools. contains ( "miri" )  { 
19731892                candle ( "MiriGroup.wxs" . as_ref ( ) ) ; 
19741893            } 
1975-             if  built_tools. contains ( "rust-demangler" )  { 
1976-                 candle ( "RustDemanglerGroup.wxs" . as_ref ( ) ) ; 
1977-             } 
19781894            if  built_tools. contains ( "rust-analyzer" )  { 
19791895                candle ( "RustAnalyzerGroup.wxs" . as_ref ( ) ) ; 
19801896            } 
@@ -2016,9 +1932,6 @@ impl Step for Extended {
20161932            if  built_tools. contains ( "rust-analyzer" )  { 
20171933                cmd. arg ( "RustAnalyzerGroup.wixobj" ) ; 
20181934            } 
2019-             if  built_tools. contains ( "rust-demangler" )  { 
2020-                 cmd. arg ( "RustDemanglerGroup.wixobj" ) ; 
2021-             } 
20221935            if  built_tools. contains ( "rust-docs" )  { 
20231936                cmd. arg ( "DocsGroup.wixobj" ) ; 
20241937            } 
0 commit comments