diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-01 08:17:16 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-01 08:17:16 +0100 |
commit | 98ae447fa7112bef8c525f86652d6484646251f1 (patch) | |
tree | b070bc86e7ccd6b12a8b1d80732020cee7035057 /crates/ra_ide/src/completion | |
parent | 5749c42b71a2485148c374a15f087f0922c138e6 (diff) | |
parent | 5953cbd7aefa90da67829fe8e92d066b460ee447 (diff) |
Merge #5153
5153: Make SemanticsScope non-generic r=matklad a=lnicola
This slightly reduces the build times:
![image](https://user-images.githubusercontent.com/308347/86210975-3a809480-bb7e-11ea-8975-788457f6b353.png)
(compare to https://github.com/rust-analyzer/rust-analyzer/issues/1987#issuecomment-652202248)
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'crates/ra_ide/src/completion')
-rw-r--r-- | crates/ra_ide/src/completion/completion_context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/completion/completion_context.rs b/crates/ra_ide/src/completion/completion_context.rs index 560fb19e6..ef22ea54d 100644 --- a/crates/ra_ide/src/completion/completion_context.rs +++ b/crates/ra_ide/src/completion/completion_context.rs | |||
@@ -213,7 +213,7 @@ impl<'a> CompletionContext<'a> { | |||
213 | } | 213 | } |
214 | } | 214 | } |
215 | 215 | ||
216 | pub(crate) fn scope(&self) -> SemanticsScope<'_, RootDatabase> { | 216 | pub(crate) fn scope(&self) -> SemanticsScope<'_> { |
217 | self.sema.scope_at_offset(&self.token.parent(), self.offset) | 217 | self.sema.scope_at_offset(&self.token.parent(), self.offset) |
218 | } | 218 | } |
219 | 219 | ||