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 8 pull requests #74313

Merged
merged 25 commits into from
Jul 14, 2020
Merged

Rollup of 8 pull requests #74313

merged 25 commits into from
Jul 14, 2020

Commits on Jun 29, 2020

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

Commits on Jun 30, 2020

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

Commits on Jul 4, 2020

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

Commits on Jul 7, 2020

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

Commits on Jul 8, 2020

  1. rustdoc: Allow linking from private items to private types

    Fixes rust-lang#74134
    
    After PR rust-lang#72771 this would trigger an intra_doc_link_resolution_failure warning
    when rustdoc is invoked without --document-private-items. Links from private
    items to private types are however never actually generated in that case and
    thus shouldn't produce a warning. These links are in fact a very useful tool to
    document crate internals.
    
    Tests are added for all 4 combinations of public/private items and link
    targets. Test 1 is the case mentioned above and fails without this commit. Tests
    2 - 4 passed before already but are added nonetheless to prevent regressions.
    dennis-hamester committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    c8b16cd View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2020

  1. test: rustdoc-ui: Add issue-74134, replacing test/rustdoc/issue-74134-*

    As per the discussion in PR rust-lang#74147, the 4 individual tests are replaced by a
    single one.
    
    The test is expanded to cover all 4 public/private cases, each with and without
    --document-private-items.
    dennis-hamester committed Jul 11, 2020
    Configuration menu
    Copy the full SHA
    689e360 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9704859 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8789525 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0979545 View commit details
    Browse the repository at this point in the history
  5. Improve wording

    GuillaumeGomez authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    4728438 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2020

  1. Update RELEASES.md for 1.45.0

    XAMPPRocky authored and Mark-Simulacrum committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    ffac887 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2020

  1. Configuration menu
    Copy the full SHA
    9a3a31a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5ff7e1a View commit details
    Browse the repository at this point in the history
  3. Removed trailing whitespace

    theo-lw committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    eac8092 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e3ae4c7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bc2b37a View commit details
    Browse the repository at this point in the history
  6. Remove trailing whitespace

    theo-lw authored Jul 13, 2020
    Configuration menu
    Copy the full SHA
    8df79fc View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2020

  1. Rollup merge of rust-lang#73354 - XAMPPRocky:relnotes-1.45.0, r=Mark-…

    …Simulacrum
    
    Update RELEASES.md for 1.45.0
    
    ### [Rendered](https://github.com/XAMPPRocky/rust/blob/relnotes-1.45.0/RELEASES.md)
    
    r? @Mark-Simulacrum
    cc @rust-lang/release
    Manishearth authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    aa29e3d View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#73852 - euclio:rustdoc-attr-newlines, r=Gui…

    …llaumeGomez
    
    rustdoc: insert newlines between attributes
    
    Fixes rust-lang#73205.
    Manishearth authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    eb7fdb2 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#73867 - poliorcetics:union-keyword, r=josht…

    …riplett
    
    Document the union keyword
    
    Partial fix of rust-lang#34601.
    
    This documents the `union` keyword by presenting three cases: simply using a union, matching on a union and referencing the fields of a union.
    
    @rustbot modify labels: T-doc,C-enhancement
    Manishearth authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    d9614db View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#74046 - ehuss:deny-warnings-caching, r=Mark…

    …-Simulacrum
    
    Fix caching issue when building tools.
    
    This fixes a problem with tool builds not being cached properly.
    
    rust-lang#73297 changed it so that Clippy will participate in the "deny warnings" setting. Unfortunately this causes a problem because Clippy shares the build directory with other tools which do not participate in "deny warnings".  Because Cargo does not independently cache artifacts based on different RUSTFLAGS settings, it causes all the shared dependencies to get rebuilt if Clippy ever gets built.
    
    The solution here is to stop using RUSTFLAGS, and just sneak the settings in through the rustc wrapper. Cargo won't know about the different settings, so it will not bust the cache. This should be safe since lint settings on dependencies are ignored. This is how things used to work in the past before rust-lang#64316.
    
    Alternate solutions:
    * Treat Clippy as a "submodule" and don't enforce warnings on it. This was the behavior before rust-lang#73297. The consequence is that if a warning sneaks into clippy, that the clippy maintainers will need to fix it when they sync clippy back to the clippy repo.
    * Just deny warnings on all tools (removing the in-tree/submodule distinction). This is tempting, but with some issues (cc rust-lang#52336):
      * Adding or changing warnings in rustc can be difficult to land because tools have to be updated if they trip the warning. In practice, this isn't too bad.  Cargo (and rustfmt) already runs with `deny(warnings)`, so this has been the de-facto standard already (although they do not use the extra lints like `unused_lifetimes`).
    * Teach Cargo to add flags to the workspace members, but not dependencies.
    * Teach Cargo to add flags without fingerprinting them?
    * Teach Cargo to independently cache different RUSTFLAGS artifacts (this was [reverted](rust-lang/cargo#7417) due to complications). This would also unnecessarily rebuild dependencies, but would avoid cache thrashing.
    * Teach Cargo about lint settings.
    
    Closes rust-lang#74016
    Manishearth authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    e553243 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#74123 - GuillaumeGomez:cleanup-e0718, r=pic…

    …kfire
    
    clean up E0718 explanation
    
    r? @Dylan-DPC
    Manishearth authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    549aa03 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#74147 - dennis-hamester:fix/issue-74134, r=…

    …jyn514
    
    rustdoc: Allow linking from private items to private types
    
    Fixes rust-lang#74134
    
    After PR rust-lang#72771 this would trigger an intra_doc_link_resolution_failure warning
    when rustdoc is invoked without --document-private-items. Links from private
    items to private types are however never actually generated in that case and
    thus shouldn't produce a warning. These links are in fact a very useful tool to
    document crate internals.
    
    Tests are added for all 4 combinations of public/private items and link
    targets. Test 1 is the case mentioned above and fails without this commit. Tests
    2 - 4 passed before already but are added nonetheless to prevent regressions.
    Manishearth authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    e4a9b36 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#74285 - wangtheo:issue-71669, r=lcnr

    rust-lang#71669: add ui, codegen tests for volatile + nearby int intrinsics
    
    Added some tests for intrinsics. See rust-lang#71669.
    Manishearth authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    fa4ada1 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#74286 - PankajChaudhary5:E0688, r=Guillaume…

    …Gomez
    
    Added detailed error code explanation for issue E0688 in Rust compiler.
    
    Added proper error explanation for issue E0688 in the Rust compiler.
    Error Code E0688
    
    Sub Part of Issue rust-lang#61137
    
    r? @GuillaumeGomez
    Manishearth authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    9a1df31 View commit details
    Browse the repository at this point in the history