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 1e1c9c5 commit 80d41c9Copy full SHA for 80d41c9
library/std/src/ffi/c_str.rs
@@ -1265,7 +1265,7 @@ impl CStr {
1265
/// behavior when `ptr` is used inside the `unsafe` block:
1266
///
1267
/// ```no_run
1268
- /// # #![allow(unused_must_use)]
+ /// # #![allow(unused_must_use)] #![allow(temporary_cstring_as_ptr)]
1269
/// use std::ffi::CString;
1270
1271
/// let ptr = CString::new("Hello").expect("CString::new failed").as_ptr();
0 commit comments