Rename StructDef -> Struct
This commit is contained in:
@@ -825,7 +825,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_token_tree_multi_char_punct() {
|
||||
let source_file = ast::SourceFile::parse("struct Foo { a: x::Y }").ok().unwrap();
|
||||
let struct_def = source_file.syntax().descendants().find_map(ast::StructDef::cast).unwrap();
|
||||
let struct_def = source_file.syntax().descendants().find_map(ast::Struct::cast).unwrap();
|
||||
let tt = ast_to_token_tree(&struct_def).unwrap().0;
|
||||
token_tree_to_syntax_node(&tt, FragmentKind::Item).unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user