Change undefined-behavior doctests from ignore to no_run.

This commit is contained in:
Zachary S 2022-09-02 02:23:56 -05:00
parent f542b068f2
commit 734f724472
2 changed files with 4 additions and 4 deletions

View File

@ -1111,7 +1111,7 @@ impl<T: ?Sized> Rc<T> {
/// assert_eq!(*x, "foo");
/// ```
/// Other `Rc` pointers to the same allocation must be to the same type.
/// ```ignore
/// ```no_run
/// #![feature(get_mut_unchecked)]
///
/// use std::rc::Rc;
@ -1125,7 +1125,7 @@ impl<T: ?Sized> Rc<T> {
/// println!("{}", &*x); // Invalid UTF-8 in a str
/// ```
/// Other `Rc` pointers to the same allocation must be to the exact same type, including lifetimes.
/// ```ignore
/// ```no_run
/// #![feature(get_mut_unchecked)]
///
/// use std::rc::Rc;

View File

@ -1650,7 +1650,7 @@ impl<T: ?Sized> Arc<T> {
/// assert_eq!(*x, "foo");
/// ```
/// Other `Arc` pointers to the same allocation must be to the same type.
/// ```ignore
/// ```no_run
/// #![feature(get_mut_unchecked)]
///
/// use std::sync::Arc;
@ -1664,7 +1664,7 @@ impl<T: ?Sized> Arc<T> {
/// println!("{}", &*x); // Invalid UTF-8 in a str
/// ```
/// Other `Arc` pointers to the same allocation must be to the exact same type, including lifetimes.
/// ```ignore
/// ```no_run
/// #![feature(get_mut_unchecked)]
///
/// use std::sync::Arc;