mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 10:33:34 +00:00
Change undefined-behavior doctests from ignore to no_run.
This commit is contained in:
parent
f542b068f2
commit
734f724472
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user