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

Closed
wants to merge 42 commits into from

Commits on Dec 15, 2023

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

Commits on Dec 31, 2023

  1. Add -Zuse-sync-unwind

    This flag specifies whether LLVM generates async unwind or sync unwind.
    quininer committed Dec 31, 2023
    Configuration menu
    Copy the full SHA
    12784c3 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. Preparing for merge from rustc

    The Miri Conjob Bot committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    4c4c6a6 View commit details
    Browse the repository at this point in the history
  2. Merge from rustc

    The Miri Conjob Bot committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    d11a2bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    39c714b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a10b3cd View commit details
    Browse the repository at this point in the history
  5. remove redundant clone

    matthiaskrgr committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    80ee0c0 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#3253 - matthiaskrgr:noclone, r=RalfJung

    remove redundant clone
    bors committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    d334a4b View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2024

  1. Preparing for merge from rustc

    The Miri Conjob Bot committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    7e4e9ad View commit details
    Browse the repository at this point in the history
  2. Merge from rustc

    The Miri Conjob Bot committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    078f228 View commit details
    Browse the repository at this point in the history
  3. fmt

    The Miri Conjob Bot committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    46f53c8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1c98b78 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    58c80a0 View commit details
    Browse the repository at this point in the history
  6. these should be exact

    RalfJung committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    ac4526d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0814a56 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    643e7f0 View commit details
    Browse the repository at this point in the history
  9. cargo update

    RalfJung committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    66b15ae View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2024

  1. Configuration menu
    Copy the full SHA
    b8209e2 View commit details
    Browse the repository at this point in the history
  2. only use jemalloc on Unix

    RalfJung committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    c4a11ea View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#3259 - RalfJung:jemalloc, r=RalfJung

    use jemalloc as global allocator
    
    Hopefully fixes rust-lang/miri#3255
    bors committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    d93ca6e View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#3256 - RalfJung:rounding, r=RalfJung

    implement the rounding intrinsics using apfloat rounding
    
    No reason to use host floats for these. Also merge two files that were both testing various float things.
    bors committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    8675aa1 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#3257 - RalfJung:build-tests, r=RalfJung

    ./miri build: also build tests, to avoid rebuilds later
    bors committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    6f017d2 View commit details
    Browse the repository at this point in the history
  6. Adding alignment to the list of cases to test for specific error mess…

    …age. Covers `>`, `^` and `<`.
    madsravn committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    5b30586 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7d5de70 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#3260 - saethlin:build-all-tier-2, r=RalfJung

    Check if tier 2 targets build in the nightly cron job
    
    This PR adds a CI job that only runs nightly which will install Miri built from the latest commit, and try to build every Tier 2 without host tools target, as documented on https://doc.rust-lang.org/nightly/rustc/platform-support.html.
    
    I'm not really excited about the idea of scraping the tier 2 without host tools list, but also keeping the list up-to-date by hand seems prone to forgetting to update it. And that update seems like the sort of manual maintenance we should automate.
    bors committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    d475e62 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. Rename pointer field on Pin

    The internal, unstable field of `Pin` can conflict with fields from the
    inner type accessed via the `Deref` impl. Rename it from `pointer` to
    `__pointer`, to make it less likely to conflict with anything else.
    LegionMammal978 committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    985402d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    56ff1b8 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#3261 - RalfJung:jemalloc, r=RalfJung

    only use jemalloc on Linux and macOS
    
    hopefully fixes [this](rust-lang#119707 (comment))
    bors committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    8d4a5c7 View commit details
    Browse the repository at this point in the history
  4. update lockfile

    RalfJung committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    0ddccf9 View commit details
    Browse the repository at this point in the history
  5. enable RUSTC_BOOTSTRAP on panic=abort mir-opt test

    Signed-off-by: onur-ozkan <[email protected]>
    onur-ozkan committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    8aa7dd0 View commit details
    Browse the repository at this point in the history
  6. detect user-specified custom targets in compiletest

    Signed-off-by: onur-ozkan <[email protected]>
    onur-ozkan committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    26c71cb View commit details
    Browse the repository at this point in the history
  7. fix the incorrect target on stage1 ui-fulldeps tests

    Signed-off-by: onur-ozkan <[email protected]>
    onur-ozkan committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    b888e2f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8abf133 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    506c066 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#117744 - quininer:add-z-sync-uw, r=bjorn3

    Add -Zuse-sync-unwind
    
    Currently Rust uses async unwind by default, but async unwind will bring non-negligible size overhead. it would be nice to allow users to choose this.
    
    In addition, async unwind currently prevents LLVM from generate compact unwind for MachO, if one wishes to generate compact unwind for MachO, then also needs this flag.
    matthiaskrgr authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    c572326 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#118649 - compiler-errors:coherence-ambig, r…

    …=lcnr
    
    Make inductive cycles in coherence ambiguous always
    
    Logical conclusion of rust-lang#114040
    One step after rust-lang#116493
    
    cc rust-lang/trait-system-refactor-initiative#20
    
    r? lcnr to kick off the FCP after review... maybe we should wait until 1.75 is landed? In that case, I'd still like to get the FCP boxes checked sooner since that'll be near the holidays which means everyone's away.
    matthiaskrgr authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    51427de View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#118979 - ChrisDenton:unwrap-const, r=Nilstr…

    …ieb,dtolnay
    
    Use `assert_unsafe_precondition` for `char::from_u32_unchecked`
    
    Use `assert_unsafe_precondition` in `char::from_u32_unchecked` so that it can be stabilized as `const`.
    matthiaskrgr authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    bb2b77a View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#119562 - LegionMammal978:rename-pin-pointer…

    …, r=Amanieu
    
    Rename `pointer` field on `Pin`
    
    A few days ago, I was helping another user create a self-referential type using `PhantomPinned`. However, I noticed an odd behavior when I tried to access one of the type's fields via `Pin`'s `Deref` impl:
    
    ```rust
    use std::{marker::PhantomPinned, ptr};
    
    struct Pinned {
        data: i32,
        pointer: *const i32,
        _pin: PhantomPinned,
    }
    
    fn main() {
        let mut b = Box::pin(Pinned {
            data: 42,
            pointer: ptr::null(),
            _pin: PhantomPinned,
        });
        {
            let pinned = unsafe { b.as_mut().get_unchecked_mut() };
            pinned.pointer = &pinned.data;
        }
        println!("{}", unsafe { *b.pointer });
    }
    ```
    
    ```rust
    error[E0658]: use of unstable library feature 'unsafe_pin_internals'
      --> <source>:19:30
       |
    19 |     println!("{}", unsafe { *b.pointer });
       |                              ^^^^^^^^^
    
    error[E0277]: `Pinned` doesn't implement `std::fmt::Display`
      --> <source>:19:20
       |
    19 |     println!("{}", unsafe { *b.pointer });
       |                    ^^^^^^^^^^^^^^^^^^^^^ `Pinned` cannot be formatted with the default formatter
       |
       = help: the trait `std::fmt::Display` is not implemented for `Pinned`
       = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
       = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
    ```
    
    Since the user named their field `pointer`, it conflicts with the `pointer` field on `Pin`, which is public but unstable since Rust 1.60.0 with rust-lang#93176. On versions from 1.33.0 to 1.59.0, where the field on `Pin` is private, this program compiles and prints `42` as expected.
    
    To avoid this confusing behavior, this PR renames `pointer` to `__pointer`, so that it's less likely to conflict with a `pointer` field on the underlying type, as accessed through the `Deref` impl. This is technically a breaking change for anyone who names their field `__pointer` on the inner type; if this is undesirable, it could be renamed to something more longwinded. It's also a nightly breaking change for any external users of `unsafe_pin_internals`.
    matthiaskrgr authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    b6d9423 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#119619 - onur-ozkan:panic-abort-mir-opt, r=…

    …oli-obk
    
    mir-opt and custom target fixes
    
    From rust-lang#115642 (comment)
    
    > > Could you please test the last two commits from https://github.com/onur-ozkan/rust/commits/panic-abort-mir-opt when you have the time? The first commit should resolve the error of using the nightly flag with a stable compiler, and the second one should resolve the custom target issue.
    
    > I tested with the two commits and the errors of using nightly flag and custom target specs were not seen.
    Testing was completed for the test suites like ui, run-pass-valgrind, coverage, mir-opt, codegen, assembly, incremental.
    
    Fixes rust-lang#115642
    matthiaskrgr authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    d39a8b0 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#119632 - ivmarkov:master, r=Nilstrieb,dtolnay

    Fix broken build for ESP IDF due to rust-lang#119026
    
    `target_os = "espidf"` in `libc` lacks the `SOMAXCONN` constant, but that's probably irrelevant in this context, as `UnixListener` is not supported on ESP IDF - it being a single process "OS" only.
    
    The PR just re-uses the `128` constant so that the code builds. Trying to use the listener on ESP IDF will fail with `ENOSYS`, which is fine.
    
    *UPDATE* Might not fail with `ENOSYS` - need to test what error code would be returned, but that doesn`t change anything.
    matthiaskrgr authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    9204358 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#119712 - madsravn:parsing-errors, r=estebank

    Adding alignment to the cases to test for specific error messages.
    
    Adding alignment to the list of cases to test for specific error message. Covers `>`, `^` and `<`.
    
    Pinging people who chimed in last time ( rust-lang#106805 ): `@estebank` , `@compiler-errors` and `@Nilstrieb`
    matthiaskrgr authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    7d5c7d4 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#119734 - RalfJung:miri, r=RalfJung

    Miri subtree update
    
    r? `@ghost`
    matthiaskrgr authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    201173f View commit details
    Browse the repository at this point in the history