Skip to content

Commit 8e9655a

Browse files
committed
glib: Fix compiletest expected error output for Rust 1.69
1 parent 98dae5b commit 8e9655a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

glib/tests/subclass_compiletest/02-no-auto-send-sync.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ error[E0277]: `RefCell<std::string::String>` cannot be shared between threads sa
77
| required by a bound introduced by this call
88
|
99
= help: within `imp::TestObject`, the trait `Sync` is not implemented for `RefCell<std::string::String>`
10+
= note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead
1011
note: required because it appears within the type `TestObject`
1112
--> tests/subclass_compiletest/02-no-auto-send-sync.rs:6:16
1213
|

glib/tests/subclass_compiletest/05-no-auto-send-sync-with-non-send-sync-parent.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ error[E0277]: `RefCell<std::string::String>` cannot be shared between threads sa
77
| required by a bound introduced by this call
88
|
99
= help: within `imp_parent::TestParent`, the trait `Sync` is not implemented for `RefCell<std::string::String>`
10+
= note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead
1011
note: required because it appears within the type `TestParent`
1112
--> tests/subclass_compiletest/05-no-auto-send-sync-with-non-send-sync-parent.rs:6:16
1213
|

0 commit comments

Comments
 (0)