Skip to content
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: JSON backend experimental impl, with new tests. #79539

Merged
merged 5 commits into from
Dec 3, 2020

Commits on Dec 1, 2020

  1. Add json backend

    Respond to comments and start adding tests
    
    Fix re-exports and extern-crate
    
    Add expected output tests
    
    Add restricted paths
    
    Format
    
    Fix: associated methods missing in output
    
    Ignore stripped items
    
    Mark stripped items
    
    removing them creates dangling references
    
    Fix tests and update conversions
    
    Don't panic if JSON backend fails to create a file
    
    Fix attribute error in JSON testsuite
    
    Move rustdoc-json to rustdoc/
    
    This way it doesn't have to build rustc twice. Eventually it should
    probably get its own suite, like rustdoc-js, but that can be fixed in a
    follow-up.
    
    Small cleanups
    
    Don't prettify json before printing
    
    This fully halves the size of the emitted JSON.
    
    Add comments
    
    [BREAKING CHANGE] rename version -> crate_version
    
    [BREAKING CHANGE] rename source -> span
    
    Use exhaustive matches
    
    Don't qualify imports for DefId
    
    Rename clean::{ItemEnum -> ItemKind}, clean::Item::{inner -> kind}
    
    Fix Visibility conversion
    
    clean::Visability was changed here:
    https://github.com/rust-lang/rust/pull/77820/files#diff-df9f90aae0b7769e1eb6ea6f1d73c1c3f649e1ac48a20e169662a8930eb427beL1467-R1509
    
    More churn catchup
    
    Format
    P1n3appl3 authored and aDotInTheVoid committed Dec 1, 2020
    Configuration menu
    Copy the full SHA
    66884e3 View commit details
    Browse the repository at this point in the history
  2. Add tests for rustdoc json

    Move rustdoc/rustdoc-json to rustdoc-json
    
    Scaffold rustdoc-json test mode
    
    Implement run_rustdoc_json_test
    
    Fix up python
    
    Make tidy happy
    aDotInTheVoid committed Dec 1, 2020
    Configuration menu
    Copy the full SHA
    1098cce View commit details
    Browse the repository at this point in the history
  3. Address review comments.

    Go back to CRATE_DEF_INDEX
    
    Minor niceness improvements
    
    Don't output hidden items
    
    Remove striped items from fields
    
    Add $TEST_BASE_DIR
    
    Small catch
    aDotInTheVoid committed Dec 1, 2020
    Configuration menu
    Copy the full SHA
    40b5470 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6018200 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2020

  1. Configuration menu
    Copy the full SHA
    d619271 View commit details
    Browse the repository at this point in the history