Skip to content

Commit

Permalink
Ignore doctests in bootstrap
Browse files Browse the repository at this point in the history
On bootstrap the IntoIterator trait is not implemented
yet for arrays.
  • Loading branch information
est31 committed Apr 29, 2021
1 parent 12642d9 commit a352336
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/std/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,8 @@ mod prim_pointer {}
/// * replace `for ... in array.into_iter() {` with `for ... in array {`,
/// equivalent to the post-2021 behavior (Rust 1.53+)
///
/// ```rust,edition2018
#[cfg_attr(bootstrap, doc = "```rust,edition2018,ignore")]
#[cfg_attr(not(bootstrap), doc = "```rust,edition2018")]
/// use std::array::IntoIter;
///
/// let array: [i32; 3] = [0; 3];
Expand Down

0 comments on commit a352336

Please sign in to comment.