Don't generate docs for top-level expects

This commit is contained in:
Richard Feldman 2022-07-08 20:14:16 -04:00
parent 55931bca9e
commit d56a1edd91
No known key found for this signature in database
GPG Key ID: 7E4127D1E4241798

View File

@ -200,7 +200,10 @@ fn generate_entry_docs<'a>(
ValueDef::Body(_, _) => (),
ValueDef::Expect(c) => todo!("documentation for tests {:?}", c),
ValueDef::Expect(_) => {
// Don't generate docs for `expect`s
()
}
},
Ok(type_index) => match &defs.type_defs[type_index.index()] {
TypeDef::Alias {