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 7 pull requests #115002

Closed
wants to merge 15 commits into from

Commits on Aug 3, 2023

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

Commits on Aug 8, 2023

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

Commits on Aug 18, 2023

  1. Inline strlen_rt in CStr::from_ptr

    This enables LLVM to optimize this function as if it was strlen
    without having to enable std-aware LTO.
    KamilaBorowska committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    e94ba4a View commit details
    Browse the repository at this point in the history
  2. Expose core::error::request_value in std

    I think this was simply forgotten in rust-lang#113464.
    shepmaster committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    74942da View commit details
    Browse the repository at this point in the history
  3. instantiate response: no unnecessary new universe

    this previously was a off-by-one error.
    lcnr committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    1171683 View commit details
    Browse the repository at this point in the history
  4. change to known bug

    lcnr committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    ee04744 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2023

  1. Configuration menu
    Copy the full SHA
    4504cc5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    269803e View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#113365 - dima74:diralik/add-deprecated-sugg…

    …estions, r=workingjubilee
    
    Add `suggestion` for some `#[deprecated]` items
    
    Consider code:
    ```rust
    fn main() {
        let _ = ["a", "b"].connect(" ");
    }
    ```
    
    Currently it shows deprecated warning:
    ```rust
    warning: use of deprecated method `std::slice::<impl [T]>::connect`: renamed to join
     --> src/main.rs:2:24
      |
    2 |     let _ = ["a", "b"].connect(" ");
      |                        ^^^^^^^
      |
      = note: `#[warn(deprecated)]` on by default
    ```
    
    This PR adds `suggestion` for `connect` and some other deprecated items, so the warning will be changed to this:
    ```rust
    warning: use of deprecated method `std::slice::<impl [T]>::connect`: renamed to join
     --> src/main.rs:2:24
      |
    2 |     let _ = ["a", "b"].connect(" ");
      |                        ^^^^^^^
      |
      = note: `#[warn(deprecated)]` on by default
    help: replace the use of the deprecated method
      |
    2 |     let _ = ["a", "b"].join(" ");
      |                        ^^^^
    ```
    matthiaskrgr committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    b596930 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#114605 - Easyoakland:hash-collection-doc, r…

    …=thomcc
    
    Increase clarity about Hash - Eq consistency in HashMap and HashSet docs
    
    As discussed [here](https://users.rust-lang.org/t/what-hapens-if-hash-and-partialeq-dont-match-when-using-hashmap/98052/13) the description of logic errors in `HashMap` and `HashSet` does not explicitly apply to
    ```text
    k1 == k2 -> hash(k1) == hash(k2)
    ```
    but this is likely what is intended.
    
    This PR is a small doc change to correct this.
    
    r? rust-lang/libs
    matthiaskrgr committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    ae93c8d View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#114934 - lcnr:generalize-substs-relate, r=c…

    …ompiler-errors
    
    instantiate response: no unnecessary new universe
    
    this previously was a off-by-one error.
    
    fixes rust-lang/trait-system-refactor-initiative#55
    
    r? ```@compiler-errors```
    matthiaskrgr committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    35e1f41 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#114950 - xfix:inline-cstr-from-ptr, r=cuviper

    Inline strlen_rt in CStr::from_ptr
    
    This enables LLVM to optimize this function as if it was strlen (LLVM knows what it does, and can avoid calling it in certain situations) without having to enable std-aware LTO. This is essentially doing what rust-lang#90007 did, except updated for this function being `const`.
    
    Pretty sure it's safe to roll-up, considering last time I did make this change it didn't affect performance (`CStr::from_ptr` isn't really used all that often in Rust code that is checked by rust-perf).
    matthiaskrgr committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    a8d4e2a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#114973 - shepmaster:std-provide-value, r=Am…

    …anieu
    
    Expose core::error::request_value in std
    
    I think this was simply forgotten in rust-lang#113464.
    
    /cc `@waynr`
    
    r? `@Amanieu`
    matthiaskrgr committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    74eab3d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#114983 - crlf0710:formatmsg, r=ChrisDenton

    Usage zero as language id for `FormatMessageW()`
    
    This switches the language selection from using system language (note that this might be different than application language, typically stored as thread ui language) to use `FormatMessageW` default search strategy, which is `neutral` first, then `thread ui lang`, then `user language`, then `system language`, then `English`. (See https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-formatmessagew)
    
    This allows the Rust program to take more control of `std::io::Error`'s message field, by setting up thread ui language themselves before hand (which many programs already do).
    matthiaskrgr committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    c03d8a6 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#114991 - matthiaskrgr:no_rebind, r=cjgillot

    remove redundant var rebindings
    matthiaskrgr committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    369e32c View commit details
    Browse the repository at this point in the history