Skip to content
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

Rename EventLoop::try_new to new #217

Open
wants to merge 1 commit into
base: 1.0-staging
Choose a base branch
from

breaking: Rename EventLoop::try_new to new

8b2d367
Select commit
Loading
Failed to load commit list.
Open

Rename EventLoop::try_new to new #217

breaking: Rename EventLoop::try_new to new
8b2d367
Select commit
Loading
Failed to load commit list.
Cirrus CI / FreeBSD 13.3 failed Jan 12, 2025 in 1m 3s

Task Summary

Instruction test failed in 00:46

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:00 clone
✅ 00:14 setup
❌ 00:46 test

test sources::tests::test_mut_ref_source ... ok
test sources::timer::tests::cancel_timer ... ok
test sources::timer::tests::high_precision_timer ... ok
test sources::timer::tests::immediate_timer ... ok
test sources::timer::tests::no_overflow ... ok
test loop_logic::tests::reuse ... ok
test sources::timer::tests::simple_timer ... ok
test sources::timer::tests::simple_timer_instant ... ok
test sources::timer::tests::repeating_timer ... ok
test sources::transient::tests::test_transient_disable ... ok
test sources::transient::tests::test_transient_drop ... ok
test sources::transient::tests::test_transient_map ... ok
test sources::transient::tests::test_transient_passthrough ... ok
test sources::transient::tests::test_transient_remove ... ok
test sources::transient::tests::test_transient_replace_unregister ... ok
test token::tests::overflow_subid - should panic ... ok
test sources::timer::tests::timeout_future ... ok

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

     Running tests/signals.rs (target/debug/deps/signals-722ff5adbb9bb0c1)
   Doc-tests calloop

running 3 tests
test src/lib.rs - (line 22) - compile ... ok
test src/loop_logic.rs - loop_logic::LoopHandle<'l,Data>::downgrade (line 302) ... FAILED
test src/sources/generic.rs - sources::generic (line 10) ... ok

failures:

---- src/loop_logic.rs - loop_logic::LoopHandle<'l,Data>::downgrade (line 302) stdout ----
error[E0599]: no function or associated item named `try_new` found for struct `EventLoop` in the current scope
   --> src/loop_logic.rs:307:44
    |
8   | let event_loop: EventLoop<()> = EventLoop::try_new().unwrap();
    |                                            ^^^^^^^ function or associated item not found in `EventLoop<'_, _>`
    |
note: if you're trying to build a new `EventLoop<'_, _>`, consider using `EventLoop::<'l, Data>::new` which returns `Result<EventLoop<'_, _>, calloop::Error>`
   --> /tmp/cirrus-ci-build/src/loop_logic.rs:382:5
    |
382 |     pub fn new() -> crate::Result<Self> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0599`.
Couldn't compile the test.

failures:
    src/loop_logic.rs - loop_logic::LoopHandle<'l,Data>::downgrade (line 302)

test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s

error: doctest failed, to rerun pass `--doc`

Exit status: 101