move tests

This commit is contained in:
Aleksey Kladov 2021-10-10 11:39:08 +03:00
parent 7e53a3ce23
commit a3470a8114
4 changed files with 89 additions and 84 deletions

View file

@ -307,6 +307,7 @@ fn doc_comment_text(comment: &ast::Comment) -> SmolStr {
}
fn convert_doc_comment(token: &syntax::SyntaxToken) -> Option<Vec<tt::TokenTree>> {
cov_mark::hit!(test_meta_doc_comments);
let comment = ast::Comment::cast(token.clone())?;
let doc = comment.kind().doc?;