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 6 pull requests #91013

Closed
wants to merge 13 commits into from
Closed

Commits on Nov 1, 2021

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

Commits on Nov 4, 2021

  1. add const generics test

    lcnr committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    084b232 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2021

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

Commits on Nov 17, 2021

  1. Make slice->str conversion and related functions const

    This commit makes the following functions from `core::str` `const fn`:
    - `from_utf8[_mut]` (`feature(const_str_from_utf8)`)
    - `from_utf8_unchecked_mut` (`feature(const_str_from_utf8_unchecked_mut)`)
    - `Utf8Error::{valid_up_to,error_len}` (`feature(const_str_from_utf8)`)
    WaffleLapkin committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    cf6f64a View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. Configuration menu
    Copy the full SHA
    a7261c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    530eaa8 View commit details
    Browse the repository at this point in the history
  3. Fill in tracking issues for const_str_from_utf8 and `const_str_from…

    …_utf8_unchecked_mut` features
    WaffleLapkin committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    573a00e View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#90386 - pierwill:assert-incr-state-85864, r…

    …=Aaron1011
    
    Add `-Zassert-incr-state` to assert state of incremental cache
    
    Closes rust-lang#85864.
    JohnTitor authored Nov 18, 2021
    Configuration menu
    Copy the full SHA
    682a636 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#90438 - GuillaumeGomez:doc-show-coverage, r…

    …=camelid
    
    Clean up mess for --show-coverage documentation
    
    It was somewhat duplicated for some reasons... Anyway, this remove this duplication and clean up a bit.
    
    r? `@camelid`
    JohnTitor authored Nov 18, 2021
    Configuration menu
    Copy the full SHA
    2c060d5 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#90480 - r00ster91:remove, r=kennytm

    Mention `Vec::remove` in `Vec::swap_remove`'s docs
    
    Thought this was a nice addition.
    JohnTitor authored Nov 18, 2021
    Configuration menu
    Copy the full SHA
    31dcaaf View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#90578 - lcnr:add-test, r=Mark-Simulacrum

    add const generics test
    
    cc rust-lang#89829 (comment)
    
    r? rust-lang/project-const-generics
    JohnTitor authored Nov 18, 2021
    Configuration menu
    Copy the full SHA
    b79d0e3 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#90607 - WaffleLapkin:const_str_from_utf8, r…

    …=oli-obk
    
    Make slice->str conversion and related functions `const`
    
    This PR marks the following APIs as `const`:
    ```rust
    // core::str
    pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error>;
    pub const fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error>;
    pub const unsafe fn from_utf8_unchecked_mut(v: &mut [u8]) -> &mut str;
    
    impl Utf8Error {
        pub const fn valid_up_to(&self) -> usize;
        pub const fn error_len(&self) -> Option<usize>;
    }
    ```
    
    Everything but `from_utf8_unchecked_mut` uses `const_str_from_utf8` feature gate, `from_utf8_unchecked_mut` uses `const_str_from_utf8_unchecked_mut` feature gate.
    
    ---
    
    I'm not sure why `from_utf8_unchecked_mut` was left out being  non-`const`, considering that `from_utf8_unchecked` is not only `const`, but **`const` stable**.
    
    ---
    
    r? `@oli-obk` (performance-only `const_eval_select` use)
    JohnTitor authored Nov 18, 2021
    Configuration menu
    Copy the full SHA
    b8ef644 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#90989 - notriddle:notriddle/rustc-suggest-f…

    …loat-ending-in-dot, r=sanxiyn
    
    Avoid suggesting literal formatting that turns into member access
    
    Fixes rust-lang#90974
    JohnTitor authored Nov 18, 2021
    Configuration menu
    Copy the full SHA
    a1bd7c9 View commit details
    Browse the repository at this point in the history