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

Merged
merged 24 commits into from
Jul 1, 2024
Merged

Rollup of 8 pull requests #127216

merged 24 commits into from
Jul 1, 2024

Commits on Jun 20, 2024

  1. Configuration menu
    Copy the full SHA
    bb00657 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1031d4d View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2024

  1. Configuration menu
    Copy the full SHA
    614e042 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    56fe015 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    189232b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    68b6bb2 View commit details
    Browse the repository at this point in the history
  5. Refactor wasm-abi to use cmd

    Rejyr committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    0c1df37 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2ef2699 View commit details
    Browse the repository at this point in the history
  7. Stabilize duration_abs_diff

    elomatreb committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    7f383d0 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Configuration menu
    Copy the full SHA
    583b5fc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5b97dc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fcfac05 View commit details
    Browse the repository at this point in the history
  4. improve the way bootstrap handles rustlib components

    When CI rustc is enabled, bootstrap tries to symlink the rust source (project root)
    into target sysroot right before copying it from the CI rustc's sysroot. This becomes
    a problem in CI builders (which we currently don't see because they don't use CI rustc)
    because the copying part will fail as they run on read-only mode.
    
    This change fixes the problem by copying `rustc-src` from the CI rustc sysroot and only symlinking
    `rustc-src` from the rust source when download-rustc is not enabled.
    
    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    fe6f3fa View commit details
    Browse the repository at this point in the history
  5. fail on component linking errors

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    97415ce View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    af31c33 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5f9a0d3 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#126732 - StackOverflowExcept1on:master, r=m…

    …-ou-se
    
    Stabilize `PanicInfo::message()` and `PanicMessage`
    
    Resolves rust-lang#66745
    
    This stabilizes the [`PanicInfo::message()`](https://doc.rust-lang.org/nightly/core/panic/struct.PanicInfo.html#method.message) and [`PanicMessage`](https://doc.rust-lang.org/nightly/core/panic/struct.PanicMessage.html).
    
    Demonstration of [custom panic handler](https://github.com/StackOverflowExcept1on/panicker):
    ```rust
    #![no_std]
    #![no_main]
    
    extern crate libc;
    
    #[no_mangle]
    extern "C" fn main() -> libc::c_int {
        panic!("I just panic every time");
    }
    
    #[panic_handler]
    fn my_panic(panic_info: &core::panic::PanicInfo) -> ! {
        use arrayvec::ArrayString;
        use core::fmt::Write;
    
        let message = panic_info.message();
        let location = panic_info.location().unwrap();
    
        let mut debug_msg = ArrayString::<1024>::new();
        let _ = write!(&mut debug_msg, "panicked with '{message}' at '{location}'");
    
        if debug_msg.try_push_str("\0").is_ok() {
            unsafe {
                libc::puts(debug_msg.as_ptr() as *const _);
            }
        }
    
        unsafe { libc::exit(libc::EXIT_FAILURE) }
    }
    ```
    ```
    $ cargo +stage1 run --release
    panicked with 'I just panic every time' at 'src/main.rs:8:5'
    ```
    
    - [x] FCP: rust-lang#66745 (comment)
    
    r? libs-api
    GuillaumeGomez authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    61db24d View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#126753 - compiler-errors:use-style-guide, r…

    …=joshtriplett,calebcartwright
    
    Add nightly style guide section for `precise_capturing` `use<>` syntax
    
    r? style
    
    Tracking:
    
    - rust-lang#123432
    GuillaumeGomez authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    c4baa3f View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#126832 - petrochenkov:linkarg, r=jieyouxu

    linker: Refactor interface for passing arguments to linker
    
    Separate arguments into passed to the underlying linker, to cc wrapper, or supported by both.
    Also avoid allocations in all the argument passing functions.
    
    The interfaces would look nicer if not the limitations on returning `&mut Self` in `dyn`-compatible traits, and unnecessary conflicts between `Trait` and `dyn Trait` methods.
    
    try-job: armhf-gnu
    try-job: aarch64-gnu
    try-job: dist-x86_64-linux
    try-job: x86_64-msvc
    try-job: i686-msvc
    try-job: dist-x86_64-apple
    try-job: test-various
    GuillaumeGomez authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    6b2e644 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#126880 - Rejyr:migrate-rmake-vw, r=Kobzol

    Migrate `volatile-intrinsics`, `weird-output-filenames`, `wasm-override-linker`, `wasm-exceptions-nostd` to `rmake`
    
    Also refactors `wasm-abi` and `compressed-debuginfo`.
    
    Part of rust-lang#121876.
    
    r? ``@jieyouxu``
    
    try-job: x86_64-gnu-debug
    try-job: dist-various-2
    GuillaumeGomez authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    61e7f05 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#127128 - elomatreb:elomatreb/stabilize-dura…

    …tion_abs_diff, r=joboet
    
    Stabilize `duration_abs_diff`
    
    Stabilize `duration_abs_diff` following FCP in rust-lang#117618. Closes rust-lang#117618.
    GuillaumeGomez authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    f5810c4 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#127129 - compiler-errors:full-expr-span, r=…

    …jieyouxu
    
    Use full expr span for return suggestion on type error/ambiguity
    
    We sometimes use parts of an expression rather than the whole thing for an obligation span. For example, a method obligation will just point to the path segment corresponding to the `method` in `rcvr.method(args)`.
    
    So let's not use that assuming it'll point to the *whole* expression span, which we can access from the expr hir id we store in `ObligationCauseCode::WhereClauseInExpr`.
    
    Fixes rust-lang#127109
    GuillaumeGomez authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    61fe6b6 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#127188 - onur-ozkan:rustc-src-fix, r=Kobzol

     improve the way bootstrap handles rustlib components
    
    When CI rustc is enabled, bootstrap tries to symlink the rust source (project root) into target sysroot right before copying it from the CI rustc's sysroot. This becomes a problem in CI builders (which we currently don't see because they don't use CI rustc) because the copying part will fail as [they run on read-only mode](https://github.com/rust-lang/rust/blob/ef3d6fd7002500af0a985f70d3ac5152623c1396/src/ci/docker/run.sh#L233).
    
    This change fixes the problem by copying `rustc-src` from the CI rustc sysroot and only symlinking `rustc-src` from the rust source when download-rustc is not enabled.
    
    r? ``@Kobzol`` (we talked about this already on Zulip, he knows the context)
    
    Blocker for rust-lang#122709
    GuillaumeGomez authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    cb81d0d View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#127201 - GuillaumeGomez:improve-run-make-su…

    …pport, r=Kobzol
    
    Improve run-make-support API
    
    I think I'll slowly continue this work. Makes things a bit nicer for contributors, so why not. :D
    
    r? ``@Kobzol``
    GuillaumeGomez authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    a509b5a View commit details
    Browse the repository at this point in the history