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

DRAFT: trying to make add safe #192

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

draft changes to make add safe

ad676e3
Select commit
Loading
Failed to load commit list.
Draft

DRAFT: trying to make add safe #192

draft changes to make add safe
ad676e3
Select commit
Loading
Failed to load commit list.
Cirrus CI / test (x86_64-unknown-netbsd) failed Feb 15, 2024 in 1m 8s

Task Summary

Instruction test failed in 00:06

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:00 clone
✅ 00:59 setup
❌ 00:06 test

        ;;
    *)
        # Prepending path in case a system-installed rustc needs to be overridden
        export PATH="$HOME/.cargo/bin:$PATH"
        ;;
esac
cargo test
�[1m�[32m    Updating�[0m crates.io index
�[1m�[32m Downloading�[0m crates ...
�[1m�[32m  Downloaded�[0m bitflags v2.4.2
�[1m�[32m  Downloaded�[0m signal-hook-registry v1.4.1
�[1m�[32m  Downloaded�[0m cfg-if v1.0.0
�[1m�[32m  Downloaded�[0m pin-project-lite v0.2.13
�[1m�[32m  Downloaded�[0m fastrand v2.0.1
�[1m�[32m  Downloaded�[0m errno v0.3.8
�[1m�[32m  Downloaded�[0m easy-parallel v3.3.1
�[1m�[32m  Downloaded�[0m signal-hook v0.3.17
�[1m�[32m  Downloaded�[0m tracing-core v0.1.32
�[1m�[32m  Downloaded�[0m socket2 v0.5.5
�[1m�[32m  Downloaded�[0m tracing v0.1.40
�[1m�[32m  Downloaded�[0m rustix v0.38.31
�[1m�[32m  Downloaded�[0m libc v0.2.153
�[1m�[32m   Compiling�[0m libc v0.2.153
�[1m�[32m   Compiling�[0m rustix v0.38.31
�[1m�[32m   Compiling�[0m bitflags v2.4.2
�[1m�[32m   Compiling�[0m signal-hook v0.3.17
�[1m�[32m   Compiling�[0m tracing-core v0.1.32
�[1m�[32m   Compiling�[0m errno v0.3.8
�[1m�[32m   Compiling�[0m pin-project-lite v0.2.13
�[1m�[32m   Compiling�[0m tracing v0.1.40
�[1m�[32m   Compiling�[0m signal-hook-registry v1.4.1
�[1m�[32m   Compiling�[0m cfg-if v1.0.0
�[1m�[32m   Compiling�[0m socket2 v0.5.5
�[1m�[32m   Compiling�[0m fastrand v2.0.1
�[1m�[32m   Compiling�[0m easy-parallel v3.3.1
�[1m�[32m   Compiling�[0m polling v3.4.0 (/tmp/cirrus-ci-build)
�[0m�[1m�[38;5;9merror[E0308]�[0m�[0m�[1m: mismatched types�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0msrc/kqueue.rs:528:21�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m527�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m                poller.add(�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m| �[0m�[0m                       �[0m�[0m�[1m�[38;5;12m---�[0m�[0m �[0m�[0m�[1m�[38;5;12marguments to this method are incorrect�[0m
�[0m�[1m�[38;5;12m528�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m                    self.read_stream.as_raw_fd(),�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m| �[0m�[0m                    �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mexpected `BorrowedFd<'_>`, found `i32`�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;10mnote�[0m�[0m: method defined here�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0msrc/kqueue.rs:87:12�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m87�[0m�[0m  �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    pub fn add(&self, fd: BorrowedFd<'_>, ev: Event, mode: PollMode) -> io::Result<()> {�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m| �[0m�[0m           �[0m�[0m�[1m�[38;5;10m^^^�[0m�[0m        �[0m�[0m�[1m�[38;5;12m------------------�[0m

�[0m�[1mFor more information about this error, try `rustc --explain E0308`.�[0m
�[1m�[31merror�[0m�[1m:�[0m could not compile `polling` (lib) due to 1 previous error
�[1m�[33mwarning�[0m�[1m:�[0m build failed, waiting for other jobs to finish...
�[1m�[31merror�[0m�[1m:�[0m could not compile `polling` (lib test) due to 1 previous error

Exit status: 101