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

Merged
merged 20 commits into from
Oct 30, 2021
Merged

Rollup of 8 pull requests #90416

merged 20 commits into from
Oct 30, 2021

Commits on Oct 21, 2021

  1. Added const versions of common numeric operations

    # Conflicts:
    #	library/core/src/lib.rs
    AlexApps99 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    23d033e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    361c978 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2021

  1. Fix incorrect doc link

    Veykril committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    29a4e4a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    991a296 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2021

  1. Configuration menu
    Copy the full SHA
    04cb196 View commit details
    Browse the repository at this point in the history
  2. add test

    b-naber committed Oct 29, 2021
    Configuration menu
    Copy the full SHA
    a39c50b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    87fbf3c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    60bf2f1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0c70831 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    878ac10 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    afaa54a View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2021

  1. Configuration menu
    Copy the full SHA
    b6851ba View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#89876 - AlexApps99:const_ops, r=oli-obk

    Make most std::ops traits const on numeric types
    
    This PR makes existing implementations of `std::ops` traits (`Add`, `Sub`, etc) [`impl const`](rust-lang#67792) where possible.
    This affects:
    - All numeric primitives (`u*`, `i*`, `f*`)
    - `NonZero*`
    - `Wrapping`
    
    This is under the `rustc_const_unstable` feature `const_ops`.
    I will write tests once I know what can and can't be kept for the final version of this PR.
    
    Since this is my first PR to rustc (and hopefully one of many), please give me feedback on how to better handle the PR process wherever possible. Thanks
    
    [Zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Const.20std.3A.3Aops.20traits.20PR)
    matthiaskrgr committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    20bb932 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#90371 - Veykril:patch-2, r=jyn514

    Fix incorrect doc link
    
    Looks like a copy paste mistake
    matthiaskrgr committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    86087f9 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#90374 - GuillaumeGomez:unify-rustdoc-book-t…

    …itles, r=camelid
    
    Unify titles in rustdoc book doc attributes chapter
    
    As discussed in rust-lang#90339.
    
    I wasn't able to find out where the link to the titles was used so let's see if the CI fails. :)
    
    r? ``@camelid``
    matthiaskrgr committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    a213740 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#90377 - WaffleLapkin:const_slice_from_raw_p…

    …arts, r=oli-obk
    
    Make `core::slice::from_raw_parts[_mut]` const
    
    Responses to rust-lang#90012 seem to allow ``@rust-lang/wg-const-eval`` to decide on use of `const_eval_select`, so we can make `core::slice::from_raw_parts[_mut]` const :)
    
    ---
    This PR marks the following APIs as const:
    ```rust
    // core::slice
    pub const unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T];
    pub const unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a mut [T];
    ```
    ---
    
    Resolves rust-lang#90011
    r? ``@oli-obk``
    matthiaskrgr committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    b531364 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#90395 - b-naber:const-expr-type-relation, r…

    …=oli-obk
    
    Restrict liveness of mutable borrow of inner infcx in ConstInferUnifier::consts
    
    Fixes rust-lang#89304
    
    r? ``@oli-obk``
    matthiaskrgr committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    88e0bea View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#90396 - b-naber:type_flags_ices_default_ano…

    …n_consts, r=lcnr
    
    Prevent type flags assertions being thrown in default_anon_const_substs if errors occurred
    
    Fixes rust-lang#90364
    Fixes rust-lang#88997
    
    r? ``@lcnr``
    matthiaskrgr committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    d99dc7a View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#90402 - wesleywiser:query_descriptions, r=o…

    …li-obk
    
    Add a few query descriptions
    matthiaskrgr committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    f9111e0 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#90412 - jyn514:macro-use, r=camelid

    Remove unnecessary `macro_use`s in rustdoc
    matthiaskrgr committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    19b5b0f View commit details
    Browse the repository at this point in the history