From d2549134a93ea56223a5d8304cf3220aed70f482 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 11 Jan 2023 17:11:22 +0000 Subject: [PATCH] Fix patch syntax error Signed-off-by: David Abdurachmanov --- enable-ra-for-riscv.patch | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/enable-ra-for-riscv.patch b/enable-ra-for-riscv.patch index 7d768b5..40a1525 100644 --- a/enable-ra-for-riscv.patch +++ b/enable-ra-for-riscv.patch @@ -1,16 +1,17 @@ diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs -index 12585e80e..f7b882880 100644 +index 12585e80e..360b7b6c7 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs -@@ -1085,11 +1085,6 @@ impl Step for RustAnalyzer { - fn run(self, builder: &Builder<'_>) -> Option { +@@ -1086,12 +1086,6 @@ impl Step for RustAnalyzer { let compiler = self.compiler; let target = self.target; -- + - if target.contains("riscv64") { - // riscv64 currently has an LLVM bug that makes rust-analyzer unable - // to build. See #74813 for details. - return None; - } - +- } +- let rust_analyzer = builder + .ensure(tool::RustAnalyzer { compiler, target }) + .expect("rust-analyzer always builds");