diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-27 07:42:04 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-27 07:42:04 +0100 |
commit | 64a1c77ab279a2baddab25ae86698ece2bc146da (patch) | |
tree | f2831210d926dfdff58cd3d2676cf894eb565bfe /crates/ra_hir_def | |
parent | 7ddc3b468acc82192a665cdaa5b237167524f834 (diff) | |
parent | bee4f8f9fee56bb00b462cdf4ad3ed317fed682f (diff) |
Merge #4622
4622: Pass trivially copy types as copy r=matklad a=kjeremy
Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/nameres/raw.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres/raw.rs b/crates/ra_hir_def/src/nameres/raw.rs index 4e628b14d..f44baa579 100644 --- a/crates/ra_hir_def/src/nameres/raw.rs +++ b/crates/ra_hir_def/src/nameres/raw.rs | |||
@@ -175,7 +175,7 @@ pub(super) enum DefKind { | |||
175 | } | 175 | } |
176 | 176 | ||
177 | impl DefKind { | 177 | impl DefKind { |
178 | pub fn ast_id(&self) -> FileAstId<ast::ModuleItem> { | 178 | pub fn ast_id(self) -> FileAstId<ast::ModuleItem> { |
179 | match self { | 179 | match self { |
180 | DefKind::Function(it) => it.upcast(), | 180 | DefKind::Function(it) => it.upcast(), |
181 | DefKind::Struct(it, _) => it.upcast(), | 181 | DefKind::Struct(it, _) => it.upcast(), |