diff options
| author | Will Glynn <will@willglynn.com> | 2025-04-04 17:46:35 -0500 |
|---|---|---|
| committer | Will Glynn <will@willglynn.com> | 2025-04-15 21:26:14 -0500 |
| commit | 8c50f95cf088c6ccf882a152bd46c090efa3a1c7 (patch) | |
| tree | 3dc412bd7462c4817cdc89675ccf4ffb30406422 /src/tools/jsondocck | |
| parent | 51548ce71fe80b5ca7aef00e6f1bf2491df98c79 (diff) | |
rustdoc: Output target feature information
`#[target_feature]` attributes refer to a target-specific list of features. Enabling certain features can imply enabling other features. Certain features are always enabled on certain targets, since they are required by the target's ABI. Features can also be enabled indirectly based on other compiler flags. Feature information is ultimately known to `rustc`. Rather than force external tools to track it -- which may be wildly impractical due to `-C target-cpu` -- have `rustdoc` output `rustc`'s feature data.
Diffstat (limited to 'src/tools/jsondocck')
| -rw-r--r-- | src/tools/jsondocck/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/jsondocck/src/main.rs b/src/tools/jsondocck/src/main.rs index 54249fbd9ae..79e419884c6 100644 --- a/src/tools/jsondocck/src/main.rs +++ b/src/tools/jsondocck/src/main.rs @@ -156,7 +156,7 @@ static LINE_PATTERN: LazyLock<Regex> = LazyLock::new(|| { r#" //@\s+ (?P<negated>!?) - (?P<cmd>[A-Za-z]+(?:-[A-Za-z]+)*) + (?P<cmd>[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*) (?P<args>.*)$ "#, ) |
