1
Fork 0

Rollup merge of #109443 - GuillaumeGomez:doc-primitive-hard-error, r=notriddle

Move `doc(primitive)` future incompat warning to `invalid_doc_attributes`

Fixes #88070.

It's been a while since this was turned into a "future incompatible lint" so I think we can now turn it into a hard error without problem.

r? `@jyn514`
This commit is contained in:
Guillaume Gomez 2023-03-31 22:32:49 +02:00 committed by GitHub
commit 6c93c63771
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 217 additions and 165 deletions

View file

@ -1109,17 +1109,6 @@ impl CheckAttrVisitor<'_> {
}
}
sym::primitive => {
if !self.tcx.features().rustdoc_internals {
self.tcx.emit_spanned_lint(
INVALID_DOC_ATTRIBUTES,
hir_id,
i_meta.span,
errors::DocPrimitive,
);
}
}
_ => {
let path = rustc_ast_pretty::pprust::path_to_string(&i_meta.path);
if i_meta.has_name(sym::spotlight) {

View file

@ -288,10 +288,6 @@ pub struct DocTestTakesList;
#[diag(passes_doc_cfg_hide_takes_list)]
pub struct DocCfgHideTakesList;
#[derive(LintDiagnostic)]
#[diag(passes_doc_primitive)]
pub struct DocPrimitive;
#[derive(LintDiagnostic)]
#[diag(passes_doc_test_unknown_any)]
pub struct DocTestUnknownAny {