We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb8b901 commit 39941e6Copy full SHA for 39941e6
library/std/src/ffi/c_str.rs
@@ -1266,7 +1266,7 @@ impl CStr {
1266
/// behavior when `ptr` is used inside the `unsafe` block:
1267
///
1268
/// ```no_run
1269
- /// # #![allow(unused_must_use, temporary_cstring_as_ptr)]
+ /// # #![allow(unused_must_use)] #![cfg_attr(not(bootstrap), allow(temporary_cstring_as_ptr))]
1270
/// use std::ffi::CString;
1271
1272
/// let ptr = CString::new("Hello").expect("CString::new failed").as_ptr();
0 commit comments