summarylogtreecommitdiffstats
path: root/rls.patch
diff options
context:
space:
mode:
Diffstat (limited to 'rls.patch')
-rw-r--r--rls.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/rls.patch b/rls.patch
new file mode 100644
index 000000000000..a72804d02769
--- /dev/null
+++ b/rls.patch
@@ -0,0 +1,19 @@
+diff --git a/ycmd/completers/rust/rust_completer.py b/ycmd/completers/rust/rust_completer.py
+index dc14d6ee..cf5fd77c 100644
+--- a/ycmd/completers/rust/rust_completer.py
++++ b/ycmd/completers/rust/rust_completer.py
+@@ -33,11 +33,9 @@ from ycmd.utils import LOGGER, re
+
+
+ LOGFILE_FORMAT = 'rls_'
+-RLS_BIN_DIR = os.path.abspath(
+- os.path.join( os.path.dirname( __file__ ), '..', '..', '..', 'third_party',
+- 'rls', 'bin' ) )
+-RUSTC_EXECUTABLE = utils.FindExecutable( os.path.join( RLS_BIN_DIR, 'rustc' ) )
+-RLS_EXECUTABLE = utils.FindExecutable( os.path.join( RLS_BIN_DIR, 'rls' ) )
++RLS_BIN_DIR = '/usr/bin'
++RUSTC_EXECUTABLE = os.path.join( RLS_BIN_DIR, 'rustc' )
++RLS_EXECUTABLE = os.path.join( RLS_BIN_DIR, 'rls' )
+ RLS_VERSION_REGEX = re.compile( r'^rls (?P<version>.*)$' )
+
+