- 
                Notifications
    
You must be signed in to change notification settings  - Fork 13.9k
 
          [rustdoc] Check doc(cfg()) even of private/hidden items
          #147991
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
  
    [rustdoc] Check doc(cfg()) even of private/hidden items
  
  #147991
              Conversation
      
        
              This comment was marked as outdated.
        
        
      
    
  This comment was marked as outdated.
| 
           How does this relate to your PR #147905 I just approved? It does the same thing but the tests differ.  | 
    
| 
           Do you want to add these tests to the earlier PR #147905, reapprove it and close this one?  | 
    
| 
           I was able to completely forgot I already had a PR open to fix this bug. Oh well, at least this one is more complete... Closed the other one.  | 
    
| 
           Doubly thanks! @bors r+ rollup  | 
    
| 
           It's weird that the propagate cfg doc pass emits those errors, it would make more sense to me if the check doc cfg pass were to emit those errors. We probably need to modify the code around  
  | 
    
| 
           @Urgau Yes, this is only a temporary fix. The proper fix should happen once we port over all   | 
    
Rollup of 5 pull requests Successful merges: - #145617 (docs(style): Specify the frontmatter style) - #147830 (Reword unstable fingerprints ICE to ask for reproduction) - #147988 (Remove unused field `style` from `AttributeKind::CrateName`) - #147990 (Fix invalid jump to def link generated on derive attributes) - #147991 ([rustdoc] Check `doc(cfg())` even of private/hidden items) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #147991 - GuillaumeGomez:check-doc-cfg-private-hidden, r=fmease [rustdoc] Check `doc(cfg())` even of private/hidden items Fixes regression found out by `@fmease` [here](#138907 (comment)). In short: the pass which checks the `doc(cfg())` attributes needed to be moved before the private/hidden stripping items passes.
Fixes regression found out by @fmease here.
In short: the pass which checks the
doc(cfg())attributes needed to be moved before the private/hidden stripping items passes.