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

Rollup of 6 pull requests #90200

Closed
wants to merge 38 commits into from

Commits on Oct 7, 2021

  1. Add updated support for example-analyzer

    Move rendering of examples into
    
    Finalize design
    
    Cleanup, rename found -> scraped
    
    Softer yellow
    
    Clean up dead code
    
    Document scrape_examples
    
    More simplification and documentation
    
    Remove extra css
    
    Test
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    4b3f82a View commit details
    Browse the repository at this point in the history
  2. Fix check issue

    Clean up tidy checks
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    7831fee View commit details
    Browse the repository at this point in the history
  3. Factor scraping and rendering into separate calls to rustdoc

    Simplify toggle UI logic, add workspace root for URLs
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    2855bf0 View commit details
    Browse the repository at this point in the history
  4. Generate example source files with corresponding links

    Add display name
    
    Fix remaining merge conflicts
    
    Only embed code for items containing examples
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    b6338e7 View commit details
    Browse the repository at this point in the history
  5. Sort examples by size

    Improve styling
    
    Start to clean up code, add comments
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    eea8f0a View commit details
    Browse the repository at this point in the history
  6. Move highlighting logic from JS to Rust

    Continue migrating JS functionality
    
    Cleanup
    
    Fix compile error
    
    Clean up the diff
    
    Set toggle font to sans-serif
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    55bb517 View commit details
    Browse the repository at this point in the history
  7. Reduce blur size, fix example width bug, add better error handling fo…

    …r I/O issues
    
    Remove repository url
    
    Fix formatting
    
    Fix file_span in print_src
    
    Formatting
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    18edcf8 View commit details
    Browse the repository at this point in the history
  8. Add styles for non-white themes

    Tweak colors
    
    Tabs
    
    New link heading style
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    a1cb194 View commit details
    Browse the repository at this point in the history
  9. Incorporate jyn's feedback

    * Move call location logic from function constructor to rendering
    * Fix issue with macro spans in scraping examples
    * Clean up example loading logic
    
    Documentation / newtype for DecorationInfo
    
    Fix line number display
    
    Serialize edition of call site, other small cleanup
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    829b1a9 View commit details
    Browse the repository at this point in the history
  10. Add target crates as inputs to reduce size of intermediates

    Add tests for module-path remapping and scrape example options
    
    Find all crates with a given name
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    5c05b3c View commit details
    Browse the repository at this point in the history
  11. Change serialized format to use DefPathHash instead of custom String

    Move test to rustdoc-ui
    
    Fix test writing to wrong directory
    
    Formatting
    
    Fix test
    
    Add FIXME
    
    Remove raw multiline strings
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    df5e3a6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    25323ec View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    55731bb View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    ed8e12f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5584c79 View commit details
    Browse the repository at this point in the history
  16. Move some expansion logic into generation-time, fix section header li…

    …nks, remove ID from line numbers, fix horizontal scrolling on non-expanded elements
    willcrichton committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    bb383ed View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    8b141a2 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2021

  1. Move more scrape-examples logic from JS to rust

    Fix failing test
    
    Add missing backslash
    
    Fix padding issue with horizontal scrollbar
    willcrichton committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    e22e858 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f10dcee View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2021

  1. Configuration menu
    Copy the full SHA
    9e4958a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1616f3 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2021

  1. Configuration menu
    Copy the full SHA
    59b36bc View commit details
    Browse the repository at this point in the history
  2. Bless tests

    voidc committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    a400f10 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

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

Commits on Oct 18, 2021

  1. Make all proc-macro back-compat lints deny-by-default

    The affected crates have had plenty of time to update.
    By keeping these as lints rather than making them hard errors,
    we ensure that downstream crates will still be able to compile,
    even if they transitive depend on broken versions of the affected
    crates.
    
    This should hopefully discourage anyone from writing any
    new code which relies on the backwards-compatibility behavior.
    Aaron1011 committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    02e4d0b View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. Configuration menu
    Copy the full SHA
    a836676 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a87d1a View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

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

