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 2 pull requests #115889

Merged
merged 5 commits into from
Sep 16, 2023
Merged

Rollup of 2 pull requests #115889

merged 5 commits into from
Sep 16, 2023

Commits on Sep 6, 2023

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

Commits on Sep 15, 2023

  1. Configuration menu
    Copy the full SHA
    06a76ab View commit details
    Browse the repository at this point in the history
  2. special case TyAndLayout debug impl

    BoxyUwU authored and RalfJung committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    71cab64 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2023

  1. Rollup merge of rust-lang#115607 - RalfJung:safe-traits-unsafe-code, …

    …r=dtolnay
    
    clarify that unsafe code must not rely on our safe traits
    
    This adds a disclaimer to PartialEq, Eq, PartialOrd, Ord, Hash, Deref, DerefMut.
    
    We already have a similar disclaimer in ExactSizeIterator (worded a bit differently):
    ```
    /// Note that this trait is a safe trait and as such does *not* and *cannot*
    /// guarantee that the returned length is correct. This means that `unsafe`
    /// code **must not** rely on the correctness of [`Iterator::size_hint`]. The
    /// unstable and unsafe [`TrustedLen`](super::marker::TrustedLen) trait gives
    /// this additional guarantee.
    ```
    If there are any other traits that should carry such a disclaimer, please let me know.
    
    Fixes rust-lang#73682
    matthiaskrgr authored Sep 16, 2023
    Configuration menu
    Copy the full SHA
    c2f228f View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#115866 - RalfJung:interpret-debug, r=compil…

    …er-errors
    
    make interpreter and TyAndLayout type Debug impl independent of Ty debug impl
    
    This fixes some (but not all) of the fallout from rust-lang#115661.
    
    Second commit is taken from rust-lang#107084 (and slightly adjusted); I preserved the original git author information.
    matthiaskrgr authored Sep 16, 2023
    Configuration menu
    Copy the full SHA
    53cd978 View commit details
    Browse the repository at this point in the history