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

Merged
merged 17 commits into from
Jun 14, 2024
Merged

Rollup of 7 pull requests #126473

merged 17 commits into from
Jun 14, 2024

Commits on Jun 6, 2024

  1. Update Tests

    veera-sivarajan committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    6d19ac3 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. add HermitOS support of vectored read/write operations

    In general, the I/O interface of hermit-abi is more POSIX-like
    interface. Consequently, platform abstraction layer for HermitOS
    has slightly adjusted and some inaccuracies remove.
    stlankes committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    1f125a6 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Unify guarantees about the default allocator

    `std::alloc` said that the default allocator is unspecified for all
    crrate types except `cdylib` and `staticlib`. Adjust
    `std::alloc::System` documentation to say the same.
    
    Fixes rust-lang#125870.
    tbu- committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    bb8eb44 View commit details
    Browse the repository at this point in the history
  2. UniqueRc: support allocators and T: ?Sized.

    Added the following (all unstable):
    
    * Defaulted type pararameter `A: Allocator`.
    * `UniqueRc::new_in()`.
    * `T:  ?Sized` where possible.
    * `impl CoerceUnsized for UniqueRc`.
    * Drive-by doc polish: links and periods at the end of sentences.
    
    These changes are motivated by supporting the implementation of unsized
    `Rc::make_mut()` (PR rust-lang#116113), but are also intended to be obvious
    generalizations of `UniqueRc` to support the things `Rc` does.
    kpreid committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    27ecb71 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

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

Commits on Jun 13, 2024

  1. extend the check for LLVM build

    We don't build LLVM when using the precompiled version from the CI builder.
    
    Signed-off-by: onur-ozkan <[email protected]>
    onur-ozkan committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    58e3ac0 View commit details
    Browse the repository at this point in the history
  2. Rename proc_macro::Literal tests from parse.rs to literal.rs

    This module contains tests not just of parse (FromStr) but also
    to_string (Display) for literals.
    dtolnay committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    57106e4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2cc0284 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7ddc89e View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2024

  1. Configuration menu
    Copy the full SHA
    a690710 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#123769 - dtolnay:literal, r=fee1-dead

    Improve escaping of byte, byte str, and c str proc-macro literals
    
    This PR changes the behavior of `proc_macro::Literal::byte_character` (rust-lang#115268), `byte_string`, and `c_string` (rust-lang#119750) to improve their choice of escape sequences. 3 categories of changes are made:
    
    1. Never use `\x00`. Always prefer `\0`, which is supported in all the same places.
    
    2. Never escape `\'` inside double quotes and `\"` inside single quotes.
    
    3. Never use `\x` for valid UTF-8 in literals that permit `\u`.
    
    The second commit adds tests covering these cases, asserting the **old** behavior.
    
    The third commit implements the behavior change and simultaneously updates the tests to assert the **new** behavior.
    matthiaskrgr authored Jun 14, 2024
    Configuration menu
    Copy the full SHA
    20ca54b View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#126054 - veera-sivarajan:bugfix-113073-boun…

    …d-on-generics-2, r=fee1-dead
    
    `E0229`: Suggest Moving Type Constraints to Type Parameter Declaration
    
    Fixes rust-lang#113073
    
    This PR suggests  `impl<T: Bound> Trait<T> for Foo` when finding `impl Trait<T: Bound> for Foo`. Tangentially, it also improves a handful of other error messages.
    
    It accomplishes this in two steps:
    1. Check if constrained arguments and parameter names appear in the same order and delay emitting "incorrect number of generic arguments" error because it can be confusing for the programmer to see `0 generic arguments provided` when there are `n` constrained generic arguments.
    
    2. Inside `E0229`, suggest declaring the type parameter right after the `impl` keyword by finding the relevant impl block's span for type parameter declaration. This also handles lifetime declarations correctly.
    
    Also, the multi part suggestion doesn't use the fluent error mechanism because translating all the errors to fluent style feels outside the scope of this PR. I will handle it in a separate PR if this gets approved.
    matthiaskrgr authored Jun 14, 2024
    Configuration menu
    Copy the full SHA
    bfe0323 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#126135 - hermit-os:fuse, r=jhpratt

    add HermitOS support for vectored read/write operations
    
    In general, the I/O interface of hermit-abi is revised and now a more POSIX-like interface. Consequently, platform abstraction layer for HermitOS has slightly adjusted and some inaccuracies remove.
    
    Hermit is a tier 3 platform and this PR changes only files, wich are related to the tier 3 platform.
    matthiaskrgr authored Jun 14, 2024
    Configuration menu
    Copy the full SHA
    6396d4c View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#126266 - tbu-:pr_doc_alloc_default_system, …

    …r=jhpratt
    
    Unify guarantees about the default allocator
    
    `std::alloc` said that the default allocator is unspecified for all crrate types except `cdylib` and `staticlib`. Adjust `std::alloc::System` documentation to say the same.
    
    Fixes rust-lang#125870.
    matthiaskrgr authored Jun 14, 2024
    Configuration menu
    Copy the full SHA
    e923048 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#126285 - kpreid:unique-rc, r=dtolnay

    `UniqueRc`: support allocators and `T: ?Sized`.
    
    Added the following (all unstable):
    
    * Defaulted type pararameter `A: Allocator`.
    * `UniqueRc::new_in()`.
    * `T:  ?Sized` where possible.
    * `impl CoerceUnsized for UniqueRc`.
    
    These changes are motivated by supporting the implementation of unsized `Rc::make_mut()` (PR rust-lang#116113), but are also intended to be obvious generalizations of `UniqueRc` to support the things `Rc` does.
    
    r? ``````@the8472``````
    matthiaskrgr authored Jun 14, 2024
    Configuration menu
    Copy the full SHA
    b55cabe View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#126399 - onur-ozkan:126156, r=albertlarsan68

    extend the check for LLVM build
    
    We don't build LLVM when using the precompiled version from the CI builder.
    
    Closes rust-lang#126156
    matthiaskrgr authored Jun 14, 2024
    Configuration menu
    Copy the full SHA
    b7dcdf6 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#126426 - RalfJung:dangling-zst-ice, r=oli-obk

    const validation: fix ICE on dangling ZST reference
    
    Fixes rust-lang#126393
    I'm not super happy with this fix but I can't think of a better one.
    
    r? `@oli-obk`
    matthiaskrgr authored Jun 14, 2024
    Configuration menu
    Copy the full SHA
    aebd794 View commit details
    Browse the repository at this point in the history