From 4e827179d190f6957e252fed3da8e4986779537d Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Mon, 20 Apr 2026 00:19:56 +0100 Subject: [PATCH] Update compile tests messages --- tests/compile/lua_norefunwindsafe.stderr | 22 +++++++++++----------- tests/compile/ref_nounwindsafe.stderr | 24 ++++++++++++------------ 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/compile/lua_norefunwindsafe.stderr b/tests/compile/lua_norefunwindsafe.stderr index 814ae6b..4094cd2 100644 --- a/tests/compile/lua_norefunwindsafe.stderr +++ b/tests/compile/lua_norefunwindsafe.stderr @@ -1,28 +1,28 @@ -error[E0277]: the type `UnsafeCell` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary +error[E0277]: the type `UnsafeCell` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary --> tests/compile/lua_norefunwindsafe.rs:7:18 | 7 | catch_unwind(|| lua.create_table().unwrap()); - | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary + | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary | | | required by a bound introduced by this call | - = help: within `Lua`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell` -note: required because it appears within the type `lock_api::remutex::ReentrantMutex` + = help: within `Lua`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell` +note: required because it appears within the type `lock_api::remutex::ReentrantMutex` --> $CARGO/lock_api-$VERSION/src/remutex.rs | | pub struct ReentrantMutex { | ^^^^^^^^^^^^^^ -note: required because it appears within the type `alloc::sync::ArcInner>` +note: required because it appears within the type `alloc::sync::ArcInner>` --> $RUST/alloc/src/sync.rs | | struct ArcInner { | ^^^^^^^^ -note: required because it appears within the type `PhantomData>>` +note: required because it appears within the type `PhantomData>>` --> $RUST/core/src/marker.rs | | pub struct PhantomData; | ^^^^^^^^^^^ -note: required because it appears within the type `Arc>` +note: required because it appears within the type `Arc>` --> $RUST/alloc/src/sync.rs | | pub struct Arc< @@ -63,22 +63,22 @@ note: required because it appears within the type `lock_api::remutex::RawReentra | | pub struct RawReentrantMutex { | ^^^^^^^^^^^^^^^^^ -note: required because it appears within the type `lock_api::remutex::ReentrantMutex` +note: required because it appears within the type `lock_api::remutex::ReentrantMutex` --> $CARGO/lock_api-$VERSION/src/remutex.rs | | pub struct ReentrantMutex { | ^^^^^^^^^^^^^^ -note: required because it appears within the type `alloc::sync::ArcInner>` +note: required because it appears within the type `alloc::sync::ArcInner>` --> $RUST/alloc/src/sync.rs | | struct ArcInner { | ^^^^^^^^ -note: required because it appears within the type `PhantomData>>` +note: required because it appears within the type `PhantomData>>` --> $RUST/core/src/marker.rs | | pub struct PhantomData; | ^^^^^^^^^^^ -note: required because it appears within the type `Arc>` +note: required because it appears within the type `Arc>` --> $RUST/alloc/src/sync.rs | | pub struct Arc< diff --git a/tests/compile/ref_nounwindsafe.stderr b/tests/compile/ref_nounwindsafe.stderr index 4903255..757083d 100644 --- a/tests/compile/ref_nounwindsafe.stderr +++ b/tests/compile/ref_nounwindsafe.stderr @@ -1,24 +1,24 @@ -error[E0277]: the type `UnsafeCell` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary +error[E0277]: the type `UnsafeCell` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary --> tests/compile/ref_nounwindsafe.rs:8:18 | 8 | catch_unwind(move || table.set("a", "b").unwrap()); - | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary + | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary | | | required by a bound introduced by this call | - = help: within `alloc::sync::ArcInner>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell` -note: required because it appears within the type `lock_api::remutex::ReentrantMutex` + = help: within `alloc::sync::ArcInner>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell` +note: required because it appears within the type `lock_api::remutex::ReentrantMutex` --> $CARGO/lock_api-$VERSION/src/remutex.rs | | pub struct ReentrantMutex { | ^^^^^^^^^^^^^^ -note: required because it appears within the type `alloc::sync::ArcInner>` +note: required because it appears within the type `alloc::sync::ArcInner>` --> $RUST/alloc/src/sync.rs | | struct ArcInner { | ^^^^^^^^ - = note: required for `NonNull>>` to implement `UnwindSafe` -note: required because it appears within the type `std::sync::Weak>` + = note: required for `NonNull>>` to implement `UnwindSafe` +note: required because it appears within the type `std::sync::Weak>` --> $RUST/alloc/src/sync.rs | | pub struct Weak< @@ -57,7 +57,7 @@ error[E0277]: the type `UnsafeCell` may contain interior mutability and a | | | required by a bound introduced by this call | - = help: within `alloc::sync::ArcInner>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell` + = help: within `alloc::sync::ArcInner>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell` note: required because it appears within the type `Cell` --> $RUST/core/src/cell.rs | @@ -68,18 +68,18 @@ note: required because it appears within the type `lock_api::remutex::RawReentra | | pub struct RawReentrantMutex { | ^^^^^^^^^^^^^^^^^ -note: required because it appears within the type `lock_api::remutex::ReentrantMutex` +note: required because it appears within the type `lock_api::remutex::ReentrantMutex` --> $CARGO/lock_api-$VERSION/src/remutex.rs | | pub struct ReentrantMutex { | ^^^^^^^^^^^^^^ -note: required because it appears within the type `alloc::sync::ArcInner>` +note: required because it appears within the type `alloc::sync::ArcInner>` --> $RUST/alloc/src/sync.rs | | struct ArcInner { | ^^^^^^^^ - = note: required for `NonNull>>` to implement `UnwindSafe` -note: required because it appears within the type `std::sync::Weak>` + = note: required for `NonNull>>` to implement `UnwindSafe` +note: required because it appears within the type `std::sync::Weak>` --> $RUST/alloc/src/sync.rs | | pub struct Weak<