File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ fn test_userdata_multithread_access_send_only() -> Result<()> {
4848}
4949
5050#[ test]
51- #[ ignore = "rust change https://github.com/rust-lang/rust/pull/135634" ]
5251fn test_userdata_multithread_access_sync ( ) -> Result < ( ) > {
5352 let lua = Lua :: new ( ) ;
5453
@@ -76,11 +75,13 @@ fn test_userdata_multithread_access_sync() -> Result<()> {
7675 std:: thread:: scope ( |s| {
7776 s. spawn ( || {
7877 // Getting another shared reference for `Sync` type is allowed.
79- let _ = lua. globals ( ) . get :: < UserDataRef < MyUserData > > ( "ud" ) . unwrap ( ) ;
78+ // FIXME: does not work due to https://github.com/rust-lang/rust/pull/135634
79+ // let _ = lua.globals().get::<UserDataRef<MyUserData>>("ud").unwrap();
8080 } ) ;
8181 } ) ;
8282
83- lua. load ( "ud:method()" ) . exec ( ) . unwrap ( ) ;
83+ // FIXME: does not work due to https://github.com/rust-lang/rust/pull/135634
84+ // lua.load("ud:method()").exec().unwrap();
8485
8586 Ok ( ( ) )
8687}
Original file line number Diff line number Diff line change @@ -978,7 +978,6 @@ fn test_nested_userdata_gc() -> Result<()> {
978978}
979979
980980#[ cfg( feature = "userdata-wrappers" ) ]
981- #[ rustversion:: stable]
982981#[ test]
983982fn test_userdata_wrappers ( ) -> Result < ( ) > {
984983 #[ derive( Debug ) ]
@@ -1340,8 +1339,9 @@ fn test_userdata_wrappers() -> Result<()> {
13401339 assert_eq ! ( ud. borrow:: <MyUserData >( ) ?. 0 , 20 ) ;
13411340
13421341 // Multiple read borrows are allowed with parking_lot::RwLock
1343- let _borrow1 = ud. borrow :: < MyUserData > ( ) ?;
1344- let _borrow2 = ud. borrow :: < MyUserData > ( ) ?;
1342+ let _borrow1 = ud. borrow :: < MyUserData > ( ) . unwrap ( ) ;
1343+ // FIXME: does not work due to https://github.com/rust-lang/rust/pull/135634
1344+ // let _borrow2 = ud.borrow::<MyUserData>().unwrap();
13451345 assert ! ( matches!(
13461346 ud. borrow_mut:: <MyUserData >( ) ,
13471347 Err ( Error :: UserDataBorrowMutError )
You can’t perform that action at this time.
0 commit comments