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 10 pull requests #137019

Closed
wants to merge 23 commits into from

Conversation

workingjubilee
Copy link
Member

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

japaric and others added 23 commits January 20, 2025 17:04
This fixes the issues described in
rust-lang#136102. Primarily, this
resolves some issues with how the documentation for the prelude is
generated:

- It avoids showing "unstable" for macros in the prelude that are
  actually stable.
- Avoids duplication of some pages due to the previous lack of
  `doc(no_inline)`.
- Makes the different edition preludes consistent, and sets a pattern
  that can be used by future editions.

We may need to rearrange these modules in the future if we decide to
remove anything from the prelude again. If we do, I think we should look
into a different solution that avoids the documentation problems.
Use the existing `fill` methods on slices instead of manually
writing the fill loop.
In the deferred initialization pattern, the docs were needlessly going
through as_mut_ptr().write() to initialize, which is unnecessary use of
a pointer, needs to be inside an unsafe block, and may weaken alias
analysis.
`rustc_mir_dataflow/src/elaborate_drops.rs` contains some infrastructure
used by a few MIR passes: the `elaborate_drop` function, the
`DropElaborator` trait, etc.

`rustc_mir_transform/src/elaborate_drops.rs` (same file name, different
crate) contains the `ElaborateDrops` pass. It relies on a lot of the
infrastructure from `rustc_mir_dataflow/src/elaborate_drops.rs`.

It turns out that the drop infrastructure is only used in
`rustc_mir_transform`, so this commit moves it there. (The only
exception is the small `DropFlagState` type, which is moved to the
existing `rustc_mir_dataflow/src/drop_flag_effects.rs`.) The file is
renamed from `rustc_mir_dataflow/src/elaborate_drops.rs` to
`rustc_mir_transform/src/elaborate_drop.rs` (with no trailing `s`)
because (a) the `elaborate_drop` function is the most important export,
and (b) `rustc_mir_transform/src/elaborate_drops.rs` already exists.

All the infrastructure pieces that used to be `pub` are now
`pub(crate)`, because they are now only used within
`rustc_mir_transform`.
Because it's only used in `rustc_mir_transform`. (Presumably it is
currently in `rustc_middle` because lots of other MIR-related stuff is,
but that's not a hard requirement.) And because `rustc_middle` is huge
and it's always good to make it smaller.
…bilee

account for `c_enum_min_bits` in `multiple-reprs` UI test

fixes rust-lang#135777
Correct comment for FreeBSD and DragonFly BSD in unix/thread
…ratt

Remove the common prelude module

This fixes the issues described in rust-lang#136102. Primarily, this resolves some issues with how the documentation for the prelude is generated:

- It avoids showing "unstable" for macros in the prelude that are actually stable.
- Avoids duplication of some pages due to the previous lack of `doc(no_inline)`.
- Makes the different edition preludes consistent, and sets a pattern that can be used by future editions.

We may need to rearrange these modules in the future if we decide to remove anything from the prelude again. If we do, I think we should look into a different solution that avoids the documentation problems.

Closes rust-lang#136102
…heck, r=workingjubilee

Remove `:` from `stack-protector-heuristics-effect.rs` Filecheck Pattern

With function sections, the assembly label does not necessarily end in `:`.

Remove trailing `:` to be more consistent with the rest of the existing Filecheck patterns.
```
// CHECK-LABEL: local_string_addr_taken
#[no_mangle]
pub fn local_string_addr_taken(f: fn(&String)) {
    let x = String::new();
    f(&x);
```
…nt, r=estebank

Fix presentation of purely "additive" replacement suggestion parts

rust-lang#127541 changes replacement suggestions to use the "diff" view always, which I think is really verbose in cases where a replacement snippet is a "superset" of the snippet that is being replaced.

Consider:

```
LL -     Self::Baz: Clone,
LL +     Self::Baz: Clone, T: std::clone::Clone
```

In this code, we suggest replacing `", "` with `", T: std::clone::Clone"`. This is a consequence of how the snippet is constructed. I believe that since the string that is being replaced is a subset of the replacement string, it's not providing much value to present this as a diff. Users should be able to clearly understand what's being suggested here using the `~` underline view we've been suggesting for some time now.

Given that this affects ~100 tests out of the ~1000 UI tests affected, I expect this to be a pretty meaningful improvement of the fallout of rust-lang#127541.

---

In the last commit, this PR also "trims" replacement parts so that they are turned into their purely additive subset, if possible. See the diff for what this means.

---

r? estebank
Use `slice::fill` in `io::Repeat` implementation

Use the existing `fill` methods on slices instead of manually writing the fill loop.
…it, r=tgross35

