Don't emit an error if the custom_code_classes_in_docs
feature is disabled when its syntax is used.
This commit is contained in:
parent
cdd182cbb2
commit
e1294b26af
9 changed files with 144 additions and 32 deletions
|
@ -20,7 +20,9 @@ pub(crate) fn visit_item(cx: &DocContext<'_>, item: &clean::Item) {
|
|||
if let Some(dox) = &item.opt_doc_value() {
|
||||
let sp = item.attr_span(cx.tcx);
|
||||
let extra = crate::html::markdown::ExtraInfo::new(cx.tcx, item.item_id.expect_def_id(), sp);
|
||||
for code_block in markdown::rust_code_blocks(dox, &extra) {
|
||||
for code_block in
|
||||
markdown::rust_code_blocks(dox, &extra, cx.tcx.features().custom_code_classes_in_docs)
|
||||
{
|
||||
check_rust_syntax(cx, item, dox, code_block);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue