allow dyn diagnostics

This commit is contained in:
Aleksey Kladov 2019-03-23 16:28:47 +03:00
parent 7e8f17188e
commit fcca35969d
6 changed files with 112 additions and 33 deletions

View file

@ -64,6 +64,12 @@ impl<N: AstNode> AstPtr<N> {
}
}
impl<N: AstNode> From<AstPtr<N>> for SyntaxNodePtr {
fn from(ptr: AstPtr<N>) -> SyntaxNodePtr {
ptr.raw
}
}
#[test]
fn test_local_syntax_ptr() {
use crate::{ast, AstNode};