about summary refs log tree commit diff
path: root/src/librustdoc/clean/mod.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-05-27 20:28:30 -0400
committerGitHub <noreply@github.com>2025-05-27 20:28:30 -0400
commit743d2527a26f3d92f82614f303a5b76c28366109 (patch)
treeb13446db9b1e8e5528b67f6661f80fe5f2d1908e /src/librustdoc/clean/mod.rs
parent45f256d9d7cffb66185c0bf1b8a864cba79db90c (diff)
parentc7c0194d980cbb812a61e369b8f92faf75b12f8e (diff)
downloadrust-743d2527a26f3d92f82614f303a5b76c28366109.tar.gz
rust-743d2527a26f3d92f82614f303a5b76c28366109.zip
Rollup merge of #140367 - folkertdev:asm-cfg, r=nnethercote
add `asm_cfg`: `#[cfg(...)]` within `asm!`

tracking issue: https://github.com/rust-lang/rust/issues/140364
blocked on: https://github.com/rust-lang/rust/pull/140490

This feature was discussed in https://github.com/rust-lang/rust/issues/140279. It allows configuring templates and operands in the assembly macros, for example:

```rust
asm!( // or global_asm! or naked_asm!
    "nop",
    #[cfg(target_feature = "sse2")]
    "nop",
    // ...
    #[cfg(target_feature = "sse2")]
    a = const 123, // only used on sse2
);
```

r? `@tgross35`

cc `@traviscross` `@Amanieu`

Now builds on https://github.com/rust-lang/rust/pull/140490, which should be merged first.
Diffstat (limited to 'src/librustdoc/clean/mod.rs')
0 files changed, 0 insertions, 0 deletions