File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
compiler/rustc_resolve/src Expand file tree Collapse file tree 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 {
339339 attrs. iter ( ) . find ( |a| a. doc_str ( ) . is_some ( ) ) . map_or ( true , |a| a. style == ast:: AttrStyle :: Inner )
340340}
341341
342- /// Has `#[doc(primitive) ]` or `#[doc(keyword)]`.
342+ /// Has `#[rustc_doc_primitive ]` or `#[doc(keyword)]`.
343343pub fn has_primitive_or_keyword_docs ( attrs : & [ ast:: Attribute ] ) -> bool {
344344 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 ( ) {
346348 for item in items {
347- if item. has_name ( sym:: primitive ) || item . has_name ( sym :: keyword) {
349+ if item. has_name ( sym:: keyword) {
348350 return true ;
349351 }
350352 }
You can’t perform that action at this time.
0 commit comments