Skip to content

Commit 505d07d

Browse files
committed
core and alloc doctests support doctest merging
1 parent acba81e commit 505d07d

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

library/alloc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#![doc(
6464
html_playground_url = "https://play.rust-lang.org/",
6565
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
66-
test(no_crate_inject, attr(allow(unused_variables), deny(warnings)))
66+
test(no_crate_inject, attr(allow(unused_variables, duplicate_features), deny(warnings)))
6767
)]
6868
#![doc(auto_cfg(hide(no_global_oom_handling, no_rc, no_sync, target_has_atomic = "ptr")))]
6969
#![doc(rust_logo)]

library/core/src/alloc/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use crate::{cmp, ptr};
1919
///
2020
/// # Example
2121
///
22-
/// ```
22+
/// ```standalone_crate
2323
/// use std::alloc::{GlobalAlloc, Layout};
2424
/// use std::cell::UnsafeCell;
2525
/// use std::ptr::null_mut;

library/core/src/hint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ pub const fn black_box<T>(dummy: T) -> T {
514514
/// macro_rules! make_error {
515515
/// ($($args:expr),*) => {
516516
/// core::hint::must_use({
517-
/// let error = $crate::make_error(core::format_args!($($args),*));
517+
/// let error = make_error(core::format_args!($($args),*));
518518
/// error
519519
/// })
520520
/// };

library/core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
html_playground_url = "https://play.rust-lang.org/",
4949
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
5050
test(no_crate_inject, attr(deny(warnings))),
51-
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
51+
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut, duplicate_features)))
5252
)]
5353
#![doc(rust_logo)]
5454
#![doc(auto_cfg(hide(

library/core/src/range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ impl<T> const From<legacy::RangeFrom<T>> for RangeFrom<T> {
584584
///
585585
/// The `..=last` syntax is a `RangeToInclusive`:
586586
///
587-
/// ```
587+
/// ```standalone_crate
588588
/// #![feature(new_range)]
589589
/// assert_eq!((..=5), std::range::RangeToInclusive { last: 5 });
590590
/// ```

0 commit comments

Comments
 (0)