Skip to content

Commit 734f724

Browse files
committed
Change undefined-behavior doctests from ignore to no_run.
1 parent f542b06 commit 734f724

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/alloc/src/rc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ impl<T: ?Sized> Rc<T> {
11111111
/// assert_eq!(*x, "foo");
11121112
/// ```
11131113
/// Other `Rc` pointers to the same allocation must be to the same type.
1114-
/// ```ignore
1114+
/// ```no_run
11151115
/// #![feature(get_mut_unchecked)]
11161116
///
11171117
/// use std::rc::Rc;
@@ -1125,7 +1125,7 @@ impl<T: ?Sized> Rc<T> {
11251125
/// println!("{}", &*x); // Invalid UTF-8 in a str
11261126
/// ```
11271127
/// Other `Rc` pointers to the same allocation must be to the exact same type, including lifetimes.
1128-
/// ```ignore
1128+
/// ```no_run
11291129
/// #![feature(get_mut_unchecked)]
11301130
///
11311131
/// use std::rc::Rc;

library/alloc/src/sync.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ impl<T: ?Sized> Arc<T> {
16501650
/// assert_eq!(*x, "foo");
16511651
/// ```
16521652
/// Other `Arc` pointers to the same allocation must be to the same type.
1653-
/// ```ignore
1653+
/// ```no_run
16541654
/// #![feature(get_mut_unchecked)]
16551655
///
16561656
/// use std::sync::Arc;
@@ -1664,7 +1664,7 @@ impl<T: ?Sized> Arc<T> {
16641664
/// println!("{}", &*x); // Invalid UTF-8 in a str
16651665
/// ```
16661666
/// Other `Arc` pointers to the same allocation must be to the exact same type, including lifetimes.
1667-
/// ```ignore
1667+
/// ```no_run
16681668
/// #![feature(get_mut_unchecked)]
16691669
///
16701670
/// use std::sync::Arc;

0 commit comments

Comments
 (0)