I basically start all bash scripts with those 2 lines.
The main thing is that the script doesnt run and fails to compile mio. Looking into why. Ideally we want this script to run whenever we commit to main.
Compiling num-complex v0.4.3
Compiling mio v0.8.8
error[E0432]: unresolved import `crate::sys::IoSourceState`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/io_source.rs:12:5
|
12 | use crate::sys::IoSourceState;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ no `IoSourceState` in `sys`
error[E0432]: unresolved import `crate::sys::tcp`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/net/tcp/listener.rs:15:17
|
15 | use crate::sys::tcp::{bind, listen, new_for_addr};
| ^^^ could not find `tcp` in `sys`
error[E0432]: unresolved import `crate::sys::tcp`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/net/tcp/stream.rs:13:17
|
13 | use crate::sys::tcp::{connect, new_for_addr};
| ^^^ could not find `tcp` in `sys`
error[E0433]: failed to resolve: could not find `Selector` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/poll.rs:300:18
|
300 | sys::Selector::new().map(|selector| Poll {
| ^^^^^^^^ could not find `Selector` in `sys`
error[E0433]: failed to resolve: could not find `event` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/event/event.rs:24:14
|
24 | sys::event::token(&self.inner)
| ^^^^^ could not find `event` in `sys`
error[E0433]: failed to resolve: could not find `event` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/event/event.rs:38:14
|
38 | sys::event::is_readable(&self.inner)
| ^^^^^ could not find `event` in `sys`
error[E0433]: failed to resolve: could not find `event` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/event/event.rs:43:14
|
43 | sys::event::is_writable(&self.inner)
| ^^^^^ could not find `event` in `sys`
error[E0433]: failed to resolve: could not find `event` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/event/event.rs:68:14
|
68 | sys::event::is_error(&self.inner)
| ^^^^^ could not find `event` in `sys`
error[E0433]: failed to resolve: could not find `event` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/event/event.rs:99:14
|
99 | sys::event::is_read_closed(&self.inner)
| ^^^^^ could not find `event` in `sys`
error[E0433]: failed to resolve: could not find `event` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/event/event.rs:129:14
|
129 | sys::event::is_write_closed(&self.inner)
| ^^^^^ could not find `event` in `sys`
error[E0433]: failed to resolve: could not find `event` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/event/event.rs:151:14
|
151 | sys::event::is_priority(&self.inner)
| ^^^^^ could not find `event` in `sys`
error[E0433]: failed to resolve: could not find `event` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/event/event.rs:173:14
|
173 | sys::event::is_aio(&self.inner)
| ^^^^^ could not find `event` in `sys`
error[E0433]: failed to resolve: could not find `event` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/event/event.rs:183:14
|
183 | sys::event::is_lio(&self.inner)
| ^^^^^ could not find `event` in `sys`
error[E0433]: failed to resolve: could not find `event` in `sys`
--> /home/yui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.8/src/event/event.rs:221:26
This script doesnt work for me on the main branch.
I basically start all bash scripts with those 2 lines.
The main thing is that the script doesnt run and fails to compile
mio
. Looking into why. Ideally we want this script to run whenever we commit to main.