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 #84483

Closed
wants to merge 31 commits into from
Closed

Commits on Apr 2, 2021

  1. On stable, suggest removing #![feature] for features that have been…

    … stabilized
    
    I don't know how to test this. I confirmed locally that this gives the
    appropriate help with `channel = "beta"`:
    
    ```
    error[E0554]: `#![feature]` may not be used on the beta release channel
     --> src/lib.rs:2:1
      |
    2 | #![feature(min_const_generics)]
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute
      |
      = help: the feature `min_const_generics` has been stable since 1.51.0 and no longer requires an attribute to enable
    
    error[E0554]: `#![feature]` may not be used on the beta release channel
     --> src/lib.rs:3:1
      |
    3 | #![feature(min_const_generics, min_specialization)]
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = help: the feature `min_const_generics` has been stable since 1.51.0 and no longer requires an attribute to enable
    
    error[E0554]: `#![feature]` may not be used on the beta release channel
     --> src/lib.rs:4:1
      |
    4 | #![feature(box_patterns)]
      | ^^^^^^^^^^^^^^^^^^^^^^^^^
    ```
    jyn514 committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    53a1105 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2021

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

Commits on Apr 21, 2021

  1. Configuration menu
    Copy the full SHA
    259a368 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7cb1dcd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    312b4fd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d3e0d2f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5d9eeff View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2021

  1. Configuration menu
    Copy the full SHA
    9cabbd0 View commit details
    Browse the repository at this point in the history
  2. Clean up .gitignore

    CDirkx committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    3794fc9 View commit details
    Browse the repository at this point in the history
  3. Remove "Version control"

    CDirkx committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    c0d05d2 View commit details
    Browse the repository at this point in the history
  4. doc/platform-support: clarify UEFI support

    Add missing information on what standard-library features are supported
    by the UEFI targets.
    
    All current UEFI targets (which is i686 and x86_64) only support no_std
    cross-compilations. `std` support has not been worked on and is unlikely
    to emerge anytime soon, due to the much restricted environment that UEFI
    provides.
    dvdhrm committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    bfbf4ce View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a03cba3 View commit details
    Browse the repository at this point in the history
  6. Get rid of "[+] show undocumented items" toggle on numeric From impls

    On most From implementations, the docstring is attached to the
    function. This is also how people have been [recommended] to do it.
    
    Screenshots:
    
    * [before](https://user-images.githubusercontent.com/1593513/115767662-323c5480-a35e-11eb-9918-98aba83e9183.png)
    * [after](https://user-images.githubusercontent.com/1593513/115767675-35374500-a35e-11eb-964f-c28eeb6c807a.png)
    
    [recommended]: rust-lang#51430 (comment)
    notriddle committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    c247055 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a07bf2e View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2021

  1. Configuration menu
    Copy the full SHA
    e1d9b3c View commit details
    Browse the repository at this point in the history
  2. Use ItemType in cache

    jyn514 committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    3170536 View commit details
    Browse the repository at this point in the history
  3. Remove TypeKind

    jyn514 committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    2df886d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    26f2705 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a344282 View commit details
    Browse the repository at this point in the history
  6. Fix macro bug in impl From<DefKind> for ItemType

    This was missed a while ago when support for proc-macro attributes was
    first added.
    jyn514 committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    6c066ab View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#83722 - jyn514:stable-help, r=estebank

    On stable, suggest removing `#![feature]` for features that have been stabilized
    
    I don't know how to test this (https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Run.20tests.20without.20enabling.20nightly.20features.3F). I confirmed locally that this gives the
    appropriate help with `channel = "beta"`:
    
    ```
    error[E0554]: `#![feature]` may not be used on the beta release channel
     --> src/lib.rs:2:1
      |
    2 | #![feature(min_const_generics)]
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute
      |
      = help: the feature `min_const_generics` has been stable since 1.51.0 and no longer requires an attribute to enable
    
    error[E0554]: `#![feature]` may not be used on the beta release channel
     --> src/lib.rs:3:1
      |
    3 | #![feature(min_const_generics, min_specialization)]
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = help: the feature `min_const_generics` has been stable since 1.51.0 and no longer requires an attribute to enable
    
    error[E0554]: `#![feature]` may not be used on the beta release channel
     --> src/lib.rs:4:1
      |
    4 | #![feature(box_patterns)]
      | ^^^^^^^^^^^^^^^^^^^^^^^^^
    ```
    
    Closes rust-lang#83715.
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    01089e0 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#83990 - the8472:take-trusted-len, r=dtolnay

    implement `TrustedRandomAccess` for `Take` iterator adapter
    
    `TrustedRandomAccess` requires the iterator length to fit within `usize`. `take(n)` only constrains the upper bound of an iterator. So if the inner is `TrustedRandomAccess` (which already implies a finite length) then so can be `Take`.
    
    ``````@rustbot`````` label T-libs-impl
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    5a86c44 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#84299 - lcnr:const-generics-defaults-name-r…

    …es, r=varkor
    
    various const parameter defaults improvements
    
    Actually resolve names in const parameter defaults, fixing `struct Foo<const N: usize = { usize::MAX }>`.
    
    ---
    Split generic parameter ban rib for types and consts, allowing
    ```rust
    #![feature(const_generics_defaults)]
    struct Q;
    struct Foo<T = Q, const Q: usize = 3>(T);
    ```
    
    ---
    Remove the type/const ordering restriction if `const_generics_defaults` is active, even if `const_generics` is not. allowing us to stabilize and test const param defaults separately.
    
    ---
    Check well formedness of const parameter defaults, eagerly emitting an error for `struct Foo<const N: usize = { 0 - 1 }>`
    
    ---
    Do not forbid const parameters in param defaults, allowing `struct Foo<const N: usize, T = [u8; N]>(T)` and `struct Foo<const N: usize, const M: usize = N>`. Note that this should not change anything which is stabilized, as on stable, type parameters must be in front of const parameters, which means that type parameter defaults are only allowed if no const parameters exist.
    
    We still forbid generic parameters inside of const param types.
    
    r? ``````@varkor`````` ``````@petrochenkov``````
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    0376ef9 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#84374 - CDirkx:gitignore, r=Mark-Simulacrum

    Clean up .gitignore
    
    Categorizes entries in the `.gitignore` file.
    
    Other changes:
    - added `desktop.ini` (Windows equivalent of `.DS_Store`)
    - removed `.hg/` and `.hgignore`
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    44615e2 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#84387 - CDirkx:poison, r=m-ou-se

    Move `sys_common::poison` to `sync::poison`
    
    `sys_common` should not contain publicly exported types, only platform-independent abstractions on top of `sys`, which `sys_common::poison` is not. There is thus no reason for the module to not live under `sync`.
    
    Part of rust-lang#84187.
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    a456475 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#84409 - mzohreva:mz/tls-dtors-before-join, …

    …r=dtolnay
    
    Ensure TLS destructors run before thread joins in SGX
    
    The excellent test is from ``@jethrogb``
    
    For context see: rust-lang#83416 (comment)
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    45b3b10 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#84430 - dvdhrm:rw/uefidoc, r=Amanieu

    doc/platform-support: clarify UEFI support
    
    Add missing information on what standard-library features are supported by the UEFI targets.
    
    All current UEFI targets (which is i686 and x86_64) only support no_std cross-compilations. `std` support has not been worked on and is unlikely to emerge anytime soon, due to the much restricted environment that UEFI provides.
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    99aa0fa View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#84433 - GuillaumeGomez:search-input-blur, r…

    …=jsha
    
    Prevent control, shift and alt keys to make search input lose focus
    
    Part of rust-lang#84384.
    
    r? ```@jsha```
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    2a2b15a View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#84444 - notriddle:num-docs-from-undocumente…

    …d-items-toggle, r=yaahc
    
    doc: Get rid of "[+] show undocumented items" toggle on numeric From impls
    
    On most From implementations, the docstring is attached to the function. This is also how people have been [recommended] to do it.
    
    Screenshots:
    
    * [before](https://user-images.githubusercontent.com/1593513/115767662-323c5480-a35e-11eb-9918-98aba83e9183.png)
    * [after](https://user-images.githubusercontent.com/1593513/115767675-35374500-a35e-11eb-964f-c28eeb6c807a.png)
    
    [recommended]: rust-lang#51430 (comment)
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    83ebe41 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#84456 - richkadel:issue-84421, r=tmandry

    Fix ICE if original_span(fn_sig) returns a span not in body sourcefile
    
    Fixes: rust-lang#84421
    
    r? ```@tmandry```
    
    fyi: ```@wesleywiser``` ```@sdroege``` ```@rajivshah3```
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    6409149 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#84464 - jyn514:type-kind, r=CraftSpider

    rustdoc: Get rid of `clean::TypeKind`
    
    It does exactly the same thing as ItemType.
    JohnTitor committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    3ed8bba View commit details
    Browse the repository at this point in the history