File tree 1 file changed +5
-3
lines changed
compiler/rustc_resolve/src
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -339,12 +339,14 @@ pub fn inner_docs(attrs: &[ast::Attribute]) -> bool {
339
339
attrs. iter ( ) . find ( |a| a. doc_str ( ) . is_some ( ) ) . map_or ( true , |a| a. style == ast:: AttrStyle :: Inner )
340
340
}
341
341
342
- /// Has `#[doc(primitive) ]` or `#[doc(keyword)]`.
342
+ /// Has `#[rustc_doc_primitive ]` or `#[doc(keyword)]`.
343
343
pub fn has_primitive_or_keyword_docs ( attrs : & [ ast:: Attribute ] ) -> bool {
344
344
for attr in attrs {
345
- if attr. has_name ( sym:: doc) && let Some ( items) = attr. meta_item_list ( ) {
345
+ if attr. has_name ( sym:: rustc_doc_primitive) {
346
+ return true ;
347
+ } else if attr. has_name ( sym:: doc) && let Some ( items) = attr. meta_item_list ( ) {
346
348
for item in items {
347
- if item. has_name ( sym:: primitive ) || item . has_name ( sym :: keyword) {
349
+ if item. has_name ( sym:: keyword) {
348
350
return true ;
349
351
}
350
352
}
You can’t perform that action at this time.
0 commit comments