1
Fork 0

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:
Mark Rousskov 2018-07-21 16:30:02 -06:00
parent 0af5a6be05
commit ad40e4517f
3 changed files with 5 additions and 7 deletions

View file

@ -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);