Provide warnings for invalid code blocks in markdown files
Previously we would only warn on Rust code but we can also do so when testing markdown (the diag::Handler is available).
This commit is contained in:
parent
0af5a6be05
commit
ad40e4517f
3 changed files with 5 additions and 7 deletions
|
@ -692,7 +692,7 @@ impl<'a, 'hir> HirCollector<'a, 'hir> {
|
|||
markdown::find_testable_code(&doc,
|
||||
self.collector,
|
||||
attrs.span.unwrap_or(DUMMY_SP),
|
||||
Some(self.sess));
|
||||
self.sess.diagnostic());
|
||||
}
|
||||
|
||||
nested(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue