From 787043496aaa05be31162a8cdd0686a13da646cc Mon Sep 17 00:00:00 2001 From: Fireassember Date: Fri, 6 Mar 2020 19:29:30 +0200 Subject: added fmt::Display as a supertrait for AstNode and changed generation. --- crates/ra_syntax/src/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs index 4a70c712f..26fafb469 100644 --- a/crates/ra_syntax/src/ast.rs +++ b/crates/ra_syntax/src/ast.rs @@ -30,7 +30,7 @@ pub use self::{ /// conversion itself has zero runtime cost: ast and syntax nodes have exactly /// the same representation: a pointer to the tree root and a pointer to the /// node itself. -pub trait AstNode { +pub trait AstNode: std::fmt::Display { fn can_cast(kind: SyntaxKind) -> bool where Self: Sized; -- cgit v1.2.3