Skip to content

epoch: bump memoffset to v0.9 #981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2023

Conversation

Jules-Bertholet
Copy link
Contributor

@trickster
Copy link

After updating the feature flag, I get this result.

❯ cargo +nightly test --features memoffset/unstable_offset_of
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> crossbeam-epoch/src/deferred.rs:103:13
    |
103 |             drop(a);
    |             ^^^^^-^
    |                  |
    |                  argument has type `[usize; 1]`
    |
    = note: use `let _ = ...` to ignore the expression or result
    = note: `#[warn(dropping_copy_types)]` on by default

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> crossbeam-epoch/src/deferred.rs:118:13
    |
118 |             drop(a);
    |             ^^^^^-^
    |                  |
    |                  argument has type `[usize; 10]`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: `crossbeam-epoch` (lib test) generated 2 warnings
    Finished test [unoptimized + debuginfo] target(s) in 0.02s
     Running unittests src/lib.rs (/workspaces/crossbeam/target/debug/deps/crossbeam_epoch-6846b2364cfaf944)

running 39 tests
test atomic::tests::array_init ... ok
test atomic::tests::valid_tag_i8 ... ok
test atomic::tests::valid_tag_i64 ... ok
test atomic::tests::const_atomic_null ... ok
test collector::tests::destroy_array ... ok
test collector::tests::drop_array ... ok
test collector::tests::flush_local_bag ... ok
test collector::tests::garbage_buffering ... ok
test collector::tests::incremental ... ok
test collector::tests::count_drops ... ok
test collector::tests::count_destroy ... ok
test collector::tests::pin_reentrant ... ok
test default::tests::pin_while_exiting ... ok
test deferred::tests::boxed_slice_i32 ... ok
test deferred::tests::long_slice_usize ... ok
test deferred::tests::on_heap ... ok
test collector::tests::buffering ... ok
test deferred::tests::on_stack ... ok
test deferred::tests::string ... ok
test internal::local_size ... ok
test internal::tests::check_bag ... ok
test internal::tests::check_defer ... ok
test sync::list::tests::delete ... ok
test sync::list::tests::insert ... ok
test sync::list::tests::iter_multi ... ok
test sync::list::tests::insert_delete_multi ... ok
test sync::queue::test::is_empty_dont_pop ... ok
test sync::queue::test::push_pop_2 ... ok
test sync::queue::test::push_pop_many_seq ... ok
test sync::queue::test::push_pop_1 ... ok
test sync::queue::test::push_try_pop_1 ... ok
test sync::queue::test::push_try_pop_2 ... ok
test collector::tests::stress ... ok
test sync::queue::test::push_try_pop_many_seq ... ok
test sync::queue::test::push_try_pop_many_mpmc ... ok
test collector::tests::pin_holds_advance ... ok
test sync::queue::test::push_pop_many_spsc ... ok
test sync::queue::test::push_try_pop_many_spmc ... ok
test sync::queue::test::push_try_pop_many_spsc ... ok

test result: ok. 39 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.65s

     Running tests/loom.rs (/workspaces/crossbeam/target/debug/deps/loom-9a49639df1298832)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests crossbeam-epoch

running 57 tests
test src/atomic.rs - atomic::Array (line 181) ... ok
test src/atomic.rs - atomic::Atomic<T>::fetch_and (line 599) ... ok
test src/atomic.rs - atomic::Atomic<T>::compare_exchange_weak (line 474) ... ok
test src/atomic.rs - atomic::Atomic<T>::compare_exchange (line 417) ... ok
test src/atomic.rs - atomic::Atomic<T>::fetch_or (line 636) ... ok
test src/atomic.rs - atomic::Atomic<T>::fetch_update (line 555) ... ok
test src/atomic.rs - atomic::Atomic<T>::fetch_xor (line 673) ... ok
test src/atomic.rs - atomic::Atomic<T>::from (line 837) ... ok
test src/atomic.rs - atomic::Atomic<T>::from (line 867) ... ok
test src/atomic.rs - atomic::Atomic<T>::from (line 882) ... ok
test src/atomic.rs - atomic::Atomic<T>::into_owned (line 717) ... ok
test src/atomic.rs - atomic::Atomic<T>::init (line 266) ... ok
test src/atomic.rs - atomic::Atomic<T>::load (line 317) ... ok
test src/atomic.rs - atomic::Atomic<T>::new (line 250) ... ok
test src/atomic.rs - atomic::Atomic<T>::null (line 288) ... ok
test src/atomic.rs - atomic::Atomic<T>::load_consume (line 344) ... ok
test src/atomic.rs - atomic::Atomic<T>::store (line 363) ... ok
test src/atomic.rs - atomic::Atomic<T>::try_into_owned (line 761) ... ok
test src/atomic.rs - atomic::Owned<T>::from (line 1125) ... ok
test src/atomic.rs - atomic::Atomic<T>::swap (line 385) ... ok
test src/atomic.rs - atomic::Owned<T>::init (line 1009) ... ok
test src/atomic.rs - atomic::Owned<T>::from_raw (line 962) ... ok
test src/atomic.rs - atomic::Owned<T>::into_box (line 977) ... ok
test src/atomic.rs - atomic::Owned<T>::into_shared (line 1022) ... ok
test src/atomic.rs - atomic::Owned<T>::new (line 994) ... ok
test src/atomic.rs - atomic::Owned<T>::tag (line 1039) ... ok
test src/atomic.rs - atomic::Owned<T>::with_tag (line 1054) ... ok
test src/atomic.rs - atomic::Pointable (line 90) ... ok
test src/atomic.rs - atomic::Shared<'_,T>::from (line 1490) ... ok
test src/atomic.rs - atomic::Shared<'g,T>::as_raw (line 1202) ... ok
test src/atomic.rs - atomic::Shared<'g,T>::as_ref (line 1358) ... ok
test src/atomic.rs - atomic::Shared<'g,T>::deref (line 1279) ... ok
test src/atomic.rs - atomic::Shared<'g,T>::into_owned (line 1392) ... ok
test src/atomic.rs - atomic::Shared<'g,T>::deref_mut (line 1311) ... ok
test src/atomic.rs - atomic::Shared<'g,T>::is_null (line 1243) ... ok
test src/atomic.rs - atomic::Shared<'g,T>::null (line 1226) ... ok
test src/atomic.rs - atomic::Shared<'g,T>::tag (line 1442) ... ok
test src/atomic.rs - atomic::Shared<'g,T>::try_into_owned (line 1417) ... ok
test src/atomic.rs - atomic::Shared<'g,T>::with_tag (line 1462) ... ok
test src/collector.rs - collector::fmt (line 5) ... ok
test src/guard.rs - guard::Guard (line 17) ... ok
test src/guard.rs - guard::Guard::defer_destroy (line 229) ... ignored
test src/guard.rs - guard::Guard (line 32) ... ok
test src/guard.rs - guard::Guard (line 58) ... ok
test src/guard.rs - guard::Guard::defer_unchecked (line 143) ... ignored
test src/guard.rs - guard::Guard::collector (line 396) ... ok
test src/guard.rs - guard::Guard::defer_destroy (line 246) ... ok
test src/guard.rs - guard::Guard::defer_unchecked (line 123) ... ok
test src/guard.rs - guard::Guard::defer_unchecked (line 160) ... ok
test src/guard.rs - guard::Guard::flush (line 285) ... ok
test src/guard.rs - guard::Guard::repin (line 311) ... ok
test src/sync/list.rs - sync::list::IsElement (line 28) ... ignored
test src/sync/list.rs - sync::list::IsElement (line 59) ... ignored
test src/sync/list.rs - sync::list::IsElement::element_of (line 73) ... ignored
test src/guard.rs - guard::Guard::repin_after (line 346) ... ok
test src/guard.rs - guard::unprotected (line 471) ... ok
test src/guard.rs - guard::unprotected (line 440) ... ok

test result: ok. 52 passed; 0 failed; 5 ignored; 0 measured; 0 filtered out; finished in 5.14s

Tested on Debian

❯ rustc --version                                            
rustc 1.72.0-nightly (1c53407e8 2023-05-28)

@Jules-Bertholet
Copy link
Contributor Author

That warning also exists on master, see #982

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

bors r+

@bors
Copy link
Contributor

bors bot commented May 30, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit f881903 into crossbeam-rs:master May 30, 2023
@Jules-Bertholet Jules-Bertholet deleted the memoffest_0_9 branch May 30, 2023 12:32
@taiki-e
Copy link
Member

taiki-e commented Jun 12, 2023

Published in crossbeam-epoch 0.9.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants