Skip to content

Commit 6048e48

Browse files
authored
Use doctest attribute ignore-wasm instead of manual cfg_attr
Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
1 parent 7f2574f commit 6048e48

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

library/core/src/keyword_docs.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,11 +1294,7 @@ mod return_keyword {}
12941294
/// manner to computed goto).
12951295
///
12961296
/// Example of using `become` to implement functional-style `fold`:
1297-
#[cfg_attr(
1298-
target_family = "wasm",
1299-
doc = "```ignore (tail-call target feature not enabled by default on wasm)"
1300-
)]
1301-
#[cfg_attr(not(target_family = "wasm"), doc = "```")]
1297+
///
13021298
/// #![feature(explicit_tail_calls)]
13031299
/// #![expect(incomplete_features)]
13041300
///
@@ -1352,11 +1348,7 @@ mod return_keyword {}
13521348
/// (unless it's coerced to a function pointer)
13531349
///
13541350
/// It is possible to tail-call a function pointer:
1355-
#[cfg_attr(
1356-
target_family = "wasm",
1357-
doc = "```ignore (tail-call target feature not enabled by default on wasm)"
1358-
)]
1359-
#[cfg_attr(not(target_family = "wasm"), doc = "```")]
1351+
///
13601352
/// #![feature(explicit_tail_calls)]
13611353
/// #![expect(incomplete_features)]
13621354
///

0 commit comments

Comments
 (0)