Avoid ICE on #![doc(test(...)]
with literal parameter
This commit is contained in:
parent
39c03fb652
commit
33eef8221d
3 changed files with 19 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue