We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05b4fc6 + 31eec5e commit afd64efCopy full SHA for afd64ef
crates/ra_syntax/src/ast.rs
@@ -30,7 +30,7 @@ pub use self::{
30
/// conversion itself has zero runtime cost: ast and syntax nodes have exactly
31
/// the same representation: a pointer to the tree root and a pointer to the
32
/// node itself.
33
-pub trait AstNode {
+pub trait AstNode: std::fmt::Display {
34
fn can_cast(kind: SyntaxKind) -> bool
35
where
36
Self: Sized;
0 commit comments