diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-06-05 21:16:19 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-06-05 21:18:20 -0400 |
| commit | b8ebf4431e48abe6f1844b80416c11f7b0ccab0c (patch) | |
| tree | 2122bb059bf1014275cb0173604b961670084eb7 /compiler/rustc_passes/src | |
| parent | 34b9932f5c0f519d6b9b9f95f21723142c5dc877 (diff) | |
| download | rust-b8ebf4431e48abe6f1844b80416c11f7b0ccab0c.tar.gz rust-b8ebf4431e48abe6f1844b80416c11f7b0ccab0c.zip | |
Don't fire `invalid_doc_attributes` on `extern crate` items
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index 91b64611511..b18ef302962 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -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 { |
