Handle default features and -Ctarget-features in the dummy backend by bjorn3 · Pull Request #148253 · rust-lang/rust

@bjorn3

This prevents a warning about ABI relevant target features not being set
on x86 and arm. In addition it is required for miri to report correct
features in is_*_feature_detected!() if miri switches to the dummy backend.

@rustbot rustbot added 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.

labels

Oct 29, 2025

@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

Oct 29, 2025

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Oct 29, 2025
…es, r=JonathanBrouwer

Handle default features and -Ctarget-features in the dummy backend

This prevents a warning about ABI relevant target features not being set on x86 and arm. In addition it is required for miri to report correct features in is_*_feature_detected!() if miri switches to the dummy backend.

Required for rust-lang/miri#4648

bors added a commit that referenced this pull request

Oct 30, 2025
Rollup of 4 pull requests

Successful merges:

 - #148115 (rustdoc: Rename unstable option `--nocapture` to `--no-capture` in accordance with `libtest`)
 - #148137 (Couple of changes for Redox OS)
 - #148176 ([rustdoc] Include attribute and derive macros when filtering on "macros")
 - #148253 (Handle default features and -Ctarget-features in the dummy backend)

r? `@ghost`
`@rustbot` modify labels: rollup

Zalathar added a commit to Zalathar/rust that referenced this pull request

Oct 30, 2025
…es, r=JonathanBrouwer

Handle default features and -Ctarget-features in the dummy backend

This prevents a warning about ABI relevant target features not being set on x86 and arm. In addition it is required for miri to report correct features in is_*_feature_detected!() if miri switches to the dummy backend.

Required for rust-lang/miri#4648

bors added a commit that referenced this pull request

Oct 30, 2025
Rollup of 9 pull requests

Successful merges:

 - #138217 (Turn `Cow::is_borrowed,is_owned` into associated functions.)
 - #147858 (Micro-optimization attempt in coroutine layout computation)
 - #147923 (Simplify rustc_public context handling)
 - #147935 (Add LLVM realtime sanitizer)
 - #148115 (rustdoc: Rename unstable option `--nocapture` to `--no-capture` in accordance with `libtest`)
 - #148137 (Couple of changes for Redox OS)
 - #148176 ([rustdoc] Include attribute and derive macros when filtering on "macros")
 - #148193 (Remove `QPath::LangItem`)
 - #148253 (Handle default features and -Ctarget-features in the dummy backend)

r? `@ghost`
`@rustbot` modify labels: rollup

bors added a commit that referenced this pull request

Oct 30, 2025
Rollup of 8 pull requests

Successful merges:

 - #138217 (Turn `Cow::is_borrowed,is_owned` into associated functions.)
 - #147858 (Micro-optimization attempt in coroutine layout computation)
 - #147923 (Simplify rustc_public context handling)
 - #148115 (rustdoc: Rename unstable option `--nocapture` to `--no-capture` in accordance with `libtest`)
 - #148137 (Couple of changes for Redox OS)
 - #148176 ([rustdoc] Include attribute and derive macros when filtering on "macros")
 - #148253 (Handle default features and -Ctarget-features in the dummy backend)
 - #148272 (Align VEX V5 boot routine to 4 bytes)

r? `@ghost`
`@rustbot` modify labels: rollup

rust-timer added a commit that referenced this pull request

Oct 30, 2025
Rollup merge of #148253 - bjorn3:dummy_backend_target_features, r=JonathanBrouwer

Handle default features and -Ctarget-features in the dummy backend

This prevents a warning about ABI relevant target features not being set on x86 and arm. In addition it is required for miri to report correct features in is_*_feature_detected!() if miri switches to the dummy backend.

Required for rust-lang/miri#4648

@bjorn3 bjorn3 deleted the dummy_backend_target_features branch

October 30, 2025 12:33

makai410 pushed a commit to makai410/rustc_public that referenced this pull request

Nov 4, 2025

makai410 pushed a commit to makai410/rust that referenced this pull request

Nov 8, 2025
…es, r=JonathanBrouwer

Handle default features and -Ctarget-features in the dummy backend

This prevents a warning about ABI relevant target features not being set on x86 and arm. In addition it is required for miri to report correct features in is_*_feature_detected!() if miri switches to the dummy backend.

Required for rust-lang/miri#4648

makai410 pushed a commit to makai410/rust that referenced this pull request

Nov 8, 2025
Rollup of 8 pull requests

Successful merges:

 - rust-lang#138217 (Turn `Cow::is_borrowed,is_owned` into associated functions.)
 - rust-lang#147858 (Micro-optimization attempt in coroutine layout computation)
 - rust-lang#147923 (Simplify rustc_public context handling)
 - rust-lang#148115 (rustdoc: Rename unstable option `--nocapture` to `--no-capture` in accordance with `libtest`)
 - rust-lang#148137 (Couple of changes for Redox OS)
 - rust-lang#148176 ([rustdoc] Include attribute and derive macros when filtering on "macros")
 - rust-lang#148253 (Handle default features and -Ctarget-features in the dummy backend)
 - rust-lang#148272 (Align VEX V5 boot routine to 4 bytes)

r? `@ghost`
`@rustbot` modify labels: rollup

makai410 pushed a commit to makai410/rust that referenced this pull request

Nov 10, 2025
…es, r=JonathanBrouwer

Handle default features and -Ctarget-features in the dummy backend

This prevents a warning about ABI relevant target features not being set on x86 and arm. In addition it is required for miri to report correct features in is_*_feature_detected!() if miri switches to the dummy backend.

Required for rust-lang/miri#4648

makai410 pushed a commit to makai410/rust that referenced this pull request

Nov 10, 2025
Rollup of 8 pull requests

Successful merges:

 - rust-lang#138217 (Turn `Cow::is_borrowed,is_owned` into associated functions.)
 - rust-lang#147858 (Micro-optimization attempt in coroutine layout computation)
 - rust-lang#147923 (Simplify rustc_public context handling)
 - rust-lang#148115 (rustdoc: Rename unstable option `--nocapture` to `--no-capture` in accordance with `libtest`)
 - rust-lang#148137 (Couple of changes for Redox OS)
 - rust-lang#148176 ([rustdoc] Include attribute and derive macros when filtering on "macros")
 - rust-lang#148253 (Handle default features and -Ctarget-features in the dummy backend)
 - rust-lang#148272 (Align VEX V5 boot routine to 4 bytes)

r? `@ghost`
`@rustbot` modify labels: rollup

makai410 pushed a commit to makai410/rustc_public that referenced this pull request

Nov 16, 2025