We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e863eb commit b89e828Copy full SHA for b89e828
src/librustdoc/clean/cfg.rs
@@ -483,6 +483,7 @@ impl<'a> fmt::Display for Display<'a> {
483
"openbsd" => "OpenBSD",
484
"redox" => "Redox",
485
"solaris" => "Solaris",
486
+ "wasi" => "WASI",
487
"windows" => "Windows",
488
_ => "",
489
},
src/librustdoc/clean/cfg/tests.rs
@@ -367,6 +367,10 @@ fn test_render_long_html() {
367
name_value_cfg("target_os", "macos").render_long_html(),
368
"This is supported on <strong>macOS</strong> only."
369
);
370
+ assert_eq!(
371
+ name_value_cfg("target_os", "wasi").render_long_html(),
372
+ "This is supported on <strong>WASI</strong> only."
373
+ );
374
assert_eq!(
375
name_value_cfg("target_pointer_width", "16").render_long_html(),
376
"This is supported on <strong>16-bit</strong> only."
0 commit comments