alloc boxed: docs: use MaybeUninit::write instead of as_mut_ptr

In the deferred initialization pattern, the docs were needlessly going through `as_mut_ptr().write()` to initialize, which is unnecessary use of a pointer, needs to be inside an `unsafe` block, and may weaken alias analysis.
…compiler-errors

Emit MIR for each bit with on `dont_reset_cast_kind_without_updating_operand`

PR rust-lang#136450 introduced a diff that includes a pointer-sized alloc. This doesn't cause any problems on the compiler test suite but it affects the test suite that ferrocene has for `aarch64-unknown-none` as the snapshot of the diff only includes a 32-bit alloc even though this should be a 64-bit alloc on `aarch64-unknown-none`.

r? `@compiler-errors`
…_transform, r=oli-obk

Move code into `rustc_mir_transform`

I found two modules in other crates that are better placed in `rustc_mir_transform`, because that's the only crate that uses them.

r? `@matthewjasper`
@rustbot rustbot added O-unix Operating system: Unix-like 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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels Feb 14, 2025
@workingjubilee
Copy link
Member Author

@bors r+ rollup=never p=5

@bors
Copy link
Contributor

bors commented Feb 14, 2025

📌 Commit 3aa627e has been approved by workingjubilee

It is now in the queue for this repository.

@bors bors 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 Feb 14, 2025
@bors
Copy link
Contributor

bors commented Feb 14, 2025

⌛ Testing commit 3aa627e with merge 5859464...

bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 14, 2025
…kingjubilee

Rollup of 10 pull requests

Successful merges:

 - rust-lang#135778 (account for `c_enum_min_bits` in `multiple-reprs` UI test)
 - rust-lang#136052 (Correct comment for FreeBSD and DragonFly BSD in unix/thread)
 - rust-lang#136886 (Remove the common prelude module)
 - rust-lang#136938 (Remove `:` from `stack-protector-heuristics-effect.rs` Filecheck Pattern)
 - rust-lang#136956 (add vendor directory to .gitignore)
 - rust-lang#136958 (Fix presentation of purely "additive" replacement suggestion parts)
 - rust-lang#136967 (Use `slice::fill` in `io::Repeat` implementation)
 - rust-lang#136976 (alloc boxed: docs: use MaybeUninit::write instead of as_mut_ptr)
 - rust-lang#137007 (Emit MIR for each bit with on `dont_reset_cast_kind_without_updating_operand`)
 - rust-lang#137008 (Move code into `rustc_mir_transform`)

r? `@ghost`
`@rustbot` modify labels: rollup
@rust-log-analyzer
Copy link
Collaborator

The job test-various failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
failures:

---- [assembly] tests/assembly/stack-protector/stack-protector-heuristics-effect.rs#all stdout ----

