1
Fork 0

Avoid ICE on #![doc(test(...)] with literal parameter

This commit is contained in:
Obei Sideg 2023-05-29 22:29:50 +03:00
parent 39c03fb652
commit 33eef8221d
3 changed files with 19 additions and 6 deletions

View file

@ -281,6 +281,10 @@ pub struct DocTestUnknown {
pub path: String,
}
#[derive(LintDiagnostic)]
#[diag(passes_doc_test_literal)]
pub struct DocTestLiteral;
#[derive(LintDiagnostic)]
#[diag(passes_doc_test_takes_list)]
pub struct DocTestTakesList;