Skip to content

Restore the section in global-target-feature.rs - #166539

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
traviscross:TC/restore-section-in-global-target-feature
Nov 25, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
traviscross:TC/restore-section-in-global-target-feature

Conversation

@traviscross

Copy link
Copy Markdown
Contributor

This test switches the section with .section and never switches it back. The Reference says that assembly using a stateful directive must undo the effect of the directive before the block ends (see asm.directives.stateful).

In this case, nothing follows the block, so nothing is affected. But let's make the test follow the rule.

r? @Amanieu

This test switches the section with `.section` and never switches it
back.  The Reference says that assembly using a stateful directive
must undo the effect of the directive before the block ends (see
`asm.directives.stateful`).

In this case, nothing follows the block, so nothing is affected.  But
let's make the test follow the rule.
@traviscross traviscross added the llm-assisted An LLM-assisted PR as defined by the LLM policy. Requires ahead-of-time consent by assignee. label Nov 25, 2026
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 25, 2026
@traviscross
traviscross marked this pull request as ready for review November 25, 2026 01:38
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 25, 2026
@Amanieu

Amanieu commented Nov 25, 2026

Copy link
Copy Markdown
Member

@bors r+

@rust-bors

rust-bors Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 15018cd has been approved by Amanieu

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 Nov 25, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 25, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #166487 (core: Use autotests to split up coretests)
 - #165145 (Various incr comp session refactors)
 - #165337 (Windows: Don't make RwLock writers race readers)
 - #165732 (feat: rename region obligations)
 - #166061 (Offload: generic kernels in a lib)
 - #166539 (Restore the section in `global-target-feature.rs`)
 - #165721 (avoid Terminator:None in coroutine drop shim building)
 - #166453 (perf: remove cache in `FoldEscapingRegions`)
 - #166547 (Pin i686 msvc)
@rust-bors
rust-bors Bot merged commit 3fbdd5c into rust-lang:main Nov 25, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 25, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 25, 2026
Rollup merge of #166539 - traviscross:TC/restore-section-in-global-target-feature, r=Amanieu

Restore the section in `global-target-feature.rs`

This test switches the section with `.section` and never switches it back.  The Reference says that assembly using a stateful directive must undo the effect of the directive before the block ends (see `asm.directives.stateful`).

In this case, nothing follows the block, so nothing is affected.  But let's make the test follow the rule.

r? @Amanieu
mehmettoplu-rs pushed a commit to mehmettoplu-rs/miri that referenced this pull request Nov 26, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#166487 (core: Use autotests to split up coretests)
 - rust-lang/rust#165145 (Various incr comp session refactors)
 - rust-lang/rust#165337 (Windows: Don't make RwLock writers race readers)
 - rust-lang/rust#165732 (feat: rename region obligations)
 - rust-lang/rust#166061 (Offload: generic kernels in a lib)
 - rust-lang/rust#166539 (Restore the section in `global-target-feature.rs`)
 - rust-lang/rust#165721 (avoid Terminator:None in coroutine drop shim building)
 - rust-lang/rust#166453 (perf: remove cache in `FoldEscapingRegions`)
 - rust-lang/rust#166547 (Pin i686 msvc)
bjorn3 pushed a commit to rust-lang/rustc_codegen_cranelift that referenced this pull request Nov 27, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#166487 (core: Use autotests to split up coretests)
 - rust-lang/rust#165145 (Various incr comp session refactors)
 - rust-lang/rust#165337 (Windows: Don't make RwLock writers race readers)
 - rust-lang/rust#165732 (feat: rename region obligations)
 - rust-lang/rust#166061 (Offload: generic kernels in a lib)
 - rust-lang/rust#166539 (Restore the section in `global-target-feature.rs`)
 - rust-lang/rust#165721 (avoid Terminator:None in coroutine drop shim building)
 - rust-lang/rust#166453 (perf: remove cache in `FoldEscapingRegions`)
 - rust-lang/rust#166547 (Pin i686 msvc)
mehmettoplu-rs pushed a commit to mehmettoplu-rs/rustc_codegen_gcc that referenced this pull request Nov 27, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#166487 (core: Use autotests to split up coretests)
 - rust-lang/rust#165145 (Various incr comp session refactors)
 - rust-lang/rust#165337 (Windows: Don't make RwLock writers race readers)
 - rust-lang/rust#165732 (feat: rename region obligations)
 - rust-lang/rust#166061 (Offload: generic kernels in a lib)
 - rust-lang/rust#166539 (Restore the section in `global-target-feature.rs`)
 - rust-lang/rust#165721 (avoid Terminator:None in coroutine drop shim building)
 - rust-lang/rust#166453 (perf: remove cache in `FoldEscapingRegions`)
 - rust-lang/rust#166547 (Pin i686 msvc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llm-assisted An LLM-assisted PR as defined by the LLM policy. Requires ahead-of-time consent by assignee. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants