Merge #1403
1403: Add alloc -> core dependency r=matklad a=flodiebold Also a small fix for the ra-emacs-lsp company fix. Co-authored-by: Florian Diebold <florian.diebold@freiheit.com> Co-authored-by: Florian Diebold <flodiebold@gmail.com>
This commit is contained in:
commit
9dbf985df5
@ -70,6 +70,11 @@ impl Sysroot {
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(alloc) = sysroot.by_name("alloc") {
|
||||
if let Some(core) = sysroot.by_name("core") {
|
||||
sysroot.crates[alloc].deps.push(core);
|
||||
}
|
||||
}
|
||||
Ok(sysroot)
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@
|
||||
|
||||
(with-eval-after-load 'company-lsp
|
||||
;; company-lsp provides a snippet handler for rust by default that adds () after function calls, which RA does better
|
||||
(setq company-lsp--snippet-functions (assq-delete-all "rust" company-lsp--snippet-functions)))
|
||||
(setq company-lsp--snippet-functions (cl-delete "rust" company-lsp--snippet-functions :key #'car :test #'equal)))
|
||||
|
||||
;; join lines
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user