|
60 | 60 | //! |
61 | 61 | //! ```rust |
62 | 62 | //! # #![allow(clippy::disallowed_names, clippy::new_ret_no_self)] |
63 | | -//! # #![feature(allocator_api, no_coverage)] |
| 63 | +//! # #![feature(allocator_api)] |
64 | 64 | //! use pinned_init::*; |
65 | 65 | //! # use core::pin::Pin; |
66 | 66 | //! # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*; |
|
83 | 83 | //! |
84 | 84 | //! ```rust |
85 | 85 | //! # #![allow(clippy::disallowed_names, clippy::new_ret_no_self)] |
86 | | -//! # #![feature(allocator_api, no_coverage)] |
| 86 | +//! # #![feature(allocator_api)] |
87 | 87 | //! # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*; |
88 | 88 | //! # use pinned_init::*; |
89 | 89 | //! # use core::pin::Pin; |
|
108 | 108 | //! the above method only works for types where you can access the fields. |
109 | 109 | //! |
110 | 110 | //! ```rust |
111 | | -//! # #![feature(allocator_api, no_coverage)] |
| 111 | +//! # #![feature(allocator_api)] |
112 | 112 | //! # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*; |
113 | 113 | //! # use pinned_init::*; |
114 | 114 | //! # use std::{alloc::AllocError, pin::Pin}; |
|
119 | 119 | //! |
120 | 120 | //! ```rust |
121 | 121 | //! # #![allow(clippy::disallowed_names, clippy::new_ret_no_self)] |
122 | | -//! # #![feature(allocator_api, no_coverage)] |
| 122 | +//! # #![feature(allocator_api)] |
123 | 123 | //! # use pinned_init::*; |
124 | 124 | //! # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*; |
125 | 125 | //! use core::alloc::AllocError; |
|
166 | 166 | //! |
167 | 167 | //! ```rust |
168 | 168 | //! # #![feature(extern_types)] |
169 | | -//! # #![cfg_attr(coverage_nightly, feature(no_coverage))] |
170 | 169 | //! use pinned_init::*; |
171 | 170 | //! use core::{ptr::addr_of_mut, marker::PhantomPinned, cell::UnsafeCell, pin::Pin}; |
172 | 171 | //! mod bindings { |
|
191 | 190 | //! } |
192 | 191 | //! |
193 | 192 | //! impl RawFoo { |
194 | | -//! # #[cfg_attr(coverage_nightly, no_coverage)] |
195 | 193 | //! pub fn new(flags: u32) -> impl PinInit<Self, i32> { |
196 | 194 | //! // SAFETY: |
197 | 195 | //! // - when the closure returns `Ok(())`, then it has successfully initialized and |
|
222 | 220 | //! |
223 | 221 | //! #[pinned_drop] |
224 | 222 | //! impl PinnedDrop for RawFoo { |
225 | | -//! # #[cfg_attr(coverage_nightly, no_coverage)] |
226 | 223 | //! fn drop(self: Pin<&mut Self>) { |
227 | 224 | //! // SAFETY: Since `foo` is initialized, destroying is safe. |
228 | 225 | //! unsafe { bindings::destroy_foo(self.foo.get()) }; |
|
250 | 247 | #![feature(allocator_api)] |
251 | 248 | #![cfg_attr(any(feature = "alloc"), feature(new_uninit))] |
252 | 249 | #![cfg_attr(any(feature = "alloc"), feature(get_mut_unchecked))] |
253 | | -#![cfg_attr(coverage_nightly, feature(no_coverage))] |
254 | 250 |
|
255 | 251 | #[cfg(any(feature = "alloc"))] |
256 | 252 | extern crate alloc; |
@@ -281,7 +277,7 @@ pub use pinned_init_macro::{pin_data, pinned_drop}; |
281 | 277 | /// |
282 | 278 | /// ```rust |
283 | 279 | /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self)] |
284 | | -/// # #![feature(allocator_api, no_coverage)] |
| 280 | +/// # #![feature(allocator_api)] |
285 | 281 | /// # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*; |
286 | 282 | /// # use pinned_init::*; |
287 | 283 | /// # use core::pin::Pin; |
@@ -333,7 +329,7 @@ macro_rules! stack_pin_init { |
333 | 329 | /// |
334 | 330 | /// ```rust |
335 | 331 | /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self)] |
336 | | -/// # #![feature(allocator_api, no_coverage)] |
| 332 | +/// # #![feature(allocator_api)] |
337 | 333 | /// # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*; |
338 | 334 | /// # use pinned_init::*; |
339 | 335 | /// # use core::{alloc::AllocError, pin::Pin, convert::Infallible}; |
@@ -364,7 +360,7 @@ macro_rules! stack_pin_init { |
364 | 360 | /// |
365 | 361 | /// ```rust |
366 | 362 | /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self)] |
367 | | -/// # #![feature(allocator_api, no_coverage)] |
| 363 | +/// # #![feature(allocator_api)] |
368 | 364 | /// # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*; |
369 | 365 | /// # use pinned_init::*; |
370 | 366 | /// # use core::{alloc::AllocError, pin::Pin, convert::Infallible}; |
@@ -422,7 +418,7 @@ macro_rules! stack_try_pin_init { |
422 | 418 | /// The syntax is almost identical to that of a normal `struct` initializer: |
423 | 419 | /// |
424 | 420 | /// ```rust |
425 | | -/// # #![feature(allocator_api, no_coverage)] |
| 421 | +/// # #![feature(allocator_api)] |
426 | 422 | /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self)] |
427 | 423 | /// # use pinned_init::*; |
428 | 424 | /// # use core::pin::Pin; |
@@ -468,7 +464,7 @@ macro_rules! stack_try_pin_init { |
468 | 464 | /// To create an initializer function, simply declare it like this: |
469 | 465 | /// |
470 | 466 | /// ```rust |
471 | | -/// # #![feature(allocator_api, no_coverage)] |
| 467 | +/// # #![feature(allocator_api)] |
472 | 468 | /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self)] |
473 | 469 | /// # use pinned_init::*; |
474 | 470 | /// # use core::pin::Pin; |
@@ -497,7 +493,7 @@ macro_rules! stack_try_pin_init { |
497 | 493 | /// Users of `Foo` can now create it like this: |
498 | 494 | /// |
499 | 495 | /// ```rust |
500 | | -/// # #![feature(allocator_api, no_coverage)] |
| 496 | +/// # #![feature(allocator_api)] |
501 | 497 | /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self)] |
502 | 498 | /// # use pinned_init::*; |
503 | 499 | /// # use core::pin::Pin; |
@@ -526,7 +522,7 @@ macro_rules! stack_try_pin_init { |
526 | 522 | /// They can also easily embed it into their own `struct`s: |
527 | 523 | /// |
528 | 524 | /// ```rust |
529 | | -/// # #![feature(allocator_api, no_coverage)] |
| 525 | +/// # #![feature(allocator_api)] |
530 | 526 | /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self)] |
531 | 527 | /// # use pinned_init::*; |
532 | 528 | /// # use core::pin::Pin; |
@@ -585,7 +581,7 @@ macro_rules! stack_try_pin_init { |
585 | 581 | /// For instance: |
586 | 582 | /// |
587 | 583 | /// ```rust |
588 | | -/// # #![feature(allocator_api, no_coverage)] |
| 584 | +/// # #![feature(allocator_api)] |
589 | 585 | /// # use pinned_init::*; |
590 | 586 | /// # use core::{ptr::addr_of_mut, marker::PhantomPinned}; |
591 | 587 | /// #[pin_data] |
@@ -640,7 +636,7 @@ macro_rules! pin_init { |
640 | 636 | /// # Examples |
641 | 637 | /// |
642 | 638 | /// ```rust |
643 | | -/// # #![feature(allocator_api, new_uninit, no_coverage)] |
| 639 | +/// # #![feature(allocator_api, new_uninit)] |
644 | 640 | /// # use core::alloc::AllocError; |
645 | 641 | /// use pinned_init::*; |
646 | 642 | /// #[pin_data] |
@@ -885,7 +881,7 @@ macro_rules! try_pin_init { |
885 | 881 | /// # Examples |
886 | 882 | /// |
887 | 883 | /// ```rust |
888 | | -/// # #![feature(allocator_api, no_coverage)] |
| 884 | +/// # #![feature(allocator_api)] |
889 | 885 | /// # use core::alloc::AllocError; |
890 | 886 | /// use pinned_init::*; |
891 | 887 | /// struct BigBuf { |
@@ -935,7 +931,7 @@ macro_rules! init { |
935 | 931 | /// # Examples |
936 | 932 | /// |
937 | 933 | /// ```rust |
938 | | -/// # #![feature(allocator_api, no_coverage)] |
| 934 | +/// # #![feature(allocator_api)] |
939 | 935 | /// # use core::alloc::AllocError; |
940 | 936 | /// use pinned_init::*; |
941 | 937 | /// struct BigBuf { |
@@ -1405,7 +1401,7 @@ impl<T> InPlaceInit<T> for Arc<T> { |
1405 | 1401 | /// Use [`pinned_drop`] to implement this trait safely: |
1406 | 1402 | /// |
1407 | 1403 | /// ```rust |
1408 | | -/// # #![feature(allocator_api, no_coverage)] |
| 1404 | +/// # #![feature(allocator_api)] |
1409 | 1405 | /// # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*; |
1410 | 1406 | /// use pinned_init::*; |
1411 | 1407 | /// use core::pin::Pin; |
|
0 commit comments