pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/rust-analyzer



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Mar 15 05:59:41 UTC 2022

Modified Files:
        pkgsrc/lang/rust-analyzer: distinfo
Added Files:
        pkgsrc/lang/rust-analyzer/patches:
            patch-crates_ide_completion_src_context.rs

Log Message:
rust-analyzer: fix building for pre-1.59.0


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/lang/rust-analyzer/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/rust-analyzer/patches/patch-crates_ide_completion_src_context.rs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/rust-analyzer/distinfo
diff -u pkgsrc/lang/rust-analyzer/distinfo:1.13 pkgsrc/lang/rust-analyzer/distinfo:1.14
--- pkgsrc/lang/rust-analyzer/distinfo:1.13     Mon Mar 14 11:11:27 2022
+++ pkgsrc/lang/rust-analyzer/distinfo  Tue Mar 15 05:59:40 2022
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2022/03/14 11:11:27 adam Exp $
+$NetBSD: distinfo,v 1.14 2022/03/15 05:59:40 adam Exp $
 
 BLAKE2s (addr2line-0.17.0.crate) = f7fa3b016f0e80c4ea9967f8947de15edc9fa39d0c0cdea692dccd0c41c28039
 SHA512 (addr2line-0.17.0.crate) = ef3bbd7c6d1dfdd0b47e3be1fb4c8b15ed61a769bed7e80dce80461a1ee13ef21c75e62e9a66328504f862341f1e808abec5790ac79784e18655afcc16206b95
@@ -519,3 +519,4 @@ Size (xshell-0.1.17.crate) = 21019 bytes
 BLAKE2s (xshell-macros-0.1.17.crate) = 98fe6d6cfdf1931df28789287100a183c72f2b65daf1d9e4e8b98d9cddcbb695
 SHA512 (xshell-macros-0.1.17.crate) = 838f8bfc530051d8fe6c1b2a3c8e2fe7c6946705d6e6a084807b35817d5d6bae6f2941cb97a47fdf5c970aa3f4baef222aac938039bb520aadbb3fd7fd1a7bf7
 Size (xshell-macros-0.1.17.crate) = 2682 bytes
+SHA1 (patch-crates_ide_completion_src_context.rs) = 5a5a0f25350ca909a4d7c73e29a2738db9d92c99

Added files:

Index: pkgsrc/lang/rust-analyzer/patches/patch-crates_ide_completion_src_context.rs
diff -u /dev/null pkgsrc/lang/rust-analyzer/patches/patch-crates_ide_completion_src_context.rs:1.1
--- /dev/null   Tue Mar 15 05:59:41 2022
+++ pkgsrc/lang/rust-analyzer/patches/patch-crates_ide_completion_src_context.rs        Tue Mar 15 05:59:41 2022
@@ -0,0 +1,17 @@
+$NetBSD: patch-crates_ide_completion_src_context.rs,v 1.1 2022/03/15 05:59:41 adam Exp $
+
+For for pre-1.59.0.
+
+--- crates/ide_completion/src/context.rs.orig  2022-03-15 05:54:01.000000000 +0000
++++ crates/ide_completion/src/context.rs
+@@ -747,7 +747,9 @@ impl<'a> CompletionContext<'a> {
+                 it.syntax().text_range().end() == syntax_element.text_range().end()
+             });
+ 
+-        (self.expected_type, self.expected_name) = self.expected_type_and_name();
++        let (expected_type, expected_name) = self.expected_type_and_name();
++        self.expected_type = expected_type;
++        self.expected_name = expected_name;
+ 
+         // Overwrite the path kind for derives
+         if let Some((original_file, file_with_fake_ident, offset)) = derive_ctx {



Home | Main Index | Thread Index | Old Index