Rollup merge of #86047 - jyn514:doc-attrs, r=petrochenkov
Don't fire `invalid_doc_attributes` on `extern crate` items Fixes https://github.com/rust-lang/rust/issues/86046.
This commit is contained in:
commit
19433c44bd
3 changed files with 23 additions and 1 deletions
|
@ -577,7 +577,7 @@ impl CheckAttrVisitor<'tcx> {
|
|||
target: Target,
|
||||
specified_inline: &mut Option<(bool, Span)>,
|
||||
) -> bool {
|
||||
if target == Target::Use {
|
||||
if target == Target::Use || target == Target::ExternCrate {
|
||||
let do_inline = meta.name_or_empty() == sym::inline;
|
||||
if let Some((prev_inline, prev_span)) = *specified_inline {
|
||||
if do_inline != prev_inline {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue