From 39941e6281e8da26ab6dfa776ff9583ec94cba71 Mon Sep 17 00:00:00 2001 From: Nathan Whitaker Date: Mon, 26 Oct 2020 22:09:47 -0400 Subject: [PATCH] Fix bootstrap doctest failure --- library/std/src/ffi/c_str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/ffi/c_str.rs b/library/std/src/ffi/c_str.rs index 4a249d72bbcc..8c6d6c80402f 100644 --- a/library/std/src/ffi/c_str.rs +++ b/library/std/src/ffi/c_str.rs @@ -1266,7 +1266,7 @@ impl CStr { /// behavior when `ptr` is used inside the `unsafe` block: /// /// ```no_run - /// # #![allow(unused_must_use, temporary_cstring_as_ptr)] + /// # #![allow(unused_must_use)] #![cfg_attr(not(bootstrap), allow(temporary_cstring_as_ptr))] /// use std::ffi::CString; /// /// let ptr = CString::new("Hello").expect("CString::new failed").as_ptr();