aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-18 16:13:57 +0100
committerbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-18 16:13:57 +0100
commita15a278308047b160e5805dbb554a1949fcb0228 (patch)
treee92b92abe2b38988c2ae4d185d987205a6f34384 /crates/ra_hir
parent517692de437a250d3a8758594cae69f4fe4216a9 (diff)
parent0fb4b896e2b4a1da3069e30b4d4fba0821dc1e13 (diff)
Merge #1543
1543: use more correct phantom types for ptrs r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/source_id.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/source_id.rs b/crates/ra_hir/src/source_id.rs
index 324b79824..6cdb90141 100644
--- a/crates/ra_hir/src/source_id.rs
+++ b/crates/ra_hir/src/source_id.rs
@@ -52,7 +52,7 @@ impl<N: AstNode> AstId<N> {
52#[derive(Debug)] 52#[derive(Debug)]
53pub(crate) struct FileAstId<N: AstNode> { 53pub(crate) struct FileAstId<N: AstNode> {
54 raw: ErasedFileAstId, 54 raw: ErasedFileAstId,
55 _ty: PhantomData<N>, 55 _ty: PhantomData<fn() -> N>,
56} 56}
57 57
58impl<N: AstNode> Clone for FileAstId<N> { 58impl<N: AstNode> Clone for FileAstId<N> {