1
Fork 0

Create rustdoc_internals feature gate

This commit is contained in:
Guillaume Gomez 2021-10-30 17:44:50 +02:00
parent e8423e6c44
commit 1e6ced3532
17 changed files with 30 additions and 36 deletions

View file

@ -963,7 +963,7 @@ impl CheckAttrVisitor<'tcx> {
}
sym::primitive => {
if !self.tcx.features().doc_primitive {
if !self.tcx.features().rustdoc_internals {
self.tcx.struct_span_lint_hir(
INVALID_DOC_ATTRIBUTES,
hir_id,