diff options
-rw-r--r-- | crates/ra_project_model/src/sysroot.rs | 5 | ||||
-rw-r--r-- | editors/emacs/ra-emacs-lsp.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/crates/ra_project_model/src/sysroot.rs b/crates/ra_project_model/src/sysroot.rs index 8b87aa7bd..72ccb61a7 100644 --- a/crates/ra_project_model/src/sysroot.rs +++ b/crates/ra_project_model/src/sysroot.rs | |||
@@ -70,6 +70,11 @@ impl Sysroot { | |||
70 | } | 70 | } |
71 | } | 71 | } |
72 | } | 72 | } |
73 | if let Some(alloc) = sysroot.by_name("alloc") { | ||
74 | if let Some(core) = sysroot.by_name("core") { | ||
75 | sysroot.crates[alloc].deps.push(core); | ||
76 | } | ||
77 | } | ||
73 | Ok(sysroot) | 78 | Ok(sysroot) |
74 | } | 79 | } |
75 | 80 | ||
diff --git a/editors/emacs/ra-emacs-lsp.el b/editors/emacs/ra-emacs-lsp.el index 71bc20f17..2ea106533 100644 --- a/editors/emacs/ra-emacs-lsp.el +++ b/editors/emacs/ra-emacs-lsp.el | |||
@@ -81,7 +81,7 @@ | |||
81 | 81 | ||
82 | (with-eval-after-load 'company-lsp | 82 | (with-eval-after-load 'company-lsp |
83 | ;; company-lsp provides a snippet handler for rust by default that adds () after function calls, which RA does better | 83 | ;; company-lsp provides a snippet handler for rust by default that adds () after function calls, which RA does better |
84 | (setq company-lsp--snippet-functions (assq-delete-all "rust" company-lsp--snippet-functions))) | 84 | (setq company-lsp--snippet-functions (cl-delete "rust" company-lsp--snippet-functions :key #'car :test #'equal))) |
85 | 85 | ||
86 | ;; join lines | 86 | ;; join lines |
87 | 87 | ||