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 15 pull requests #77172

Merged
merged 40 commits into from
Sep 25, 2020
Merged

Rollup of 15 pull requests #77172

merged 40 commits into from
Sep 25, 2020

Commits on Sep 15, 2020

  1. Configuration menu
    Copy the full SHA
    8e3ce43 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0475c36 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2020

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

Commits on Sep 21, 2020

  1. Applied review comments

    duckymirror committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    16eee2a View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2020

  1. Configuration menu
    Copy the full SHA
    4a6bc77 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0082d20 View commit details
    Browse the repository at this point in the history
  3. add array from_ref

    lcnr committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    179f63d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b6e7283 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    87a5dec View commit details
    Browse the repository at this point in the history
  6. Don't use an if guard to check equality with a constant

    Match on it directly instead
    LingMan authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    c078905 View commit details
    Browse the repository at this point in the history
  7. Use Self in alloc

    poliorcetics committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    ec4e9cd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d76b807 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. add tracking issue

    lcnr committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    ed97b42 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dd66ea2 View commit details
    Browse the repository at this point in the history
  3. Make delegation methods of std::net::IpAddr unstable const

    Make the following methods of `std::net::IpAddr` unstable const under the `const_ip` feature:
    - `is_unspecified`
    - `is_loopback`
    - `is_global`
    - `is_multicast`
    
    Also adds a test for these methods in a const context.
    
    Possible because these methods delegate to the inner `Ipv4Addr` or `Ipv6Addr`, which were made const, and the recent stabilization of const control flow.
    
    Part of #76205
    CDirkx committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    947536f View commit details
    Browse the repository at this point in the history
  4. /nightly/nightly-rustc

    duckymirror committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    138a2e5 View commit details
    Browse the repository at this point in the history
  5. use array::from_ref for slices

    lcnr committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    5b30161 View commit details
    Browse the repository at this point in the history
  6. tidy

    duckymirror committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    764967a View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. Configuration menu
    Copy the full SHA
    085679c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a320ef7 View commit details
    Browse the repository at this point in the history
  3. Bless tests

    ecstatic-morse committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    e5e5e64 View commit details
    Browse the repository at this point in the history
  4. Remove workaround for deref issue that no longer exists.

    The double underscores were used to work around issue #12808, which was
    solved in 2016.
    m-ou-se committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    13dc237 View commit details
    Browse the repository at this point in the history
  5. Resolve #76673 (comment)

    simonvandel committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    7dec440 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ebf024b View commit details
    Browse the repository at this point in the history
  7. Bless tests

    ecstatic-morse committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    0f59469 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2020

  1. Rollup merge of #75438 - Cldfire:rustdoc/use-adaptive-svg-favicon, r=…

    …GuillaumeGomez
    
    Use adaptive SVG favicon for rustdoc like other rust sites
    
    Use the theme-adaptive SVG favicon that was recently introduced [for the Rust site](rust-lang/www.rust-lang.org#1185) (and others).
    
    (This PR is simply copied from the PR linked above, so see that for rationale.)
    
    Closes #72165.
    
    Before, Firefox on Linux:
    
    ![image](https://user-images.githubusercontent.com/13814214/89971811-34c0a900-dc2a-11ea-9aa6-a4aa9d66bed4.png)
    
    After, Firefox on Linux (`prefers-color-scheme` set to `dark` by setting `ui.systemUsesDarkTheme` to a number value of `1` in `about:config`):
    
    ![image](https://user-images.githubusercontent.com/13814214/89971842-515ce100-dc2a-11ea-92e8-c374aaaf6031.png)
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    15efed4 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of #76304 - CDirkx:const-ip, r=ecstatic-morse

    Make delegation methods of `std::net::IpAddr` unstably const
    
    Make the following methods of `std::net::IpAddr` unstable const under the `const_ip` feature:
     - `is_unspecified`
     - `is_loopback`
     - `is_global`
     - `is_multicast`
    
    Also adds a test for these methods in a const context.
    
    Possible because these methods delegate to the inner `Ipv4Addr` or `Ipv6Addr`, which were made const ([PR#76205](#76142) and [PR#76206](#76206)), and the recent stabilization of const control flow.
    
    Part of #76205
    
    r? @ecstatic-morse
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    88e3693 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of #76724 - ecstatic-morse:dataflow-pass-names, r=lcnr

    Allow a unique name to be assigned to dataflow graphviz output
    
    Previously, if the same analysis were invoked multiple times in a single compilation session, the graphviz output for later runs would overwrite that of previous runs. Allow callers to add a unique identifier to each run so this can be avoided.
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    d766c23 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of #76978 - duckymirror:mpsc-from-doc, r=jyn514

    Documented From impls in std/sync/mpsc/mod.rs
    
    This is for #51430.
    
    r? @steveklabnik
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    452c86e View commit details
    Browse the repository at this point in the history
  5. Rollup merge of #77044 - pickfire:patch-4, r=jyn514

    Liballoc bench vec use mem take not replace
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    67bcf04 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of #77050 - follower:patch-1, r=oli-obk

    Typo fix: "satsify" -> "satisfy"
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    862faea View commit details
    Browse the repository at this point in the history
  7. Rollup merge of #77074 - lcnr:array-from-ref, r=SimonSapin

    add array::from_ref
    
    mirrors the methods in `std::slice` with the same name.
    
    I guess this method previously didn't exist as there was close to no reason to create an array of size `1`.
    This will change due to const generics in the near future.
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    09b0bd6 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of #77078 - LingMan:patch-2, r=jonas-schievink

    Don't use an if guard to check equality with a constant
    
    Match on it directly instead
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    28e0bc9 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of #77079 - poliorcetics:more-self-in-docs, r=jyn514

    Use `Self` in docs when possible
    
    Fixes #76542.
    
    I used `rg '\s*//[!/]\s+fn [\w_]+\(&?self, ' .` in `library/` to find instances, I found some with that and some by manually checking.
    
    @rustbot modify labels: C-enhancement T-doc
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    dc4f39c View commit details
    Browse the repository at this point in the history
  10. Rollup merge of #77081 - LingMan:patch-1, r=jonas-schievink

    Merge two almost identical match arms
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    b8ab6eb View commit details
    Browse the repository at this point in the history
  11. Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514

    Updated html_root_url for compiler crates
    
    Closes #77103
    
    r? @jyn514
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    6f3da3d View commit details
    Browse the repository at this point in the history
  12. Rollup merge of #77136 - ecstatic-morse:issue-77134, r=oli-obk

    Suggest `const_mut_refs`, not `const_fn` for mutable references in `const fn`
    
    Resolves #77134.
    
    Prior to #76850, most uses of `&mut` in `const fn` ~~required~~ involved two feature gates, `const_mut_refs` and `const_fn`. The first allowed all mutable borrows of locals. The second allowed only locals, arguments and return values whose types contained `&mut`. I switched the second check to the `const_mut_refs` gate. However, I forgot update the error message with the new suggestion.
    
    Alternatively, we could revert to having two different feature gates for this. OP's code never borrows anything mutably, so it didn't need `const_mut_refs` in the past, only `const_fn`. I'd prefer to keep everything under a single gate, however.
    
    r? @oli-obk
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    473ae22 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of #77160 - ecstatic-morse:const-fn-transmute-suggestion…

    …, r=oli-obk
    
    Suggest `const_fn_transmute`, not `const_fn`
    
    More fallout from #76850 in the vein of #77134. The fix is the same. I looked through the structured errors file and didn't see any more of this kind of diagnostics bug.
    
    r? @oli-obk
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    b8d158b View commit details
    Browse the repository at this point in the history
  14. Rollup merge of #77164 - fusion-engineering-forks:no-more-funny-under…

    …scores, r=Mark-Simulacrum
    
    Remove workaround for deref issue that no longer exists.
    
    The double underscores were used to work around issue #12808, which was solved in 2016.
    jonas-schievink authored Sep 25, 2020
    Configuration menu
    Copy the full SHA
    fc4dc5f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    8515efb View commit details
    Browse the repository at this point in the history