Skip to content

Rollup of 10 pull requests#157975

Closed
JonathanBrouwer wants to merge 24 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-1eD5owz
Closed

Rollup of 10 pull requests#157975
JonathanBrouwer wants to merge 24 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-1eD5owz

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Contributor

Successful merges:

r? @ghost

Create a similar rollup

kpreid and others added 24 commits May 25, 2026 16:24
Fixes <rust-lang#147714>.

The changes in `const_to_pat.rs` are entirely to avoid regressing
diagnostic quality, and should not make any difference to what code is
accepted. The change in `compute_applicable_impls_for_diagnostics`
and its callers is entirely to be able to reuse that algorithm for this
purpose.
In rust interger divide by zero is defined to panic, thus the inserted
conditional trap should never trigger as the program should have
panicked if the divisor is zero.

So disable the insertion of the redundant conditional trap.
Co-authored-by: Jesus Checa <101630491+jchecahi@users.noreply.github.com>
* fix(rustc_codegen_ssa): Use cg_operand for Freeze check
* chore: remove unnecessary comment
* test: add test for ssa rval monomorphization issue
* fix: move ssa-rval-monomorphization test
* tweak comment

Co-authored-by: Ralf Jung <post@ralfj.de>
…bjorn3

export symbols: support macos/windows(32/64)

Previously, in the pr rust-lang#150992 , export symbols only supported Linux. The special prefix and suffix rules for some symbols in macOS and Windows were not fully supported. This pull request attempts to clarify these rules and add corresponding support.

Currently, the `undecorate_c_symbol()` function has been added to handle macOS `_` prefixes, Windows x86 calling convention modifiers (cdecl/stdcall/fastcall/vectorcall), and Arm64EC `#` prefixes.

