Skip to content

Commit ffde497

Browse files
authored
Unrolled build for #152705
Rollup merge of #152705 - PaulDance:patches/skip-raw_attributes-doctest, r=joboet Test(lib/win/proc): Skip `raw_attributes` doctest under Win7 The current doctest for `ProcThreadAttributeListBuilder::raw_attribute` uses `CreatePseudoConsole`, which is only available on Windows 10 October 2018 Update and above. On older versions of Windows, the test fails due to trying to link against a function that is not present in the kernel32 DLL. This therefore ensures the test is still built, but not run under the Win7 target. @rustbot label T-libs A-process A-doctests O-windows-7
2 parents d8b2222 + a2699f0 commit ffde497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/src/os/windows/process.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,8 @@ impl<'a> ProcThreadAttributeListBuilder<'a> {
573573
///
574574
/// # Example
575575
///
576-
/// ```
576+
#[cfg_attr(target_vendor = "win7", doc = "```no_run")]
577+
#[cfg_attr(not(target_vendor = "win7"), doc = "```")]
577578
/// #![feature(windows_process_extensions_raw_attribute)]
578579
/// use std::ffi::c_void;
579580
/// use std::os::windows::process::{CommandExt, ProcThreadAttributeList};

0 commit comments

Comments
 (0)