fix-build-1.53.0.patch 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. commit 601d24810e89efd42f7cd69d4a7ccecd4e35364d
  2. Author: Eric Huss <eric@huss.org>
  3. Date: Tue Jun 22 22:10:25 2021 -0700
  4. Don't dist miri on stable or beta.
  5. diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
  6. index 71ed0af4a7c..e0c33f73577 100644
  7. --- a/src/bootstrap/dist.rs
  8. +++ b/src/bootstrap/dist.rs
  9. @@ -1171,6 +1171,9 @@ impl Step for Miri {
  10. }
  11. fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
  12. + if !builder.build.unstable_features() {
  13. + return None;
  14. + }
  15. let compiler = self.compiler;
  16. let target = self.target;
  17. assert!(builder.config.extended);
  18. commit 6aa79a34d87252deaae11e75663e5740a22f14ea
  19. Author: Eric Huss <eric@huss.org>
  20. Date: Wed Jun 23 07:03:42 2021 -0700
  21. Comment and include rust-analyzer.
  22. diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
  23. index e0c33f73577..19895baf08f 100644
  24. --- a/src/bootstrap/dist.rs
  25. +++ b/src/bootstrap/dist.rs
  26. @@ -1072,6 +1072,12 @@ impl Step for RustAnalyzer {
  27. }
  28. fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
  29. + // This prevents rust-analyzer from being built for "dist" or "install"
  30. + // on the stable/beta channels. It is a nightly-only tool and should
  31. + // not be included.
  32. + if !builder.build.unstable_features() {
  33. + return None;
  34. + }
  35. let compiler = self.compiler;
  36. let target = self.target;
  37. assert!(builder.config.extended);
  38. @@ -1171,6 +1177,9 @@ impl Step for Miri {
  39. }
  40. fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
  41. + // This prevents miri from being built for "dist" or "install"
  42. + // on the stable/beta channels. It is a nightly-only tool and should
  43. + // not be included.
  44. if !builder.build.unstable_features() {
  45. return None;
  46. }
  47. Disable rust-analyzer
  48. diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
  49. index cff1ec843ff..3767b0387a0 100644
  50. --- a/src/bootstrap/builder.rs
  51. +++ b/src/bootstrap/builder.rs
  52. @@ -482,7 +482,6 @@ impl<'a> Builder<'a> {
  53. install::Std,
  54. install::Cargo,
  55. install::Rls,
  56. - install::RustAnalyzer,
  57. install::Rustfmt,
  58. install::RustDemangler,
  59. install::Clippy,
  60. diff --git a/src/bootstrap/install.rs b/src/bootstrap/install.rs
  61. index 13ee909afd5..a38fc9e95eb 100644
  62. --- a/src/bootstrap/install.rs
  63. +++ b/src/bootstrap/install.rs
  64. @@ -164,12 +164,6 @@ install!((self, builder, _config),
  65. );
  66. }
  67. };
  68. - RustAnalyzer, "rust-analyzer", Self::should_build(_config), only_hosts: true, {
  69. - let tarball = builder
  70. - .ensure(dist::RustAnalyzer { compiler: self.compiler, target: self.target })
  71. - .expect("missing rust-analyzer");
  72. - install_sh(builder, "rust-analyzer", self.compiler.stage, Some(self.target), &tarball);
  73. - };
  74. Clippy, "clippy", Self::should_build(_config), only_hosts: true, {
  75. let tarball = builder.ensure(dist::Clippy { compiler: self.compiler, target: self.target });
  76. install_sh(builder, "clippy", self.compiler.stage, Some(self.target), &tarball);