error in revision `all`: 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/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s" "/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs" "--check-prefix=CHECK" "--check-prefix" "all" "--allow-unused-prefixes" "--dump-input-context" "100"
--- stderr -------------------------------
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:25:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:7:19: note: scanning from here
 .functype emptyfn () -> ()
                  ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:8:12: note: possible intended match here
 .functype array_char (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:43:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:8:22: note: scanning from here
 .functype array_char (i32) -> ()
                     ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:9:12: note: possible intended match here
 .functype array_u8_1 (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:59:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:9:22: note: scanning from here
 .functype array_u8_1 (i32) -> ()
                     ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:10:12: note: possible intended match here
 .functype array_u8_small (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:76:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:10:26: note: scanning from here
 .functype array_u8_small (i32) -> ()
                         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:11:12: note: possible intended match here
 .functype array_u8_large (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:92:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:11:26: note: scanning from here
 .functype array_u8_large (i32) -> ()
                         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:12:17: note: possible intended match here
 .functype array_bytesizednewtype_9 (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:111:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:12:36: note: scanning from here
 .functype array_bytesizednewtype_9 (i32) -> ()
                                   ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:13:6: note: possible intended match here
 .functype local_var_addr_used_indirectly (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:138:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:13:42: note: scanning from here
 .functype local_var_addr_used_indirectly (i32) -> ()
                                         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:14:16: note: possible intended match here
 .functype local_string_addr_taken (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:154:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:14:35: note: scanning from here
 .functype local_string_addr_taken (i32) -> ()
                                  ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:15:35: note: possible intended match here
 .functype _ZN68_$LT$i32$u20$as$u20$stack_protector_heuristics_effect..SelfByRef$GT$1f17h8a33f408767eede6E (i32) -> (i32)
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:183:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:16:50: note: scanning from here
 .functype local_var_addr_taken_used_locally_only (i32, i32) -> ()
                                                 ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:17:6: note: possible intended match here
 .functype local_large_var_moved (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:220:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:17:33: note: scanning from here
 .functype local_large_var_moved (i32) -> ()
                                ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:18:22: note: possible intended match here
 .functype local_large_var_cloned (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:249:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:18:34: note: scanning from here
 .functype local_large_var_cloned (i32) -> ()
                                 ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:19:15: note: possible intended match here
 .functype alloca_small_compile_time_constant_arg (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:289:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:19:50: note: scanning from here
 .functype alloca_small_compile_time_constant_arg (i32) -> ()
                                                 ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:20:39: note: possible intended match here
 .functype alloca_large_compile_time_constant_arg (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:301:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:20:50: note: scanning from here
 .functype alloca_large_compile_time_constant_arg (i32) -> ()
                                                 ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:21:18: note: possible intended match here
 .functype alloca_dynamic_arg (i32, i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:313:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:21:30: note: scanning from here
 .functype alloca_dynamic_arg (i32, i32) -> ()
                             ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:22:12: note: possible intended match here
 .functype unsized_fn_param (i32, i32, i32, i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:340:10: error: all: expected string not found in input
 // all: __stack_chk_fail
         ^
         ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:22:28: note: scanning from here
 .functype unsized_fn_param (i32, i32, i32, i32) -> ()
                           ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s:23:12: note: possible intended match here
 .functype unsized_local (i32, i32, i32, i32) -> ()

Input file: /checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.all/stack-protector-heuristics-effect.s
Check file: /checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs


-dump-input=help explains the following input dump.
Input was:
<<<<<<
             1:  .text 
             1:  .text 
             2:  .file "stack_protector_heuristics_effect.8e84c28806436b20-cgu.0" 
             3:  .functype __stack_chk_fail () -> () 
             4:  .functype memcpy (i32, i32, i32) -> (i32) 
             5:  .tabletype __indirect_function_table, funcref 
             6:  .globaltype __stack_pointer, i32 
             7:  .functype emptyfn () -> () 
check:25'0                        X~~~~~~~~~ error: no match found
             8:  .functype array_char (i32) -> () 
check:25'0      ~~~~~~~~~~~~~~~~~~~~~
check:25'1                 ?                       possible intended match
check:43'0                           X~~~~~~~~~~~~ error: no match found
             9:  .functype array_u8_1 (i32) -> () 
check:43'0      ~~~~~~~~~~~~~~~~~~~~~
check:43'1                 ?                       possible intended match
check:59'0                           X~~~~~~~~~~~~ error: no match found
            10:  .functype array_u8_small (i32) -> () 
check:59'0      ~~~~~~~~~~~~~~~~~~~~~~~~~
check:59'1                 ?                           possible intended match
check:76'0                               X~~~~~~~~~~~~ error: no match found
            11:  .functype array_u8_large (i32) -> () 
check:76'0      ~~~~~~~~~~~~~~~~~~~~~~~~~
check:76'1                 ?                           possible intended match
check:92'0                               X~~~~~~~~~~~~ error: no match found
            12:  .functype array_bytesizednewtype_9 (i32) -> () 
check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:92'1                      ?                                possible intended match
check:111'0                                        X~~~~~~~~~~~~ error: no match found
            13:  .functype local_var_addr_used_indirectly (i32) -> () 
check:111'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:111'1          ?                                                 possible intended match
check:138'0                                              X~~~~~~~~~~~~ error: no match found
            14:  .functype local_string_addr_taken (i32) -> () 
check:138'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:138'1                    ?                                possible intended match
check:154'0                                       X~~~~~~~~~~~~ error: no match found
            15:  .functype _ZN68_$LT$i32$u20$as$u20$stack_protector_heuristics_effect..SelfByRef$GT$1f17h8a33f408767eede6E (i32) -> (i32) 
check:154'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:154'1                                       ?                                                                                        possible intended match
            16:  .functype local_var_addr_taken_used_locally_only (i32, i32) -> () 
check:154'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:183'0                                                      X~~~~~~~~~~~~~~~~~ error: no match found
            17:  .functype local_large_var_moved (i32) -> () 
check:183'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:183'1          ?                                        possible intended match
check:220'0                                     X~~~~~~~~~~~~ error: no match found
            18:  .functype local_large_var_cloned (i32) -> () 
check:220'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:220'1                          ?                         possible intended match
check:249'0                                      X~~~~~~~~~~~~ error: no match found
            19:  .functype alloca_small_compile_time_constant_arg (i32) -> () 
check:249'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:249'1                   ?                                                possible intended match
check:289'0                                                      X~~~~~~~~~~~~ error: no match found
            20:  .functype alloca_large_compile_time_constant_arg (i32) -> () 
check:289'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:289'1                                           ?                        possible intended match
check:301'0                                                      X~~~~~~~~~~~~ error: no match found
            21:  .functype alloca_dynamic_arg (i32, i32) -> () 
check:301'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:301'1                      ?                              possible intended match
check:313'0                                  X~~~~~~~~~~~~~~~~~ error: no match found
            22:  .functype unsized_fn_param (i32, i32, i32, i32) -> () 
check:313'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:313'1                ?                                            possible intended match
check:340'0                                X~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
            23:  .functype unsized_local (i32, i32, i32, i32) -> () 
check:340'0     ~~~~~~~~~~~~~~~~~~~~~~~~
check:340'1                ?                                         possible intended match
            24:  .functype _ZN5alloc7raw_vec12handle_error17hcbf95292a3cbececE (i32, i32, i32) -> () 
            25:  .functype _ZN4core5slice5index24slice_end_index_len_fail17hd882404e4313093fE (i32, i32, i32) -> () 
            26:  .functype __rust_alloc (i32, i32) -> (i32) 
            27:  .functype __rust_dealloc (i32, i32, i32) -> () 
            28:  .functype alloca (i32) -> (i32) 
            29:  .section .text.emptyfn,"",@ 
            30:  .globl emptyfn 
            31:  .type emptyfn,@function 
            32: emptyfn: 
            33:  .functype emptyfn () -> () 
            34:  .local i32 
            35:  global.get __stack_pointer 
            36:  i32.const 16 
            37:  i32.sub  
            38:  local.tee 0 
            39:  global.set __stack_pointer 
            40:  local.get 0 
            41:  i32.const 0 
            42:  i32.load __stack_chk_guard 
            43:  i32.store 12 
            44:  block  
            45:  i32.const 0 
            46:  i32.load __stack_chk_guard 
            47:  local.get 0 
            48:  i32.load 12 
            49:  i32.eq  
            50:  br_if 0 
            51:  call __stack_chk_fail 
            52:  unreachable 
            53: .LBB0_2: 
            54:  end_block 
            55:  local.get 0 
            56:  i32.const 16 
            57:  i32.add  
            58:  global.set __stack_pointer 
            59:  end_function 
            60:  
            61:  .section .text.array_char,"",@ 
            62:  .globl array_char 
            63:  .type array_char,@function 
            64: array_char: 
            65:  .functype array_char (i32) -> () 
            66:  .local i32 
            67:  global.get __stack_pointer 
            68:  i32.const 80 
            69:  i32.sub  
            70:  local.tee 1 
            71:  global.set __stack_pointer 
            72:  local.get 1 
            73:  i32.const 0 
            74:  i32.load __stack_chk_guard 
            75:  i32.store 76 
            76:  local.get 1 
            77:  i32.const 99 
            78:  i32.store 0 
            79:  local.get 1 
            80:  i32.const 100 
            81:  i32.store 12 
            82:  local.get 1 
            83:  i64.const 429496729700 
            84:  i64.store 4:p2align=2 
            85:  local.get 1 
            86:  i32.const 101 
            87:  i32.store 72 
            88:  local.get 1 
            89:  i64.const 433791696997 
            90:  i64.store 64:p2align=2 
            91:  local.get 1 
            92:  i64.const 433791696997 
            93:  i64.store 56:p2align=2 
            94:  local.get 1 
            95:  i64.const 433791696997 
            96:  i64.store 48:p2align=2 
            97:  local.get 1 
            98:  i64.const 433791696997 
            99:  i64.store 40:p2align=2 
           100:  local.get 1 
           101:  i64.const 433791696997 
           102:  i64.store 32:p2align=2 
           103:  local.get 1 
           104:  i64.const 433791696997 
           105:  i64.store 24:p2align=2 
           106:  local.get 1 
           107:  i64.const 433791696997 
           108:  i64.store 16:p2align=2 
           109:  local.get 1 
           110:  local.get 0 
           111:  call_indirect __indirect_function_table, (i32) -> () 
           112:  local.get 1 
           113:  i32.const 4 
           114:  i32.add  
           115:  local.get 0 
           116:  call_indirect __indirect_function_table, (i32) -> () 
           117:  local.get 1 
           118:  i32.const 16 
           119:  i32.add  
           120:  local.get 0 
           121:  call_indirect __indirect_function_table, (i32) -> () 
           122:  block  
           123:  i32.const 0 
             .
             .
>>>>>>
------------------------------------------
------------------------------------------


---- [assembly] tests/assembly/stack-protector/stack-protector-heuristics-effect.rs#basic stdout ----

error in revision `basic`: 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/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s" "/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs" "--check-prefix=CHECK" "--check-prefix" "basic" "--allow-unused-prefixes" "--dump-input-context" "100"
--- stderr -------------------------------
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:45:12: error: basic: expected string not found in input
 // basic: __stack_chk_fail
           ^
           ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:8:22: note: scanning from here
 .functype array_char (i32) -> ()
                     ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:9:12: note: possible intended match here
 .functype array_u8_1 (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:94:12: error: basic: expected string not found in input
 // basic: __stack_chk_fail
           ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:11:26: note: scanning from here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:11:26: note: scanning from here
 .functype array_u8_large (i32) -> ()
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:12:17: note: possible intended match here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:12:17: note: possible intended match here
 .functype array_bytesizednewtype_9 (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:113:12: error: basic: expected string not found in input
 // basic: __stack_chk_fail
           ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:12:36: note: scanning from here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:12:36: note: scanning from here
 .functype array_bytesizednewtype_9 (i32) -> ()
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:13:6: note: possible intended match here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:13:6: note: possible intended match here
 .functype local_var_addr_used_indirectly (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:156:12: error: basic: expected string not found in input
 // basic: __stack_chk_fail
           ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:14:35: note: scanning from here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:14:35: note: scanning from here
 .functype local_string_addr_taken (i32) -> ()
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:15:35: note: possible intended match here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:15:35: note: possible intended match here
 .functype _ZN68_$LT$i32$u20$as$u20$stack_protector_heuristics_effect..SelfByRef$GT$1f17h8a33f408767eede6E (i32) -> (i32)
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:222:12: error: basic: expected string not found in input
 // basic: __stack_chk_fail
           ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:17:33: note: scanning from here
---
           ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:18:34: note: scanning from here
 .functype local_large_var_cloned (i32) -> ()
                                 ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s:19:15: note: possible intended match here
 .functype alloca_small_compile_time_constant_arg (i32) -> ()

Input file: /checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.basic/stack-protector-heuristics-effect.s
Check file: /checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs


-dump-input=help explains the following input dump.
Input was:
<<<<<<
             1:  .text 
             1:  .text 
             2:  .file "stack_protector_heuristics_effect.8e84c28806436b20-cgu.0" 
             3:  .functype __stack_chk_fail () -> () 
             4:  .functype memcpy (i32, i32, i32) -> (i32) 
             5:  .tabletype __indirect_function_table, funcref 
             6:  .globaltype __stack_pointer, i32 
             7:  .functype emptyfn () -> () 
             8:  .functype array_char (i32) -> () 
check:45'0                           X~~~~~~~~~~~~ error: no match found
             9:  .functype array_u8_1 (i32) -> () 
check:45'0      ~~~~~~~~~~~~~~~~~~~~~
check:45'1                 ?                       possible intended match
            10:  .functype array_u8_small (i32) -> () 
            11:  .functype array_u8_large (i32) -> () 
check:94'0                               X~~~~~~~~~~~~ error: no match found
            12:  .functype array_bytesizednewtype_9 (i32) -> () 
check:94'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:94'1                      ?                                possible intended match
check:113'0                                        X~~~~~~~~~~~~ error: no match found
            13:  .functype local_var_addr_used_indirectly (i32) -> () 
check:113'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:113'1          ?                                                 possible intended match
            14:  .functype local_string_addr_taken (i32) -> () 
check:156'0                                       X~~~~~~~~~~~~ error: no match found
            15:  .functype _ZN68_$LT$i32$u20$as$u20$stack_protector_heuristics_effect..SelfByRef$GT$1f17h8a33f408767eede6E (i32) -> (i32) 
check:156'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:156'1                                       ?                                                                                        possible intended match
            16:  .functype local_var_addr_taken_used_locally_only (i32, i32) -> () 
check:156'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            17:  .functype local_large_var_moved (i32) -> () 
check:222'0                                     X~~~~~~~~~~~~ error: no match found
            18:  .functype local_large_var_cloned (i32) -> () 
check:222'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:222'1                          ?                         possible intended match
check:251'0                                      X~~~~~~~~~~~~ error: no match found
            19:  .functype alloca_small_compile_time_constant_arg (i32) -> () 
check:251'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:251'1                   ?                                                possible intended match
            20:  .functype alloca_large_compile_time_constant_arg (i32) -> () 
            21:  .functype alloca_dynamic_arg (i32, i32) -> () 
            22:  .functype unsized_fn_param (i32, i32, i32, i32) -> () 
            23:  .functype unsized_local (i32, i32, i32, i32) -> () 
            24:  .functype _ZN5alloc7raw_vec12handle_error17hcbf95292a3cbececE (i32, i32, i32) -> () 
            25:  .functype _ZN4core5slice5index24slice_end_index_len_fail17hd882404e4313093fE (i32, i32, i32) -> () 
            26:  .functype __rust_alloc (i32, i32) -> (i32) 
            27:  .functype __rust_dealloc (i32, i32, i32) -> () 
            28:  .functype alloca (i32) -> (i32) 
            29:  .section .text.emptyfn,"",@ 
            30:  .globl emptyfn 
            31:  .type emptyfn,@function 
            32: emptyfn: 
            33:  .functype emptyfn () -> () 
            34:  end_function 
            35:  
            36:  .section .text.array_char,"",@ 
            37:  .globl array_char 
            38:  .type array_char,@function 
            39: array_char: 
            40:  .functype array_char (i32) -> () 
            41:  .local i32 
            42:  global.get __stack_pointer 
            43:  i32.const 80 
            44:  i32.sub  
            45:  local.tee 1 
            46:  global.set __stack_pointer 
            47:  local.get 1 
            48:  i32.const 0 
            49:  i32.load __stack_chk_guard 
            50:  i32.store 76 
            51:  local.get 1 
            52:  i32.const 99 
            53:  i32.store 0 
            54:  local.get 1 
            55:  i32.const 100 
            56:  i32.store 12 
            57:  local.get 1 
            58:  i64.const 429496729700 
            59:  i64.store 4:p2align=2 
            60:  local.get 1 
            61:  i32.const 101 
            62:  i32.store 72 
            63:  local.get 1 
            64:  i64.const 433791696997 
            65:  i64.store 64:p2align=2 
            66:  local.get 1 
            67:  i64.const 433791696997 
            68:  i64.store 56:p2align=2 
            69:  local.get 1 
            70:  i64.const 433791696997 
            71:  i64.store 48:p2align=2 
            72:  local.get 1 
            73:  i64.const 433791696997 
            74:  i64.store 40:p2align=2 
            75:  local.get 1 
            76:  i64.const 433791696997 
            77:  i64.store 32:p2align=2 
            78:  local.get 1 
            79:  i64.const 433791696997 
            80:  i64.store 24:p2align=2 
            81:  local.get 1 
            82:  i64.const 433791696997 
            83:  i64.store 16:p2align=2 
            84:  local.get 1 
            85:  local.get 0 
            86:  call_indirect __indirect_function_table, (i32) -> () 
            87:  local.get 1 
            88:  i32.const 4 
            89:  i32.add  
            90:  local.get 0 
            91:  call_indirect __indirect_function_table, (i32) -> () 
            92:  local.get 1 
            93:  i32.const 16 
            94:  i32.add  
            95:  local.get 0 
            96:  call_indirect __indirect_function_table, (i32) -> () 
            97:  block  
            98:  i32.const 0 
            99:  i32.load __stack_chk_guard 
           100:  local.get 1 
           101:  i32.load 76 
           102:  i32.eq  
           103:  br_if 0 
           104:  call __stack_chk_fail 
           105:  unreachable 
           106: .LBB1_2: 
           107:  end_block 
           108:  local.get 1 
           109:  i32.const 80 
           110:  i32.add  
           111:  global.set __stack_pointer 
           112:  end_function 
           113:  
           114:  .section .text.array_u8_1,"",@ 
           115:  .globl array_u8_1 
           116:  .type array_u8_1,@function 
           117: array_u8_1: 
           118:  .functype array_u8_1 (i32) -> () 
           119:  .local i32 
             .
             .
>>>>>>
------------------------------------------
------------------------------------------


---- [assembly] tests/assembly/stack-protector/stack-protector-heuristics-effect.rs#strong stdout ----

error in revision `strong`: 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/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s" "/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs" "--check-prefix=CHECK" "--check-prefix" "strong" "--allow-unused-prefixes" "--dump-input-context" "100"
--- stderr -------------------------------
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:44:13: error: strong: expected string not found in input
 // strong: __stack_chk_fail
            ^
            ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:8:22: note: scanning from here
 .functype array_char (i32) -> ()
                     ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:9:12: note: possible intended match here
 .functype array_u8_1 (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:60:13: error: strong: expected string not found in input
 // strong: __stack_chk_fail
            ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:9:22: note: scanning from here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:9:22: note: scanning from here
 .functype array_u8_1 (i32) -> ()
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:10:12: note: possible intended match here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:10:12: note: possible intended match here
 .functype array_u8_small (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:77:13: error: strong: expected string not found in input
 // strong: __stack_chk_fail
            ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:10:26: note: scanning from here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:10:26: note: scanning from here
 .functype array_u8_small (i32) -> ()
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:11:12: note: possible intended match here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:11:12: note: possible intended match here
 .functype array_u8_large (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:93:13: error: strong: expected string not found in input
 // strong: __stack_chk_fail
            ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:11:26: note: scanning from here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:11:26: note: scanning from here
 .functype array_u8_large (i32) -> ()
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:12:17: note: possible intended match here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:12:17: note: possible intended match here
 .functype array_bytesizednewtype_9 (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:112:13: error: strong: expected string not found in input
 // strong: __stack_chk_fail
            ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:12:36: note: scanning from here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:12:36: note: scanning from here
 .functype array_bytesizednewtype_9 (i32) -> ()
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:13:6: note: possible intended match here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:13:6: note: possible intended match here
 .functype local_var_addr_used_indirectly (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:139:13: error: strong: expected string not found in input
 // strong: __stack_chk_fail
            ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:13:42: note: scanning from here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:13:42: note: scanning from here
 .functype local_var_addr_used_indirectly (i32) -> ()
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:14:16: note: possible intended match here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:14:16: note: possible intended match here
 .functype local_string_addr_taken (i32) -> ()
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:155:13: error: strong: expected string not found in input
 // strong: __stack_chk_fail
            ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:14:35: note: scanning from here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:14:35: note: scanning from here
 .functype local_string_addr_taken (i32) -> ()
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:15:35: note: possible intended match here
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:15:35: note: possible intended match here
 .functype _ZN68_$LT$i32$u20$as$u20$stack_protector_heuristics_effect..SelfByRef$GT$1f17h8a33f408767eede6E (i32) -> (i32)
/checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs:221:13: error: strong: expected string not found in input
 // strong: __stack_chk_fail
            ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:17:33: note: scanning from here
---
            ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:18:34: note: scanning from here
 .functype local_large_var_cloned (i32) -> ()
                                 ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s:19:15: note: possible intended match here
 .functype alloca_small_compile_time_constant_arg (i32) -> ()

Input file: /checkout/obj/build/x86_64-unknown-linux-gnu/test/assembly/stack-protector/stack-protector-heuristics-effect.strong/stack-protector-heuristics-effect.s
Check file: /checkout/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs


-dump-input=help explains the following input dump.
Input was:
<<<<<<
             1:  .text 
             1:  .text 
             2:  .file "stack_protector_heuristics_effect.8e84c28806436b20-cgu.0" 
             3:  .functype __stack_chk_fail () -> () 
             4:  .functype memcpy (i32, i32, i32) -> (i32) 
             5:  .tabletype __indirect_function_table, funcref 
             6:  .globaltype __stack_pointer, i32 
             7:  .functype emptyfn () -> () 
             8:  .functype array_char (i32) -> () 
check:44'0                           X~~~~~~~~~~~~ error: no match found
             9:  .functype array_u8_1 (i32) -> () 
check:44'0      ~~~~~~~~~~~~~~~~~~~~~
check:44'1                 ?                       possible intended match
check:60'0                           X~~~~~~~~~~~~ error: no match found
            10:  .functype array_u8_small (i32) -> () 
check:60'0      ~~~~~~~~~~~~~~~~~~~~~~~~~
check:60'1                 ?                           possible intended match
check:77'0                               X~~~~~~~~~~~~ error: no match found
            11:  .functype array_u8_large (i32) -> () 
check:77'0      ~~~~~~~~~~~~~~~~~~~~~~~~~
check:77'1                 ?                           possible intended match
check:93'0                               X~~~~~~~~~~~~ error: no match found
            12:  .functype array_bytesizednewtype_9 (i32) -> () 
check:93'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:93'1                      ?                                possible intended match
check:112'0                                        X~~~~~~~~~~~~ error: no match found
            13:  .functype local_var_addr_used_indirectly (i32) -> () 
check:112'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:112'1          ?                                                 possible intended match
check:139'0                                              X~~~~~~~~~~~~ error: no match found
            14:  .functype local_string_addr_taken (i32) -> () 
check:139'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:139'1                    ?                                possible intended match
check:155'0                                       X~~~~~~~~~~~~ error: no match found
            15:  .functype _ZN68_$LT$i32$u20$as$u20$stack_protector_heuristics_effect..SelfByRef$GT$1f17h8a33f408767eede6E (i32) -> (i32) 
check:155'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:155'1                                       ?                                                                                        possible intended match
            16:  .functype local_var_addr_taken_used_locally_only (i32, i32) -> () 
check:155'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            17:  .functype local_large_var_moved (i32) -> () 
check:221'0                                     X~~~~~~~~~~~~ error: no match found
            18:  .functype local_large_var_cloned (i32) -> () 
check:221'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:221'1                          ?                         possible intended match
check:250'0                                      X~~~~~~~~~~~~ error: no match found
            19:  .functype alloca_small_compile_time_constant_arg (i32) -> () 
check:250'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:250'1                   ?                                                possible intended match
            20:  .functype alloca_large_compile_time_constant_arg (i32) -> () 
            21:  .functype alloca_dynamic_arg (i32, i32) -> () 
            22:  .functype unsized_fn_param (i32, i32, i32, i32) -> () 
            23:  .functype unsized_local (i32, i32, i32, i32) -> () 
            24:  .functype _ZN5alloc7raw_vec12handle_error17hcbf95292a3cbececE (i32, i32, i32) -> () 
            25:  .functype _ZN4core5slice5index24slice_end_index_len_fail17hd882404e4313093fE (i32, i32, i32) -> () 
            26:  .functype __rust_alloc (i32, i32) -> (i32) 
            27:  .functype __rust_dealloc (i32, i32, i32) -> () 
            28:  .functype alloca (i32) -> (i32) 
            29:  .section .text.emptyfn,"",@ 
            30:  .globl emptyfn 
            31:  .type emptyfn,@function 
            32: emptyfn: 
            33:  .functype emptyfn () -> () 
            34:  end_function 
            35:  
            36:  .section .text.array_char,"",@ 
            37:  .globl array_char 
            38:  .type array_char,@function 
            39: array_char: 
            40:  .functype array_char (i32) -> () 
            41:  .local i32 
            42:  global.get __stack_pointer 
            43:  i32.const 80 
            44:  i32.sub  
            45:  local.tee 1 
            46:  global.set __stack_pointer 
            47:  local.get 1 
            48:  i32.const 0 
            49:  i32.load __stack_chk_guard 
            50:  i32.store 76 
            51:  local.get 1 
            52:  i32.const 99 
            53:  i32.store 0 
            54:  local.get 1 
            55:  i32.const 100 
            56:  i32.store 12 
            57:  local.get 1 
            58:  i64.const 429496729700 
            59:  i64.store 4:p2align=2 
            60:  local.get 1 
            61:  i32.const 101 
            62:  i32.store 72 
            63:  local.get 1 
            64:  i64.const 433791696997 
            65:  i64.store 64:p2align=2 
            66:  local.get 1 
            67:  i64.const 433791696997 
            68:  i64.store 56:p2align=2 
            69:  local.get 1 
            70:  i64.const 433791696997 
            71:  i64.store 48:p2align=2 
            72:  local.get 1 
            73:  i64.const 433791696997 
            74:  i64.store 40:p2align=2 
            75:  local.get 1 
            76:  i64.const 433791696997 
            77:  i64.store 32:p2align=2 
            78:  local.get 1 
            79:  i64.const 433791696997 
            80:  i64.store 24:p2align=2 
            81:  local.get 1 
            82:  i64.const 433791696997 
            83:  i64.store 16:p2align=2 
            84:  local.get 1 
            85:  local.get 0 
            86:  call_indirect __indirect_function_table, (i32) -> () 
            87:  local.get 1 
            88:  i32.const 4 
            89:  i32.add  
            90:  local.get 0 
            91:  call_indirect __indirect_function_table, (i32) -> () 
            92:  local.get 1 
            93:  i32.const 16 
            94:  i32.add  
            95:  local.get 0 
            96:  call_indirect __indirect_function_table, (i32) -> () 
            97:  block  
            98:  i32.const 0 
            99:  i32.load __stack_chk_guard 
           100:  local.get 1 
           101:  i32.load 76 
           102:  i32.eq  
           103:  br_if 0 
           104:  call __stack_chk_fail 
           105:  unreachable 
           106: .LBB1_2: 
           107:  end_block 
           108:  local.get 1 
           109:  i32.const 80 
           110:  i32.add  
           111:  global.set __stack_pointer 
           112:  end_function 
           113:  
           114:  .section .text.array_u8_1,"",@ 
           115:  .globl array_u8_1 
           116:  .type array_u8_1,@function 
           117: array_u8_1: 
           118:  .functype array_u8_1 (i32) -> () 
           119:  .local i32 
             .
             .
>>>>>>
------------------------------------------

@bors
Copy link
Contributor

bors commented Feb 14, 2025

💔 Test failed - checks-actions

@bors bors 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 Feb 14, 2025
@workingjubilee workingjubilee deleted the rollup-7jlmlfj branch February 14, 2025 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-unix Operating system: Unix-like rollup A PR which is a rollup 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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.