*Update: Handling of Windows C++ mangled symbols has now been added(Linux/macOS don't need).

r? @bjorn3 @petrochenkov
…liasTerm, r=lcnr

Refactor `AliasTy`. `AliasTerm` & `UnevaluatedConst` to use `Alias`

Refactors `AliasTy`, `AliasTerm` & `UnevaluatedConst` to use `Alias`.

Part of rust-lang#156181

r? @lcnr
Add `T: PartialEq` bounds to derived `StructuralPartialEq` impls.

Fixes <rust-lang#147714>.

This is a breaking change to fix a bug, so it will need a crater run if it is to be done at all.

The changes in `const_to_pat.rs` are entirely to avoid regressing diagnostic quality, and should not make any difference to what code is accepted. The changes in `compute_applicable_impls_for_diagnostics` and its callers are entirely to be able to reuse that algorithm for this purpose.

@rustbot label +T-lang
…-symbols, r=petrochenkov

Staticlib rename internal symbols

Follow-up to rust-lang#155338.

`-Zstaticlib-rename-internal-symbols` appends a crate-specific suffix (`_rs{StableCrateId}`) to non-exported symbols, resolving duplicate symbol conflicts when linking multiple Rust staticlibs into the same binary.

The implementation collects all defined `GLOBAL/WEAK` symbol names not in the exported set across all .o files, then renames them by extending the strtab and patching symbol name offsets. When combined with `-Zstaticlib-hide-internal-symbols`, the renamed symbols also receive `STV_HIDDEN` visibility.

Supported on ELF targets (Linux, BSD, etc.) and Apple targets (macOS, iOS, etc.). On unsupported targets (Windows), a warning is emitted and the flag has no effect.

r?@bjorn3 @petrochenkov
…info, r=davidtwco,estebank

Add expansion info to implied bounds

r? @estebank maybe?

cc @davidtwco for implied bound diagnostics

We used to have various fun ways for testing whether a `Sized` bound was implicit or not (usually by checking if the span was equal to the span of a generic parameter). That felt a bit hacky, so I checked what happens if we explicitly mark the span as being desugared. Turns out a lot of diagnostics break. You can see in the diff where I changed things to make them work again.

Then it became clear that we were missing out on various other implied bound sites, and we just got all of them basically for free now.

I think there are various other good refactorings we can do (probably not special casing `Sized` and not special casing implied bound desugarings, but just reporting all desugarings), but for now this PR is in a state where I'd rather merge it than add more to it
…-vec, r=oli-obk

constify `TryFrom<Vec>` for array

Related issues rust-lang#79597, rust-lang#143773, rust-lang#133214

this makes `Vec` `const Destruct` along the way.
…80, r=lcnr

diagnostics: point to coroutine body on higher-ranked auto trait errors

Fixes rust-lang#155880

When encountering a higher-ranked auto trait bound error involving a coroutine or async function,the trait solver previously used the span of the outermost cause (eg. `spawn(...)` or `is_send(...)`).

This PR modifies the `TraitPlaceholderMismatch` formatting logic to walk down the `ObligationCauseCode` chain.If the obligation originates from a `ty::Coroutine` or `ty::CoroutineWitness`, it extracts that specific span, providing a much more accurate underline for the user.

#### Before:
```text
error: implementation of `Send` is not general enough
  --> src/main.rs:25:5
   |
25 |     is_send(outer())
   |     ^^^^^^^^^^^^^^^^ implementation of `Send` is not general enough
```

#### After:
```text
error: implementation of `Send` is not general enough
  --> src/main.rs:13:74
   |
13 |   async fn inner<'a, T: Trait + 'a>(_: T, x: T::Assoc<'a>) -> T::Assoc<'a> {
   |  __________________________________________________________________________^
14 | |     std::future::ready(x).await
15 | | }
   | |_^ implementation of `Send` is not general enough
```
…=folkertdev

mips: set llvm_args -mno-check-zero-division for all mips targets

In rust interger divide by zero is defined to panic, thus the inserted conditional trap should never trigger as the program should have panicked if the divisor is zero.

So disable the insertion of the redundant conditional trap.
… r=RalfJung

fix(rustc_codegen_ssa): Use cg_operand for Freeze check

Hi, this is my first contribution, so please forgive my incorrect conventions...
I found that rust-lang#157922 is simple issue.

Fixes rust-lang#157922

## Cause of issue

In `rustc_codegen_ssa/src/mir/rvalue.rs`, `Freeze` check is called for non-monomorphized operand pointee type of `RValue`.
Before this method call, there is already called `codegen_operand` method for the operand, so I use this for `Freeze` check.
…=JonathanBrouwer

doc: Document `-Zlint-rust-version`

Followup to rust-lang#157707
Tracking issue: rust-lang#157574

r? JonathanBrouwer
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Jun 16, 2026
@rustbot rustbot added A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Jun 16, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Contributor Author

@bors r+ rollup=never p=5

@rust-bors

rust-bors Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 8b7720d has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 16, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Jun 16, 2026
…uwer

Rollup of 10 pull requests

Successful merges:

 - #155535 (export symbols: support macos/windows(32/64))
 - #156538 (Refactor `AliasTy`. `AliasTerm` & `UnevaluatedConst` to use `Alias`)
 - #156807 (Add `T: PartialEq` bounds to derived `StructuralPartialEq` impls.)
 - #156950 (Staticlib rename internal symbols)
 - #157702 (Add expansion info to implied bounds)
 - #155616 (constify `TryFrom<Vec>` for array)
 - #156226 (diagnostics: point to coroutine body on higher-ranked auto trait errors)
 - #157873 (mips: set llvm_args -mno-check-zero-division for all mips targets)
 - #157953 (fix(rustc_codegen_ssa): Use cg_operand for Freeze check)
 - #157958 (doc: Document `-Zlint-rust-version`)
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job x86_64-gnu-nopt failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
------FileCheck stderr------------------------------
/checkout/tests/assembly-llvm/mips-div-no-trap.rs:108:16: error: NOTRAP-NOT: excluded string found in input
// NOTRAP-NOT: teq
               ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-gnu/mips-div-no-trap.s:42:2: note: found here
 teq $1, $zero, 7
 ^~~

Input file: /checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-gnu/mips-div-no-trap.s
Check file: /checkout/tests/assembly-llvm/mips-div-no-trap.rs

-dump-input=help explains the following input dump.

Input was:
<<<<<<
         1:  .abicalls 
         2:  .section .mdebug.abi32,"",@progbits 
         3:  .nan legacy 
         4:  .module fp=xx 
         5:  .module nooddspreg 
         6:  .text 
         7:  .file "mips_div_no_trap.25b5cbac1ffdb393-cgu.0" 
         8:  .section .text.div_i32,"ax",@progbits 
         9:  .globl div_i32 
        10:  .p2align 2 
        11:  .type div_i32,@function 
        12:  .set nomicromips 
        13:  .set nomips16 
        14:  .ent div_i32 
        15: div_i32: 
        16:  .cfi_startproc 
        17:  .frame $sp,16,$ra 
        18:  .mask 0x00000000,0 
        19:  .fmask 0x00000000,0 
        20:  .set noreorder 
        21:  .set nomacro 
        22:  .set noat 
        23:  addiu $sp, $sp, -16 
        24:  .cfi_def_cfa_offset 16 
        25:  sw $4, 4($sp) 
        26:  sw $5, 8($sp) 
        27:  addiu $1, $zero, -1 
        28:  beq $4, $1, $BB0_6 
        29:  nop 
        30:  b $BB0_2 
        31:  nop 
        32: $BB0_2: 
        33:  lw $1, 4($sp) 
        34:  beqz $1, $BB0_5 
        35:  nop 
        36:  b $BB0_4 
        37:  nop 
        38: $BB0_4: 
        39:  lw $1, 8($sp) 
        40:  lw $2, 4($sp) 
        41:  div $zero, $2, $1 
        42:  teq $1, $zero, 7 
not:108      !~~               error: no match expected
        43:  mflo $1 
        44:  sw $1, 12($sp) 
        45:  b $BB0_10 
        46:  nop 
        47: $BB0_5: 
        48:  break 
        49: $BB0_6: 
        50:  lw $1, 8($sp) 
        51:  lui $2, 32768 
        52:  xor $1, $1, $2 
        53:  sltiu $1, $1, 1 
        54:  bgtz $1, $BB0_8 
        55:  nop 
        56:  b $BB0_9 
        57:  nop 
        58: $BB0_8: 
        59:  break 
        60: $BB0_9: 
        61:  lw $1, 8($sp) 
        62:  lw $2, 4($sp) 
        63:  div $zero, $2, $1 
        64:  teq $1, $zero, 7 
        65:  mflo $1 
        66:  sw $1, 12($sp) 
        67: $BB0_10: 
        68:  lw $2, 12($sp) 
        69:  addiu $sp, $sp, 16 
        70:  jr $ra 
        71:  nop 
        72:  .set at 
        73:  .set macro 
        74:  .set reorder 
        75:  .end div_i32 
        76: $func_end0: 
        77:  .size div_i32, $func_end0-div_i32 
        78:  .cfi_endproc 
        79:  
        80:  .ident "rustc version 1.98.0-nightly (c07313c5e 2026-06-16)" 
        81:  .section ".note.GNU-stack","",@progbits 
        82:  .text 
>>>>>>

------------------------------------------

error in revision `mips-unknown-linux-gnu`: verification with 'FileCheck' failed
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" "--input-file" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-gnu/mips-div-no-trap.s" "/checkout/tests/assembly-llvm/mips-div-no-trap.rs" "--check-prefix=CHECK" "--check-prefix" "mips-unknown-linux-gnu" "--allow-unused-prefixes" "--dump-input-context" "100" "--check-prefix" "NOTRAP"
stdout: none
--- stderr -------------------------------
/checkout/tests/assembly-llvm/mips-div-no-trap.rs:108:16: error: NOTRAP-NOT: excluded string found in input
// NOTRAP-NOT: teq
               ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-gnu/mips-div-no-trap.s:42:2: note: found here
 teq $1, $zero, 7
 ^~~

Input file: /checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-gnu/mips-div-no-trap.s
Check file: /checkout/tests/assembly-llvm/mips-div-no-trap.rs

-dump-input=help explains the following input dump.

Input was:
<<<<<<
         1:  .abicalls 
         2:  .section .mdebug.abi32,"",@progbits 
         3:  .nan legacy 
         4:  .module fp=xx 
         5:  .module nooddspreg 
         6:  .text 
         7:  .file "mips_div_no_trap.25b5cbac1ffdb393-cgu.0" 
         8:  .section .text.div_i32,"ax",@progbits 
         9:  .globl div_i32 
        10:  .p2align 2 
        11:  .type div_i32,@function 
        12:  .set nomicromips 
        13:  .set nomips16 
        14:  .ent div_i32 
        15: div_i32: 
        16:  .cfi_startproc 
        17:  .frame $sp,16,$ra 
        18:  .mask 0x00000000,0 
        19:  .fmask 0x00000000,0 
        20:  .set noreorder 
        21:  .set nomacro 
        22:  .set noat 
        23:  addiu $sp, $sp, -16 
        24:  .cfi_def_cfa_offset 16 
        25:  sw $4, 4($sp) 
        26:  sw $5, 8($sp) 
        27:  addiu $1, $zero, -1 
        28:  beq $4, $1, $BB0_6 
        29:  nop 
        30:  b $BB0_2 
        31:  nop 
        32: $BB0_2: 
        33:  lw $1, 4($sp) 
        34:  beqz $1, $BB0_5 
        35:  nop 
        36:  b $BB0_4 
        37:  nop 
        38: $BB0_4: 
        39:  lw $1, 8($sp) 
        40:  lw $2, 4($sp) 
        41:  div $zero, $2, $1 
        42:  teq $1, $zero, 7 
not:108      !~~               error: no match expected
        43:  mflo $1 
        44:  sw $1, 12($sp) 
        45:  b $BB0_10 
        46:  nop 
        47: $BB0_5: 
        48:  break 
        49: $BB0_6: 
        50:  lw $1, 8($sp) 
        51:  lui $2, 32768 
        52:  xor $1, $1, $2 
        53:  sltiu $1, $1, 1 
        54:  bgtz $1, $BB0_8 
        55:  nop 
        56:  b $BB0_9 
        57:  nop 
        58: $BB0_8: 
        59:  break 
        60: $BB0_9: 
        61:  lw $1, 8($sp) 
        62:  lw $2, 4($sp) 
        63:  div $zero, $2, $1 
        64:  teq $1, $zero, 7 
        65:  mflo $1 
        66:  sw $1, 12($sp) 
        67: $BB0_10: 
        68:  lw $2, 12($sp) 
        69:  addiu $sp, $sp, 16 
        70:  jr $ra 
        71:  nop 
        72:  .set at 
        73:  .set macro 
        74:  .set reorder 
        75:  .end div_i32 
        76: $func_end0: 
        77:  .size div_i32, $func_end0-div_i32 
        78:  .cfi_endproc 
        79:  
        80:  .ident "rustc version 1.98.0-nightly (c07313c5e 2026-06-16)" 
        81:  .section ".note.GNU-stack","",@progbits 
        82:  .text 
>>>>>>
------------------------------------------

---- [assembly] tests/assembly-llvm/mips-div-no-trap.rs#mips-unknown-linux-gnu stdout end ----
---- [assembly] tests/assembly-llvm/mips-div-no-trap.rs#mips-unknown-linux-musl stdout ----
------FileCheck stdout------------------------------

------FileCheck stderr------------------------------
/checkout/tests/assembly-llvm/mips-div-no-trap.rs:108:16: error: NOTRAP-NOT: excluded string found in input
// NOTRAP-NOT: teq
               ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-musl/mips-div-no-trap.s:41:2: note: found here
 teq $1, $zero, 7
 ^~~

Input file: /checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-musl/mips-div-no-trap.s
Check file: /checkout/tests/assembly-llvm/mips-div-no-trap.rs

-dump-input=help explains the following input dump.

Input was:
<<<<<<
         1:  .abicalls 
         2:  .section .mdebug.abi32,"",@progbits 
         3:  .nan legacy 
         4:  .module softfloat 
         5:  .text 
         6:  .file "mips_div_no_trap.25b5cbac1ffdb393-cgu.0" 
         7:  .section .text.div_i32,"ax",@progbits 
         8:  .globl div_i32 
         9:  .p2align 2 
        10:  .type div_i32,@function 
        11:  .set nomicromips 
        12:  .set nomips16 
        13:  .ent div_i32 
        14: div_i32: 
        15:  .cfi_startproc 
        16:  .frame $sp,16,$ra 
        17:  .mask 0x00000000,0 
        18:  .fmask 0x00000000,0 
        19:  .set noreorder 
        20:  .set nomacro 
        21:  .set noat 
        22:  addiu $sp, $sp, -16 
        23:  .cfi_def_cfa_offset 16 
        24:  sw $4, 4($sp) 
        25:  sw $5, 8($sp) 
        26:  addiu $1, $zero, -1 
        27:  beq $4, $1, $BB0_6 
        28:  nop 
        29:  b $BB0_2 
        30:  nop 
        31: $BB0_2: 
        32:  lw $1, 4($sp) 
        33:  beqz $1, $BB0_5 
        34:  nop 
        35:  b $BB0_4 
        36:  nop 
        37: $BB0_4: 
        38:  lw $1, 8($sp) 
        39:  lw $2, 4($sp) 
        40:  div $zero, $2, $1 
        41:  teq $1, $zero, 7 
not:108      !~~               error: no match expected
        42:  mflo $1 
        43:  sw $1, 12($sp) 
        44:  b $BB0_10 
        45:  nop 
        46: $BB0_5: 
        47:  break 
        48: $BB0_6: 
        49:  lw $1, 8($sp) 
        50:  lui $2, 32768 
        51:  xor $1, $1, $2 
        52:  sltiu $1, $1, 1 
        53:  bgtz $1, $BB0_8 
        54:  nop 
        55:  b $BB0_9 
        56:  nop 
        57: $BB0_8: 
        58:  break 
        59: $BB0_9: 
        60:  lw $1, 8($sp) 
        61:  lw $2, 4($sp) 
        62:  div $zero, $2, $1 
        63:  teq $1, $zero, 7 
        64:  mflo $1 
        65:  sw $1, 12($sp) 
        66: $BB0_10: 
        67:  lw $2, 12($sp) 
        68:  addiu $sp, $sp, 16 
        69:  jr $ra 
        70:  nop 
        71:  .set at 
        72:  .set macro 
        73:  .set reorder 
        74:  .end div_i32 
        75: $func_end0: 
        76:  .size div_i32, $func_end0-div_i32 
        77:  .cfi_endproc 
        78:  
        79:  .ident "rustc version 1.98.0-nightly (c07313c5e 2026-06-16)" 
        80:  .section ".note.GNU-stack","",@progbits 
        81:  .text 
>>>>>>

------------------------------------------

error in revision `mips-unknown-linux-musl`: verification with 'FileCheck' failed
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" "--input-file" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-musl/mips-div-no-trap.s" "/checkout/tests/assembly-llvm/mips-div-no-trap.rs" "--check-prefix=CHECK" "--check-prefix" "mips-unknown-linux-musl" "--allow-unused-prefixes" "--dump-input-context" "100" "--check-prefix" "NOTRAP"
stdout: none
--- stderr -------------------------------
/checkout/tests/assembly-llvm/mips-div-no-trap.rs:108:16: error: NOTRAP-NOT: excluded string found in input
// NOTRAP-NOT: teq
               ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-musl/mips-div-no-trap.s:41:2: note: found here
 teq $1, $zero, 7
 ^~~

Input file: /checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-musl/mips-div-no-trap.s
Check file: /checkout/tests/assembly-llvm/mips-div-no-trap.rs

-dump-input=help explains the following input dump.

Input was:
<<<<<<
         1:  .abicalls 
         2:  .section .mdebug.abi32,"",@progbits 
         3:  .nan legacy 
         4:  .module softfloat 
         5:  .text 
         6:  .file "mips_div_no_trap.25b5cbac1ffdb393-cgu.0" 
         7:  .section .text.div_i32,"ax",@progbits 
         8:  .globl div_i32 
         9:  .p2align 2 
        10:  .type div_i32,@function 
        11:  .set nomicromips 
        12:  .set nomips16 
        13:  .ent div_i32 
        14: div_i32: 
        15:  .cfi_startproc 
        16:  .frame $sp,16,$ra 
        17:  .mask 0x00000000,0 
        18:  .fmask 0x00000000,0 
        19:  .set noreorder 
        20:  .set nomacro 
        21:  .set noat 
        22:  addiu $sp, $sp, -16 
        23:  .cfi_def_cfa_offset 16 
        24:  sw $4, 4($sp) 
        25:  sw $5, 8($sp) 
        26:  addiu $1, $zero, -1 
        27:  beq $4, $1, $BB0_6 
        28:  nop 
        29:  b $BB0_2 
        30:  nop 
        31: $BB0_2: 
        32:  lw $1, 4($sp) 
        33:  beqz $1, $BB0_5 
        34:  nop 
        35:  b $BB0_4 
        36:  nop 
        37: $BB0_4: 
        38:  lw $1, 8($sp) 
        39:  lw $2, 4($sp) 
        40:  div $zero, $2, $1 
        41:  teq $1, $zero, 7 
not:108      !~~               error: no match expected
        42:  mflo $1 
        43:  sw $1, 12($sp) 
        44:  b $BB0_10 
        45:  nop 
        46: $BB0_5: 
        47:  break 
        48: $BB0_6: 
        49:  lw $1, 8($sp) 
        50:  lui $2, 32768 
        51:  xor $1, $1, $2 
        52:  sltiu $1, $1, 1 
        53:  bgtz $1, $BB0_8 
        54:  nop 
        55:  b $BB0_9 
        56:  nop 
        57: $BB0_8: 
        58:  break 
        59: $BB0_9: 
        60:  lw $1, 8($sp) 
        61:  lw $2, 4($sp) 
        62:  div $zero, $2, $1 
        63:  teq $1, $zero, 7 
        64:  mflo $1 
        65:  sw $1, 12($sp) 
        66: $BB0_10: 
        67:  lw $2, 12($sp) 
        68:  addiu $sp, $sp, 16 
        69:  jr $ra 
        70:  nop 
        71:  .set at 
        72:  .set macro 
        73:  .set reorder 
        74:  .end div_i32 
        75: $func_end0: 
        76:  .size div_i32, $func_end0-div_i32 
        77:  .cfi_endproc 
        78:  
        79:  .ident "rustc version 1.98.0-nightly (c07313c5e 2026-06-16)" 
        80:  .section ".note.GNU-stack","",@progbits 
        81:  .text 
>>>>>>
------------------------------------------

---- [assembly] tests/assembly-llvm/mips-div-no-trap.rs#mips-unknown-linux-musl stdout end ----
---- [assembly] tests/assembly-llvm/mips-div-no-trap.rs#mips-unknown-linux-uclibc stdout ----
------FileCheck stdout------------------------------

------FileCheck stderr------------------------------
/checkout/tests/assembly-llvm/mips-div-no-trap.rs:108:16: error: NOTRAP-NOT: excluded string found in input
// NOTRAP-NOT: teq
               ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-uclibc/mips-div-no-trap.s:41:2: note: found here
 teq $1, $zero, 7
 ^~~

Input file: /checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly-llvm/mips-div-no-trap.mips-unknown-linux-uclibc/mips-div-no-trap.s
Check file: /checkout/tests/assembly-llvm/mips-div-no-trap.rs

-dump-input=help explains the following input dump.

Input was:
<<<<<<
         1:  .abicalls 
         2:  .section .mdebug.abi32,"",@progbits 
         3:  .nan legacy 
         4:  .module softfloat 
         5:  .text 
         6:  .file "mips_div_no_trap.25b5cbac1ffdb393-cgu.0" 
         7:  .section .text.div_i32,"ax",@progbits 
         8:  .globl div_i32 
         9:  .p2align 2 
        10:  .type div_i32,@function 
        11:  .set nomicromips 
        12:  .set nomips16 
        13:  .ent div_i32 
        14: div_i32: 
        15:  .cfi_startproc 
        16:  .frame $sp,16,$ra 
        17:  .mask 0x00000000,0 
        18:  .fmask 0x00000000,0 
        19:  .set noreorder 
        20:  .set nomacro 
        21:  .set noat 
        22:  addiu $sp, $sp, -16 
        23:  .cfi_def_cfa_offset 16 
        24:  sw $4, 4($sp) 
        25:  sw $5, 8($sp) 
        26:  addiu $1, $zero, -1 
        27:  beq $4, $1, $BB0_6 
        28:  nop 
        29:  b $BB0_2 
        30:  nop 
        31: $BB0_2: 
        32:  lw $1, 4($sp) 
        33:  beqz $1, $BB0_5 
        34:  nop 
        35:  b $BB0_4 
        36:  nop 
        37: $BB0_4: 
        38:  lw $1, 8($sp) 
        39:  lw $2, 4($sp) 
        40:  div $zero, $2, $1 
        41:  teq $1, $zero, 7 
not:108      !~~               error: no match expected
        42:  mflo $1 
        43:  sw $1, 12($sp) 
        44:  b $BB0_10 
        45:  nop 
        46: $BB0_5: 
        47:  break 
        48: $BB0_6: 
        49:  lw $1, 8($sp) 
        50:  lui $2, 32768 
        51:  xor $1, $1, $2 
        52:  sltiu $1, $1, 1 
        53:  bgtz $1, $BB0_8 
        54:  nop 
        55:  b $BB0_9 
        56:  nop 
        57: $BB0_8: 
        58:  break 
        59: $BB0_9: 
        60:  lw $1, 8($sp) 
        61:  lw $2, 4($sp) 
        62:  div $zero, $2, $1 
        63:  teq $1, $zero, 7 
        64:  mflo $1 

@rust-bors rust-bors Bot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 16, 2026
@rust-bors

rust-bors Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

💔 Test for c07313c failed: CI. Failed job:

@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 16, 2026
@rust-bors

rust-bors Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

PR #157873, which is a member of this rollup, was unapproved.

@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-run-make Area: port run-make Makefiles to rmake.rs rollup A PR which is a rollup T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.