From bc7eb3bd3af6e9108733d2bb9432381abf1cc278 Mon Sep 17 00:00:00 2001 From: gaurikholkar Date: Thu, 1 Jun 2017 15:46:26 +0530 Subject: Changing error message for interior mutability, adding ui test --- src/libstd/panic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/panic.rs') diff --git a/src/libstd/panic.rs b/src/libstd/panic.rs index f99634ecac2..58356bc43ee 100644 --- a/src/libstd/panic.rs +++ b/src/libstd/panic.rs @@ -112,7 +112,7 @@ pub trait UnwindSafe {} /// This is a "helper marker trait" used to provide impl blocks for the /// `UnwindSafe` trait, for more information see that documentation. #[stable(feature = "catch_unwind", since = "1.9.0")] -#[rustc_on_unimplemented = "the type {Self} contains interior mutability \ +#[rustc_on_unimplemented = "the type {Self} may contain interior mutability \ and a reference may not be safely transferrable \ across a catch_unwind boundary"] pub trait RefUnwindSafe {} -- cgit 1.4.1-3-g733a5