Commits on Oct 22, 2021

  1. Revert def_id addition from clean::Function, add test for

    scrape-examples options
    willcrichton committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    d1c29c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fd5d614 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2021

  1. Reset qualifs when a storage of a local ends

    to ensure that the local qualifs are affected by the state from previous
    loop iterations only if the local is kept alive.
    
    The change should be forward compatible with a stricter handling of
    indirect assignments, since storage dead invalidates all existing
    pointers to the local.
    tmiasko committed Oct 23, 2021
    Configuration menu
    Copy the full SHA
    e4aeeca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fd25491 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#85833 - willcrichton:example-analyzer, r=jy…

    …n514
    
    Scrape code examples from examples/ directory for Rustdoc
    
    Adds support for the functionality described in rust-lang/rfcs#3123
    
    Matching changes to Cargo are here: rust-lang/cargo#9525
    
    Live demo here: https://willcrichton.net/example-analyzer/warp/trait.Filter.html#method.and
    matthiaskrgr authored Oct 23, 2021
    Configuration menu
    Copy the full SHA
    a7f2bc1 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#88041 - Aaron1011:deny-proc-macro-hack, r=w…

    …esleywiser
    
    Make all proc-macro back-compat lints deny-by-default
    
    The affected crates have had plenty of time to update.
    By keeping these as lints rather than making them hard errors,
    we ensure that downstream crates will still be able to compile,
    even if they transitive depend on broken versions of the affected
    crates.
    
    This should hopefully discourage anyone from writing any
    new code which relies on the backwards-compatibility behavior.
    matthiaskrgr authored Oct 23, 2021
    Configuration menu
    Copy the full SHA
    0c85cd4 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#89829 - voidc:assoc-const-variance, r=lcnr

    Consider types appearing in const expressions to be invariant
    
    This is an approach to fix rust-lang#80977.
    Currently, a type parameter which is only used in a constant expression is considered bivariant and will trigger error E0392 *"parameter T is never used"*.
    Here is a short example:
    
    ```rust
    pub trait Foo {
        const N: usize;
    }
    
    struct Bar<T: Foo>([u8; T::N])
    where [(); T::N]:;
    ```
    ([playgound](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2015&gist=b51a272853f75925e72efc1597478aa5))
    
    While it is possible to silence this error by adding a `PhantomData<T>` field, I think the better solution would be to make `T` invariant.
    This would be analogous to the invariance constraints added for associated types.
    However, I'm quite new to the compiler and unsure whether this is the right approach.
    
    r? `@varkor` (since you authored rust-lang#60058)
    matthiaskrgr authored Oct 23, 2021
    Configuration menu
    Copy the full SHA
    809e5c8 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#90062 - cuviper:min-llvm-11, r=nikic

    Update the minimum external LLVM to 11
    
    With this change, we'll have stable support for LLVM 11..=13.
    For reference, the previous increase to LLVM 10 was rust-lang#83387.
    
    r? `@nagisa` `@nikic`
    matthiaskrgr authored Oct 23, 2021
    Configuration menu
    Copy the full SHA
    684402e View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#90168 - tmiasko:const-qualif-storage, r=mat…

    …thewjasper
    
    Reset qualifs when a storage of a local ends
    
    Reset qualifs when a storage of a local ends to ensure that the local qualifs
    are affected by the state from previous loop iterations only if the local is
    kept alive.
    
    The change should be forward compatible with a stricter handling of indirect
    assignments, since storage dead invalidates all existing pointers to the local.
    matthiaskrgr authored Oct 23, 2021
    Configuration menu
    Copy the full SHA
    6584391 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#90198 - the8472:available-parallelism-runti…

    …me, r=joshtriplett
    
    Add caveat about changing parallelism and function call overhead
    
    As discussed in rust-lang#89670 (comment)
    
    r? `@joshtriplett`
    matthiaskrgr authored Oct 23, 2021
    Configuration menu
    Copy the full SHA
    f99f296 View commit details
    Browse the repository at this point in the history