From 734f7244723f579433b7defcd1fd1c2e66406737 Mon Sep 17 00:00:00 2001 From: Zachary S Date: Fri, 2 Sep 2022 02:23:56 -0500 Subject: [PATCH] Change undefined-behavior doctests from ignore to no_run. --- library/alloc/src/rc.rs | 4 ++-- library/alloc/src/sync.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs index c1db035167b..2f41ca689ba 100644 --- a/library/alloc/src/rc.rs +++ b/library/alloc/src/rc.rs @@ -1111,7 +1111,7 @@ impl Rc { /// 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 Rc { /// 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; diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index e32ce5a9891..4ef3c528c44 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -1650,7 +1650,7 @@ impl Arc { /// 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 Arc { /// 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;