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 14 pull requests #74195

Merged
merged 42 commits into from
Jul 10, 2020
Merged

Rollup of 14 pull requests #74195

merged 42 commits into from
Jul 10, 2020

Commits on Jun 12, 2020

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

Commits on Jul 5, 2020

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

Commits on Jul 6, 2020

  1. Use relative path for local links to primitives in libcore

    Else, links to `char::foo` would point into `/path/to/src/libcore/std/primitive.char.html#method.foo`.
    
    Split out from rust-lang#73804.
    sethp committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    81fbfc4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ee3a0f8 View commit details
    Browse the repository at this point in the history
  3. Hide &mut self methods from Deref in sidebar

    If there are no `DerefMut` impl for the type.
    nbdd0121 committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    e0b69f2 View commit details
    Browse the repository at this point in the history
  4. Add test for issue 74083

    nbdd0121 committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    368aa6f View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2020

  1. Two new rustdoc tests for intra links

    They both produce less-than-desirable output (links going to docs.rust-lang.org), but I haven't figured out yet how to assert about them properly.
    sethp committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    33a5d00 View commit details
    Browse the repository at this point in the history
  2. build extern docs as well

    sethp committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    165aecb View commit details
    Browse the repository at this point in the history
  3. Assert current behavior for links

    For the two of these tests that have a local `char` to link to, this behavior isn't what's expected, but is what's happening presently.
    sethp committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    865b930 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f258d98 View commit details
    Browse the repository at this point in the history
  5. Revert "Add guard to check for local core crate"

    This reverts commit ee3a0f8.
    sethp committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    8d267db View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dd07774 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2020

  1. Liballoc use vec instead of vector

    Keep congruency with other parts, full word vector is rarely used.
    pickfire authored Jul 8, 2020
    Configuration menu
    Copy the full SHA
    7bc85e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0965443 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9366458 View commit details
    Browse the repository at this point in the history
  4. Avoid "blacklist"

    Other terms are more inclusive and precise.
    
    Clippy still has a lint named "blacklisted-name", but renaming it would
    be a breaking change, so is left for future work.
    
    The target configuration option "abi-blacklist" has been depreciated and
    renamed to "unsupported-abis". The old name continues to work.
    tamird committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    1e567c1 View commit details
    Browse the repository at this point in the history
  5. Avoid running test on Windows platforms

    There don't seem to be any other compiletests that are 1) building a standalone "no_core" create and then 2) trying to link against it. There seems to be a platform-specific limitation in doing so:
    
    ```
    2020-07-08T16:07:42.9419409Z   = note:    Creating library D:\a\rust\rust\build\i686-pc-windows-msvc\test\rustdoc\intra-link-prim-methods-external-core\auxiliary\my_core.dll.lib and object D:\a\rust\rust\build\i686-pc-windows-msvc\test\rustdoc\intra-link-prim-methods-external-core\auxiliary\my_core.dll.exp
    2020-07-08T16:07:42.9419810Z           LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
    2020-07-08T16:07:42.9420032Z           D:\a\rust\rust\build\i686-pc-windows-msvc\test\rustdoc\intra-link-prim-methods-external-core\auxiliary\my_core.dll : fatal error LNK1120: 1 unresolved externals
    ```
    
    Possibly this could be resolved by adding a `__DllMainCRTStartup` or `__DllMainCRTStartup@12` symbol in an architecture- and platform-specific way.
    sethp committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    56b6b44 View commit details
    Browse the repository at this point in the history
  6. Update cargo

    ehuss committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    ca22091 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2020

  1. Eliminate confusing "globals" terminology.

    There are some structures that are called "globals", but are they global
    to a compilation session, and not truly global. I have always found this
    highly confusing, so this commit renames them as "session globals" and
    adds a comment explaining things.
    
    Also, the commit fixes an unnecessary nesting of `set()` calls
    `src/librustc_errors/json/tests.rs`
    nnethercote committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    81c5bb6 View commit details
    Browse the repository at this point in the history
  2. update miri

    RalfJung committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    35fae73 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    09f51d4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    271e2a9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    08d3a74 View commit details
    Browse the repository at this point in the history
  6. Reduce indentation

    estebank committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    fc6ee8f View commit details
    Browse the repository at this point in the history
  7. Tweak :: -> : typo heuristic and reduce verbosity

    Do not trigger on correct type ascription expressions with trailing
    operators and _do_ trigger on likely path typos where a turbofish is
    used.
    
    On likely path typos, remove note explaining type ascription.
    estebank committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    e771a4f View commit details
    Browse the repository at this point in the history
  8. Move to unstable section

    Manishearth committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    36a229b View commit details
    Browse the repository at this point in the history
  9. Add test

    Manishearth committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    fe351e9 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#73292 - poliorcetics:fix-link-in-partialeq,…

    … r=Dylan-DPC
    
    Fixing broken link for the Eq trait
    
    Fixes rust-lang#73233.
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    5fc46fa View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#73791 - Manishearth:parens-intra-doc, r=Gui…

    …llaumeGomez,jyn514
    
    Allow for parentheses after macro intra-doc-links
    
    None
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    d163524 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#74070 - eddyb:forall-tcx-providers, r=nikom…

    …atsakis
    
     Use for<'tcx> fn pointers in Providers, instead of having Providers<'tcx>.
    
    In order to work around normalization-under-HRTB (for `provide!` in `rustc_metadata`), we ended up with this:
    ```rust
    struct Providers<'tcx> {
        type_of: fn(TyCtxt<'tcx>, DefId) -> Ty<'tcx>,
        // ...
    }
    ```
    But what I initially wanted to do, IIRC, was this:
    ```rust
    struct Providers {
        type_of: for<'tcx> fn(TyCtxt<'tcx>, DefId) -> Ty<'tcx>,
        // ...
    }
    ```
    
    This PR moves to the latter, for the simple reason that only the latter allows keeping a `Providers` value, or a subset of its `fn` pointer fields, around in a `static` or `thread_local!`, which can be really useful for custom drivers that override queries.
    (@jyn514 and I came across a concrete usecase of that in `rustdoc`)
    
    The `provide!` macro in `rustc_metadata` is fixed by making the query key/value types available as type aliases under `ty::query::query_{keys,values}`, not just associated types (this is the first commit).
    
    r? @nikomatsakis
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    65ac394 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#74077 - sethp:docs/fix-intra-doc-primitive-…

    …link, r=jyn514
    
    Use relative path for local links to primitives
    
    Else, links to `char::foo` would point into `/path/to/src/libcore/std/primitive.char.html#method.foo`.
    
    Split out from rust-lang#73804.
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    07301e3 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#74079 - nnethercote:session-globals, r=niko…

    …matsakis
    
    Eliminate confusing "globals" terminology.
    
    There are some structures that are called "globals", but are they global
    to a compilation session, and not truly global. I have always found this
    highly confusing, so this commit renames them as "session globals" and
    adds a comment explaining things.
    
    Also, the commit fixes an unnecessary nesting of `set()` calls
    `src/librustc_errors/json/tests.rs`
    
    r? @Aaron1011
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    89c9e97 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#74107 - nbdd0121:rustdoc, r=GuillaumeGomez

    Hide `&mut self` methods from Deref in sidebar if there are no `DerefMut` impl for the type.
    
    This partially addresses rust-lang#74083.
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    38541b7 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#74136 - JohnTitor:index-page-link, r=Guilla…

    …umeGomez
    
    Fix broken link in rustdocdoc
    
    The previous link redirects to https://www.rust-lang.org/learn.
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    640569c View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#74137 - ehuss:update-cargo, r=ehuss

    Update cargo
    
    6 commits in fede83ccf973457de319ba6fa0e36ead454d2e20..4f74d9b2a771c58b7ef4906b2668afd075bc8081
    2020-07-02 21:51:34 +0000 to 2020-07-08 17:13:00 +0000
    - Disable long_file_names test if not supported on Windows. (rust-lang/cargo#8469)
    - Add support for deserializing enums in config files (rust-lang/cargo#8454)
    - Write GNU tar files, supporting long names. (rust-lang/cargo#8453)
    - Don't overwrite existing `rustdoc` args with --document-private-items (rust-lang/cargo#8449)
    - Add some help about rustup's +toolchain syntax. (rust-lang/cargo#8455)
    - Update metadata man page. (rust-lang/cargo#8451)
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    178cdc5 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#74142 - pickfire:patch-1, r=dtolnay

    Liballoc use vec instead of vector
    
    Keep congruency with other parts, full word vector is rarely used.
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    887f9e7 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#74143 - pickfire:patch-2, r=jonas-schievink

    Try remove unneeded ToString import in liballoc slice
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    2d432ae View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#74146 - RalfJung:miri, r=RalfJung

    update miri
    
    Fixes rust-lang#74132
    Cc @rust-lang/miri r? @ghost
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    089a6e1 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#74150 - tamird:blocklist, r=nikomatsakis

    Avoid "blacklist"
    
    Other terms are more inclusive and precise.
    
    Clippy still has a lint named "blacklisted-name", but renaming it would
    be a breaking change, so is left for future work.
    
    The target configuration option "abi-blacklist" has been depreciated and
    renamed to "unsupported-abis". The old name continues to work.
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    d4d1111 View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#74184 - Manishearth:doc-intra-doc, r=Guilla…

    …umeGomez
    
    Add docs for intra-doc-links
    
    Fixes rust-lang#66000
    
    Hmm, for some reason my push closed the previous PR
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    31d53de View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#74188 - estebank:tweak-ascription-typo-heur…

    …istic, r=petrochenkov
    
    Tweak `::` -> `:` typo heuristic and reduce verbosity
    
    Do not trigger on correct type ascription expressions with trailing
    operators and _do_ trigger on likely path typos where a turbofish is
    used.
    
    On likely path typos, remove note explaining type ascription.
    
    Clean up indentation.
    
    r? @petrochenkov
    Manishearth authored Jul 9, 2020
    Configuration menu
    Copy the full SHA
    9353e21 View commit details
    Browse the repository at this point in the history