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 11 pull requests #86527

Merged
merged 28 commits into from
Jun 22, 2021
Merged

Rollup of 11 pull requests #86527

merged 28 commits into from
Jun 22, 2021

Commits on May 7, 2021

  1. Revert SGX inline asm syntax

    This was erroneously changed in rust-lang#83387
    Jethro Beekman committed May 7, 2021
    Configuration menu
    Copy the full SHA
    5bbf8cf View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2021

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

Commits on Jun 7, 2021

  1. format symbols under shared frames

    KodrAus authored and JDuchniewicz committed Jun 7, 2021
    Configuration menu
    Copy the full SHA
    5fb2986 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8423a19 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2021

  1. Configuration menu
    Copy the full SHA
    95c1bf6 View commit details
    Browse the repository at this point in the history
  2. Update tracking issue

    soerenmeier authored Jun 16, 2021
    Configuration menu
    Copy the full SHA
    212e91a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    503abc7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    636170a View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2021

  1. Configuration menu
    Copy the full SHA
    664bde0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    13bfbb4 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2021

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

Commits on Jun 20, 2021

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

Commits on Jun 21, 2021

  1. Configuration menu
    Copy the full SHA
    9063eda View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dd90900 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    05ec710 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    888418a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b8a7bfb View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#85054 - jethrogb:jb/sgx-inline-asm, r=Amanieu

    Revert SGX inline asm syntax
    
    This was erroneously changed in rust-lang#83387
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    d6e344d View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#85182 - CDirkx:available_concurrency, r=Joh…

    …nTitor
    
    Move `available_concurrency` implementation to `sys`
    
    This splits out the platform-specific implementation of `available_concurrency` to the corresponding platforms under `sys`. No changes are made to the implementation.
    
    Tidy didn't lint against this code being originally added outside of `sys` because of a bug (see rust-lang#84677), this PR also reverts the exclusion that was introduced in that bugfix.
    
    Tracking issue of `available_concurrency`: rust-lang#74479
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    7f1a4a2 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#86037 - soerenmeier:cursor_remaining, r=yaahc

    Add `io::Cursor::{remaining, remaining_slice, is_empty}`
    
    Tracking issue: rust-lang#86369
    
    I came across an inconvenience when answering the following [Stack Overflow](https://stackoverflow.com/questions/67831170) question.
    To get the remaining slice you have to call `buff.fill_buf().unwrap()`. Which in my opinion doesn't really tell you what is returned (in the context of Cursor). To improve readability and convenience when using Cursor i propose adding the method `remaining`.
    
    The next thing i found inconvenient (unnecessary long) was detecting if the cursor reached the end. There are a few ways this can be achieved right now:
    - `buff.fill_buf().unwrap().is_empty()`
    - `buff.position() >= buff.get_ref().len()`
    - `buff.bytes().next().is_none()`
    
    Which all seem a bit unintuitive, hidden in trait documentations or just a bit long for such a simple task.
    Therefor i propose another method called `is_empty`, maybe with another name, since this one may leave room for interpretation on what really is empty (the underlying slice, the remaining slice or maybe the position).
    
    Since it seemed easier to create this PR instead of an RFC i did that, if an RFC is wanted, i can close this PR and write an RFC first.
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    4463b08 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#86114 - JDuchniewicz:feat/panic-frame-fmt, …

    …r=yaahc
    
    Reopen rust-lang#79692 (Format symbols under shared frames)
    
    Reopening rust-lang#79692.
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    7ee6b8b View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#86297 - GuillaumeGomez:rustdoc-gui-args, r=…

    …Mark-Simulacrum
    
    Allow to pass arguments to rustdoc-gui tool
    
    Very convenient for testing. This is another part of rust-lang#86293
    
    cc ``@jsha``
    r? ``@Mark-Simulacrum``
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    7dca2e2 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#86334 - LeSeulArtichaut:86120-links-type-al…

    …iases, r=jyn514
    
    Resolve type aliases to the type they point to in intra-doc links
    
    This feels a bit sketchy, but I think it's better than just rejecting the link.
    Helps with rust-lang#86120, r? ``@jyn514``
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    83d9b1b View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#86367 - m-ou-se:fix-abs-comment, r=scottmcm

    Fix comment about rustc_inherit_overflow_checks in abs().
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    8389cd3 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#86381 - yerke:add-test-for-issue-39161, r=J…

    …ohnTitor
    
    Add regression test for issue rust-lang#39161
    
    Closes rust-lang#39161
    
    Based on feedback from ``@JohnTitor`` in rust-lang#71333
    
    r? ``@JohnTitor``
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    4d73300 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#86387 - JohnTitor:now-no-unused-lifetimes, …

    …r=Mark-Simulacrum
    
    Remove `#[allow(unused_lifetimes)]` which is now unnecessary
    
    Seems FP has been fixed, it doesn't need `#[allow(unused_lifetimes)]` anymore.
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    d285235 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#86398 - yerke:add-test-for-issue-54685, r=M…

    …ark-Simulacrum
    
    Add regression test for issue rust-lang#54685
    
    Closes rust-lang#54685
    
    Took the test from rust-lang#54685 and modified it a bit to use assertion. Made sure that the updated test catches the original issue on 1.50 by running on Compiler Explorer (https://godbolt.org/z/E64onYeT5).
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    fdb1daa View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#86493 - Smittyvb:ctor-typeck-error, r=david…

    …twco
    
    Say "this enum variant takes"/"this struct takes" instead of "this function takes"
    
    This makes error messages for functions with incorrect argument counts adapt if they refer to a struct or enum variant:
    ```
    error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
      --> $DIR/struct-enum-wrong-args.rs:7:13
       |
    LL |     let _ = Ok();
       |             ^^-- supplied 0 arguments
       |             |
       |             expected 1 argument
    
    error[E0061]: this struct takes 1 argument but 0 arguments were supplied
      --> $DIR/struct-enum-wrong-args.rs:8:13
       |
    LL |     let _ = Wrapper();
       |             ^^^^^^^-- supplied 0 arguments
       |             |
       |             expected 1 argument
    ```
    
    Fixes rust-lang#86481.
    JohnTitor authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    4495ce7 View commit details
    Browse the repository at this point in the history